1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

- Parsing hero specialty is working (though complicated)

- Some obvious fixed for limiters, more work needed
This commit is contained in:
DjWarmonger
2013-01-19 17:38:37 +00:00
parent 97db289d3c
commit 79062eb15c
6 changed files with 63 additions and 16 deletions

View File

@@ -1048,7 +1048,7 @@ Bonus * JsonUtils::parseBonus (const JsonNode &ability)
case JsonNode::DATA_STRING: //pre-defined limiters
b->limiter = parseByMap(bonusLimiterMap, &limiter, "limiter type ");
break;
case JsonNode::DATA_STRUCT: //customisable limiters
case JsonNode::DATA_STRUCT: //customizable limiters
{
shared_ptr<ILimiter> l;
if (limiter["type"].String() == "CREATURE_TYPE_LIMITER")