mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
- fixes #1105
- minor improvement to resolution selection dialog - removed (hopefully) all cases where neutral faction uses id -1
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user