summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-05 19:36:04 +0000
committerfrosch <frosch@openttd.org>2012-12-05 19:36:04 +0000
commit812ae4140a8566c2b4b43c6aa5bab5eecf82f18a (patch)
treeb79a9960ef438be736d9768a71336f8dd60f9416 /src/table
parente43bf5dabdb4a62b4e6b6812db422b962b4eaaf1 (diff)
downloadopenttd-812ae4140a8566c2b4b43c6aa5bab5eecf82f18a.tar.xz
(svn r24789) -Add: Separate setting to control the default settings of newly added scripts and random AIs.
Diffstat (limited to 'src/table')
-rw-r--r--src/table/gameopt_settings.ini1
-rw-r--r--src/table/settings.ini15
2 files changed, 16 insertions, 0 deletions
diff --git a/src/table/gameopt_settings.ini b/src/table/gameopt_settings.ini
index 71bc68502..10373c965 100644
--- a/src/table/gameopt_settings.ini
+++ b/src/table/gameopt_settings.ini
@@ -23,6 +23,7 @@ static const char *_savegame_date = "long|short|iso";
static const char *_server_langs = "ANY|ENGLISH|GERMAN|FRENCH|BRAZILIAN|BULGARIAN|CHINESE|CZECH|DANISH|DUTCH|ESPERANTO|FINNISH|HUNGARIAN|ICELANDIC|ITALIAN|JAPANESE|KOREAN|LITHUANIAN|NORWEGIAN|POLISH|PORTUGUESE|ROMANIAN|RUSSIAN|SLOVAK|SLOVENIAN|SPANISH|SWEDISH|TURKISH|UKRAINIAN|AFRIKAANS|CROATIAN|CATALAN|ESTONIAN|GALICIAN|GREEK|LATVIAN";
#endif /* ENABLE_NETWORK */
static const char *_osk_activation = "disabled|double|single|immediately";
+static const char *_settings_profiles = "easy|medium|hard";
static const SettingDesc _gameopt_settings[] = {
/* In version 4 a new difficulty setting has been added to the difficulty settings,
diff --git a/src/table/settings.ini b/src/table/settings.ini
index a9caf1caa..fa1ab0754 100644
--- a/src/table/settings.ini
+++ b/src/table/settings.ini
@@ -1298,6 +1298,21 @@ cat = SC_EXPERT
length = 1
to = 106
+[SDT_OMANY]
+base = GameSettings
+var = script.settings_profile
+type = SLE_UINT8
+from = 178
+guiflags = SGF_MULTISTRING
+def = SP_EASY
+min = SP_EASY
+max = SP_HARD
+full = _settings_profiles
+str = STR_CONFIG_SETTING_AI_PROFILE
+strhelp = STR_CONFIG_SETTING_AI_PROFILE_HELPTEXT
+strval = STR_CONFIG_SETTING_AI_PROFILE_EASY
+cat = SC_BASIC
+
[SDT_BOOL]
base = GameSettings
var = ai.ai_in_multiplayer