From 422e132845255264314cd79aa14361d0df0905d7 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Wed, 24 Mar 2021 10:29:01 +0100 Subject: Feature: auto-detect map height limit based on generated map This opens up the true power of the TGP terrain generator, as it is no longer constrainted by an arbitrary low map height limit, especially for extreme terrain types. In other words: on a 1kx1k map with "Alpinist" terrain type, the map is now really hilly with default settings. People can still manually limit the map height if they so wish, and after the terrain generation the limit is stored in the savegame as if the user set it. Cheats still allow you to change this value. --- src/table/settings.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/table/settings.ini') diff --git a/src/table/settings.ini b/src/table/settings.ini index 67403a3bf..ae6a40e9f 100644 --- a/src/table/settings.ini +++ b/src/table/settings.ini @@ -394,16 +394,16 @@ base = GameSettings var = construction.map_height_limit type = SLE_UINT8 from = SLV_194 -guiflags = SGF_NEWGAME_ONLY | SGF_SCENEDIT_TOO -def = DEF_MAP_HEIGHT_LIMIT +guiflags = SGF_NEWGAME_ONLY | SGF_SCENEDIT_TOO | SGF_0ISDISABLED +def = 0 min = MIN_MAP_HEIGHT_LIMIT max = MAX_MAP_HEIGHT_LIMIT interval = 1 str = STR_CONFIG_SETTING_MAP_HEIGHT_LIMIT strhelp = STR_CONFIG_SETTING_MAP_HEIGHT_LIMIT_HELPTEXT -strval = STR_JUST_INT +strval = STR_CONFIG_SETTING_MAP_HEIGHT_LIMIT_VALUE proc = ChangeMaxHeightLevel -cat = SC_BASIC +cat = SC_ADVANCED [SDT_BOOL] base = GameSettings -- cgit v1.2.3-54-g00ecf