Core/WorldStates: Migrate war mode bonus value worldstates to new system

Port From (https://github.com/TrinityCore/TrinityCore/commit/4ac86c13d2b00817c9213ca2c22b747d3fff454e)
This commit is contained in:
hondacrx
2022-07-01 22:53:01 -04:00
parent 25bbf63341
commit cabb59efe8
6 changed files with 55 additions and 41 deletions
+5
View File
@@ -140,6 +140,11 @@ namespace Game
return _worldStateTemplates.LookupByKey(worldStateId);
}
public int GetValue(WorldStates worldStateId, Map map)
{
return GetValue((int)worldStateId, map);
}
public int GetValue(int worldStateId, Map map)
{
WorldStateTemplate worldStateTemplate = GetWorldStateTemplate(worldStateId);