mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Partially fixed bonuses descriptions (affected by separate old bug)
This commit is contained in:
@ -811,7 +811,12 @@ bool JsonUtils::parseBonus(const JsonNode &ability, Bonus *b)
|
||||
b->sid = static_cast<si32>(ability["sourceID"].Float());
|
||||
|
||||
if(!ability["description"].isNull())
|
||||
b->description = ability["description"].String();
|
||||
{
|
||||
if (ability["description"].isString())
|
||||
b->description = ability["description"].String();
|
||||
if (ability["description"].isNumber())
|
||||
b->description = VLC->generaltexth->translate("core.arraytxt", ability["description"].Integer());
|
||||
}
|
||||
|
||||
value = &ability["effectRange"];
|
||||
if (!value->isNull())
|
||||
|
Reference in New Issue
Block a user