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

Moved game Modules to config file.

This commit is contained in:
DjWarmonger
2012-08-24 09:37:52 +00:00
parent d56e7c568a
commit 39d433c1c7
11 changed files with 55 additions and 24 deletions

View File

@@ -6,6 +6,7 @@
#include "../lib/CGameState.h"
#include "../lib/JsonNode.h"
#include "CHeroHandler.h"
#include "CModHandler.h"
using namespace boost::assign;
@@ -493,7 +494,7 @@ void CCreatureHandler::loadCreatures()
//std::map<TBonusType, std::pair<std::string, std::string> >::iterator it = stackBonuses.find(Bonus::MAGIC_RESISTANCE);
//stackBonuses[Bonus::SECONDARY_SKILL_PREMY] = std::pair<std::string, std::string>(it->second.first, it->second.second);
if (GameConstants::STACK_EXP) //reading default stack experience bonuses
if (VLC->modh->modules.STACK_EXP) //reading default stack experience bonuses
{
auto textFile = CResourceHandler::get()->loadData(ResourceID("DATA/CREXPBON.TXT"));
std::string buf((char*)textFile.first.get(), textFile.second);