1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-30 04:30:42 +02:00
This commit is contained in:
Laserlicht 2024-09-27 20:16:41 +02:00
parent 7f8f09c8fa
commit efcac3b933
4 changed files with 7 additions and 2 deletions

View File

@ -311,7 +311,9 @@
// How many new building can be built in a town per day
"buildingsPerTurnCap" : 1,
// Chances for a town with default buildings to receive corresponding dwelling level built in start
"startingDwellingChances": [100, 50]
"startingDwellingChances": [100, 50],
// Enable spell research in mage guild
"spellResearch": false
},
"combat":

View File

@ -52,7 +52,8 @@
"additionalProperties" : false,
"properties" : {
"buildingsPerTurnCap" : { "type" : "number" },
"startingDwellingChances" : { "type" : "array" }
"startingDwellingChances" : { "type" : "array" },
"spellResearch" : { "type" : "boolean" }
}
},
"combat": {

View File

@ -101,6 +101,7 @@ const std::vector<GameSettings::SettingOption> GameSettings::settingProperties =
{EGameSettings::TEXTS_TERRAIN, "textData", "terrain" },
{EGameSettings::TOWNS_BUILDINGS_PER_TURN_CAP, "towns", "buildingsPerTurnCap" },
{EGameSettings::TOWNS_STARTING_DWELLING_CHANCES, "towns", "startingDwellingChances" },
{EGameSettings::TOWNS_SPELL_RESEARCH, "towns", "spellResearch" },
};
void GameSettings::loadBase(const JsonNode & input)

View File

@ -79,6 +79,7 @@ enum class EGameSettings
TEXTS_TERRAIN,
TOWNS_BUILDINGS_PER_TURN_CAP,
TOWNS_STARTING_DWELLING_CHANCES,
TOWNS_SPELL_RESEARCH,
OPTIONS_COUNT,
OPTIONS_BEGIN = BONUSES_GLOBAL