1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Removed unused properties

This commit is contained in:
Ivan Savenko
2023-09-18 14:10:41 +03:00
parent 9710a6b7b3
commit f4ee9424e4
2 changed files with 0 additions and 11 deletions

View File

@@ -39,10 +39,7 @@ BankConfig CBankInstanceConstructor::generateConfig(const JsonNode & level, CRan
BankConfig bc;
bc.chance = static_cast<ui32>(level["chance"].Float());
bc.guards = JsonRandom::loadCreatures(level["guards"], rng);
bc.upgradeChance = static_cast<ui32>(level["upgrade_chance"].Float());
bc.combatValue = static_cast<ui32>(level["combat_value"].Float());
std::vector<SpellID> spells;
IObjectInterface::cb->getAllowedSpells(spells);
@@ -52,8 +49,6 @@ BankConfig CBankInstanceConstructor::generateConfig(const JsonNode & level, CRan
bc.artifacts = JsonRandom::loadArtifacts(level["reward"]["artifacts"], rng);
bc.spells = JsonRandom::loadSpells(level["reward"]["spells"], rng, spells);
bc.value = static_cast<ui32>(level["value"].Float());
return bc;
}