1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00
- minor improvement to resolution selection dialog
- removed (hopefully) all cases where neutral faction uses id -1
This commit is contained in:
Ivan Savenko
2012-09-29 15:10:56 +00:00
parent f30ee8ff04
commit b1557bc6c4
4 changed files with 28 additions and 29 deletions

View File

@ -123,7 +123,7 @@ CCreature * CModHandler::loadCreature (const JsonNode &node)
cre->cost = Res::ResourceSet(node["cost"]);
cre->level = node["level"].Float();
cre->faction = -1; //neutral faction is 9 for now. Will be replaced by string -> id conversion
cre->faction = 9; //neutral faction is 9 for now. Will be replaced by string -> id conversion
//TODO: node["faction"].String() to id
cre->fightValue = node["fightValue"].Float();
cre->AIValue = node["aiValue"].Float();