1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

- Commanders are now a part of faction config

- Support for external dwellings for new towns
This commit is contained in:
DjWarmonger
2012-12-19 16:35:58 +00:00
parent c0ce8712c1
commit 0e06ac15ad
17 changed files with 61 additions and 11 deletions

View File

@@ -502,10 +502,6 @@ void CCreatureHandler::loadCreatures()
tlog5 << "\t\tReading config/commanders.json" << std::endl;
const JsonNode config3(ResourceID("config/commanders.json"));
BOOST_FOREACH (auto creature, config3["factionCreatures"].Vector())
{
factionCommanders[creature["faction"].Float()] = creature["id"].Float();
}
BOOST_FOREACH (auto bonus, config3["bonusPerLevel"].Vector())
{
commanderLevelPremy.push_back(JsonUtils::parseBonus (bonus.Vector()));