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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user