mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Assembling difficulty json instead of overriding
This commit is contained in:
parent
2a2f0a657e
commit
5b24fe289b
@ -661,7 +661,7 @@ void CGameState::initGlobalBonuses()
|
||||
void CGameState::initDifficulty()
|
||||
{
|
||||
logGlobal->debug("\tLoading difficulty settings");
|
||||
const JsonNode config(JsonPath::builtin("config/difficulty.json"));
|
||||
const JsonNode config = JsonUtils::assembleFromFiles("config/difficulty.json");
|
||||
|
||||
const JsonNode & difficultyAI(config["ai"][GameConstants::DIFFICULTY_NAMES[scenarioOps->difficulty]]);
|
||||
const JsonNode & difficultyHuman(config["human"][GameConstants::DIFFICULTY_NAMES[scenarioOps->difficulty]]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user