-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfo.nut
More file actions
302 lines (300 loc) · 6.51 KB
/
Copy pathinfo.nut
File metadata and controls
302 lines (300 loc) · 6.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
SELF_VERSION <- 1;
class GenerationMod extends GSInfo
{
function GetAuthor() { return "IRONy"; }
function GetName() { return "Generation Mod"; }
function GetDescription() { return "Modification of generating economic models"; }
function GetVersion() { return SELF_VERSION; }
function GetDate() { return "2020-10-07"; }
function CreateInstance() { return "GenerationMod"; }
function GetShortName() { return "GenM"; }
function GetAPIVersion() { return "1.3"; }
function GetUrl() { return ""; }
function GetSettings()
{
AddSetting
({
name = "MULTI_IND_TOWN",
description = "Allow multiple similar industries per town (must be on)",
easy_value = 1,
medium_value = 1,
hard_value = 1,
custom_value = 1,
flags = CONFIG_BOOLEAN | CONFIG_INGAME
});
AddSetting
({
name = "PROS_BOOL",
description = "Prospect abnormal industries rather than use methods (must be on)",
easy_value = 1,
medium_value = 1,
hard_value = 1,
custom_value = 1,
flags = CONFIG_BOOLEAN | CONFIG_INGAME
});
AddSetting
({
name = "MANAGE_BOOL",
description = "Industry amount (must be on)",
easy_value = 1,
medium_value = 1,
hard_value = 1,
custom_value = 1,
flags = CONFIG_INGAME | CONFIG_BOOLEAN
});
AddSetting
({
name = "BUILD_SPEED",
description = "Industry build rate (months)",
easy_value = 6,
medium_value = 12,
hard_value = 18
custom_value = 12,
flags = CONFIG_INGAME,
min_value = 3,
max_value = 48,
step_size = 3
});
AddSetting
({
name = "BUILD_LIMIT",
description = "Industry build limit (per period)",
easy_value = 4,
medium_value = 2,
hard_value = 1,
custom_value = 1,
flags = CONFIG_INGAME,
min_value = 1,
max_value = 5
step_size = 1
});
AddSetting
({
name = "log_level",
description = "Debug: Log level (higher = print more)",
easy_value = 1,
medium_value =1,
hard_value = 1,
custom_value = 1,
flags = CONFIG_INGAME,
min_value = 1,
max_value = 4
});
AddSetting
({
name = "DENSITY_IND_TOTAL",
description = "Total industries",
easy_value = 90,
medium_value = 50,
hard_value = 10,
custom_value = 50,
flags = 0,
min_value = 10,
max_value = 90,
step_size = 20
});
AddLabels("DENSITY_IND_TOTAL",
{
_10 = "Minimal (10)",
_30 = "Very Low (30)",
_50 = "Low (50)",
_70 = "Normal (70)",
_90 = "High (90)"
});
AddSetting
({
name = "DENSITY_IND_MIN",
description = "Min industries %",
easy_value = 75,
medium_value = 50,
hard_value = 25,
custom_value = 50,
flags = 0,
min_value = 25,
max_value = 75,
step_size = 5
});
AddSetting
({
name = "DENSITY_IND_MAX",
description = "Max industries %",
easy_value = 150,
medium_value = 125,
hard_value = 100,
custom_value = 125,
flags = 0,
min_value = 100,
max_value = 150,
step_size = 5
});
AddSetting
({
name = "DENSITY_RAW_PROP",
description = "Primary industries proportion",
easy_value = 6,
medium_value = 6,
hard_value = 6,
custom_value = 6,
flags = 0,
min_value = 1,
max_value = 16,
step_size = 1
});
AddSetting
({
name = "DENSITY_PROC_PROP",
description = "Secondary industries proportion",
easy_value = 3,
medium_value = 3,
hard_value = 3,
custom_value = 3,
flags = 0,
min_value = 1,
max_value = 16,
step_size = 1
});
AddSetting
({
name = "DENSITY_TERT_PROP",
description = "Tertiary industries proportion",
easy_value = 1,
medium_value = 1,
hard_value = 1,
custom_value = 1,
flags = 0,
min_value = 1,
max_value = 16,
step_size = 1
});
AddSetting
({
name = "DENSITY_SPEC_PROP",
description = "Special industries proportion",
easy_value = 1,
medium_value = 1,
hard_value = 1,
custom_value = 1,
flags = 0,
min_value = 1,
max_value = 16,
step_size = 1
});
AddSetting
({
name = "DENSITY_RAW_METHOD",
description = "Primary industries spawning method",
easy_value = 3,
medium_value = 3,
hard_value = 3,
custom_value = 3,
flags = 0,
min_value = 3,
max_value = 4
});
AddLabels("DENSITY_RAW_METHOD",
{
_3 = "Scattered",
_4 = "Random"
});
AddSetting
({
name = "DENSITY_PROC_METHOD",
description = "Secondary industries spawning method",
easy_value = 3,
medium_value = 3,
hard_value = 3,
custom_value = 3,
flags = 0,
min_value = 3,
max_value = 4
});
AddLabels("DENSITY_PROC_METHOD",
{
_3 = "Scattered",
_4 = "Random"
});
AddSetting
({
name = "DENSITY_TERT_METHOD",
description = "Tertiary industries spawning method",
easy_value = 3,
medium_value = 3,
hard_value = 3,
custom_value = 3,
flags = 0,
min_value = 3,
max_value = 4
});
AddLabels("DENSITY_TERT_METHOD",
{
_3 = "Scattered",
_4 = "Random"
});
AddSetting
({
name = "SCATTERED_MIN_TOWN",
description = "Scattered: Minimum distance from towns",
easy_value = 25,
medium_value = 20,
hard_value = 15,
custom_value = 20,
flags = CONFIG_INGAME,
min_value = 5,
max_value = 30,
step_size = 5
});
AddSetting
({
name = "SCATTERED_MIN_IND",
description = "Scattered: Minimum distance from industries",
easy_value = 20,
medium_value = 15,
hard_value = 10,
custom_value = 15,
flags = CONFIG_INGAME,
min_value = 5,
max_value = 30,
step_size = 5
});
AddSetting
({
name = "SPEC_BANK_MINPOP",
description = "Special: Minimum town pop for Banks",
easy_value = 1200,
medium_value = 1200,
hard_value = 1200,
custom_value = 1200,
flags = CONFIG_INGAME,
min_value = 600,
max_value = 3000,
step_size = 200
});
AddSetting
({
name = "MAX_OIL_DIST",
description = "Max distance from edge for Oil Refineries",
easy_value = 40,
medium_value = 40,
hard_value = 40,
custom_value = 40,
flags = CONFIG_INGAME,
min_value = 12,
max_value = 48,
step_size = 1
});
AddSetting
({
name = "SPEC_RIG_MINYEAR",
description = "Minimum year for Oil Rigs",
easy_value = 1950,
medium_value = 1950,
hard_value = 1950,
custom_value = 1950,
flags = CONFIG_INGAME,
min_value = 1900,
max_value = 2050,
step_size = 1
});
}
}
RegisterGS(GenerationMod());