mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Add quick workaround for loading identifiers from difficulty bonuses
This commit is contained in:
		| @@ -44,6 +44,7 @@ | ||||
| #include "../mapping/CMapEditManager.h" | ||||
| #include "../mapping/CMapService.h" | ||||
| #include "../modding/IdentifierStorage.h" | ||||
| #include "../modding/ModScope.h" | ||||
| #include "../pathfinder/CPathfinder.h" | ||||
| #include "../pathfinder/PathfinderOptions.h" | ||||
| #include "../registerTypes/RegisterTypesClientPacks.h" | ||||
| @@ -413,7 +414,8 @@ void CGameState::initGlobalBonuses() | ||||
| void CGameState::initDifficulty() | ||||
| { | ||||
| 	logGlobal->debug("\tLoading difficulty settings"); | ||||
| 	const JsonNode config = JsonUtils::assembleFromFiles("config/difficulty.json"); | ||||
| 	JsonNode config = JsonUtils::assembleFromFiles("config/difficulty.json"); | ||||
| 	config.setModScope(ModScope::scopeGame()); // FIXME: should be set to actual mod | ||||
| 	 | ||||
| 	const JsonNode & difficultyAI(config["ai"][GameConstants::DIFFICULTY_NAMES[scenarioOps->difficulty]]); | ||||
| 	const JsonNode & difficultyHuman(config["human"][GameConstants::DIFFICULTY_NAMES[scenarioOps->difficulty]]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user