1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

- removed no longer used CSndHandler. Transition to new fs is finished

- moved TownHandler::requirements to CBuilding class
This commit is contained in:
Ivan Savenko
2012-08-09 10:32:50 +00:00
parent 08bcfd1285
commit 7e778045b8
14 changed files with 30 additions and 270 deletions

View File

@ -110,16 +110,6 @@ void CTownHandler::loadStructures()
level ++;
}
// Buildings dependencies. Which building depend on which other building.
requirements.resize(GameConstants::F_NUMBER);
BOOST_FOREACH(const JsonNode &node, town_node["building_requirements"].Vector()) {
std::set<int> &requires = requirements[townID][node["id"].Float()];
BOOST_FOREACH(const JsonNode &building, node["requires"].Vector()) {
requires.insert(building.Float());
}
}
// Misc.
towns[townID].mageLevel = town_node["mage_guild"].Float();
towns[townID].primaryRes = town_node["primary_resource"].Float();