mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
* refactoring, including a generic solution for IDs
This commit is contained in:
@@ -1055,7 +1055,7 @@ Bonus * JsonUtils::parseBonus (const JsonNode &ability)
|
||||
const JsonVector vec = limiter["parameters"].Vector();
|
||||
VLC->modh->identifiers.requestIdentifier(std::string("creature.") + vec[0].String(), [=](si32 creature)
|
||||
{
|
||||
l2->setCreature (static_cast<CreatureID::CreatureID>(creature));
|
||||
l2->setCreature (CreatureID(creature));
|
||||
});
|
||||
if (vec.size() > 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user