1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Last breaking change into mod system (will explain on forum)

- paths in "filesystem" node are now relative to mod directory
- "filesystem" entry in mod.json is now optional
- made "register object" log messages visible only in log
- minor fixes, including #1173
This commit is contained in:
Ivan Savenko
2013-01-16 14:28:49 +00:00
parent d7c9377843
commit 5deb499e7e
10 changed files with 46 additions and 24 deletions

View File

@@ -141,7 +141,7 @@ void CHeroClassHandler::load(const JsonNode & classes)
heroClass->id = heroClasses.size();
heroClasses.push_back(heroClass);
tlog3 << "Added hero class: " << entry.first << "\n";
tlog5 << "Added hero class: " << entry.first << "\n";
VLC->modh->identifiers.registerObject("heroClass." + heroClass->identifier, heroClass->id);
}
}
@@ -222,7 +222,7 @@ void CHeroHandler::load(const JsonNode & input)
hero->ID = heroes.size();
heroes.push_back(hero);
tlog3 << "Added hero: " << entry.first << "\n";
tlog5 << "Added hero: " << entry.first << "\n";
VLC->modh->identifiers.registerObject("hero." + entry.first, hero->ID);
}
}