mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fixed moat identifiers requests - will now always request spells
This commit is contained in:
@@ -147,7 +147,7 @@
|
|||||||
"horde" : [ 2, -1 ],
|
"horde" : [ 2, -1 ],
|
||||||
"mageGuild" : 4,
|
"mageGuild" : 4,
|
||||||
"warMachine" : "ballista",
|
"warMachine" : "ballista",
|
||||||
"moatAbility" : "core:spell.castleMoat",
|
"moatAbility" : "castleMoat",
|
||||||
// primaryResource not specified so town get both Wood and Ore for resource bonus
|
// primaryResource not specified so town get both Wood and Ore for resource bonus
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
"mageGuild" : 5,
|
"mageGuild" : 5,
|
||||||
"primaryResource" : "mercury",
|
"primaryResource" : "mercury",
|
||||||
"warMachine" : "ballista",
|
"warMachine" : "ballista",
|
||||||
"moatAbility" : "core:spell.castleMoat",
|
"moatAbility" : "castleMoat",
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -148,7 +148,7 @@
|
|||||||
"mageGuild" : 5,
|
"mageGuild" : 5,
|
||||||
"primaryResource" : "sulfur",
|
"primaryResource" : "sulfur",
|
||||||
"warMachine" : "ballista",
|
"warMachine" : "ballista",
|
||||||
"moatAbility" : "core:spell.dungeonMoat",
|
"moatAbility" : "dungeonMoat",
|
||||||
|
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
|
|||||||
@@ -147,7 +147,7 @@
|
|||||||
"horde" : [ 0, -1 ],
|
"horde" : [ 0, -1 ],
|
||||||
"mageGuild" : 3,
|
"mageGuild" : 3,
|
||||||
"warMachine" : "firstAidTent",
|
"warMachine" : "firstAidTent",
|
||||||
"moatAbility" : "core:spell.fortressMoat",
|
"moatAbility" : "fortressMoat",
|
||||||
// primaryResource not specified so town get both Wood and Ore for resource bonus
|
// primaryResource not specified so town get both Wood and Ore for resource bonus
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
|
|||||||
@@ -149,7 +149,7 @@
|
|||||||
"mageGuild" : 5,
|
"mageGuild" : 5,
|
||||||
"primaryResource" : "mercury",
|
"primaryResource" : "mercury",
|
||||||
"warMachine" : "ammoCart",
|
"warMachine" : "ammoCart",
|
||||||
"moatAbility" : "core:spell.infernoMoat",
|
"moatAbility" : "infernoMoat",
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
"horde" : [ 0, -1 ],
|
"horde" : [ 0, -1 ],
|
||||||
"mageGuild" : 5,
|
"mageGuild" : 5,
|
||||||
"warMachine" : "firstAidTent",
|
"warMachine" : "firstAidTent",
|
||||||
"moatAbility" : "core:spell.necropolisMoat",
|
"moatAbility" : "necropolisMoat",
|
||||||
// primaryResource not specified so town get both Wood and Ore for resource bonus
|
// primaryResource not specified so town get both Wood and Ore for resource bonus
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
"mageGuild" : 5,
|
"mageGuild" : 5,
|
||||||
"primaryResource" : "crystal",
|
"primaryResource" : "crystal",
|
||||||
"warMachine" : "firstAidTent",
|
"warMachine" : "firstAidTent",
|
||||||
"moatAbility" : "core:spell.rampartMoat",
|
"moatAbility" : "rampartMoat",
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -145,7 +145,7 @@
|
|||||||
"horde" : [ 0, -1 ],
|
"horde" : [ 0, -1 ],
|
||||||
"mageGuild" : 3,
|
"mageGuild" : 3,
|
||||||
"warMachine" : "ammoCart",
|
"warMachine" : "ammoCart",
|
||||||
"moatAbility" : "core:spell.strongholdMoat",
|
"moatAbility" : "strongholdMoat",
|
||||||
// primaryResource not specified so town get both Wood and Ore for resource bonus
|
// primaryResource not specified so town get both Wood and Ore for resource bonus
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
|
|||||||
@@ -147,7 +147,7 @@
|
|||||||
"primaryResource" : "gems",
|
"primaryResource" : "gems",
|
||||||
"mageGuild" : 5,
|
"mageGuild" : 5,
|
||||||
"warMachine" : "ammoCart",
|
"warMachine" : "ammoCart",
|
||||||
"moatAbility" : "core:spell.towerMoat",
|
"moatAbility" : "towerMoat",
|
||||||
|
|
||||||
"buildings" :
|
"buildings" :
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -885,10 +885,13 @@ void CTownHandler::loadTown(CTown * town, const JsonNode & source)
|
|||||||
town->namesCount += 1;
|
town->namesCount += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
VLC->modh->identifiers.requestIdentifier(source["moatAbility"], [=](si32 ability)
|
if (!source["moatAbility"].isNull()) // VCMI 1.2 compatibility code
|
||||||
{
|
{
|
||||||
town->moatAbility = SpellID(ability);
|
VLC->modh->identifiers.requestIdentifier( "spell", source["moatAbility"], [=](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