mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Added fallback for 1.2 compatibility
This commit is contained in:
@@ -892,6 +892,13 @@ void CTownHandler::loadTown(CTown * town, const JsonNode & source)
|
|||||||
town->moatAbility = SpellID(ability);
|
town->moatAbility = SpellID(ability);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
VLC->modh->identifiers.requestIdentifier( source.meta, "spell", "castleMoat", [=](si32 ability)
|
||||||
|
{
|
||||||
|
town->moatAbility = SpellID(ability);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Horde building creature level
|
// Horde building creature level
|
||||||
for(const JsonNode &node : source["horde"].Vector())
|
for(const JsonNode &node : source["horde"].Vector())
|
||||||
|
Reference in New Issue
Block a user