1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

[refactor]

* creature config use string ids now
+ support string subtype id in short bonus format
* crexp parser: less magic nombers
This commit is contained in:
alexvins
2013-02-23 22:48:22 +00:00
parent d99bc7ca07
commit 856c7feeba
13 changed files with 173 additions and 168 deletions

View File

@ -897,7 +897,7 @@ Bonus * JsonUtils::parseBonus (const JsonVector &ability_vec) //TODO: merge with
}
b->type = it->second;
b->val = ability_vec[1].Float();
b->subtype = ability_vec[2].Float();
resolveIdentifier(ability_vec[2],b->subtype);
b->additionalInfo = ability_vec[3].Float();
b->duration = Bonus::PERMANENT; //TODO: handle flags (as integer)
b->turnsRemain = 0;