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