Debian Codegraph @

test-scripting/species/species_macros/env.py

raw
1 from macros.misc import DESCRIPTION_EFFECTSGROUP_MACRO
2
3 # BROAD_EP and NARROW_EP are stub placeholders for applying the
4 # board/narrow environment tolerance description to a species.
5
6 try:
7 from focs._effects import (
8 Adequate,
9 AsteroidsType,
10 Barren,
11 Desert,
12 GasGiantType,
13 Good,
14 Hostile,
15 Inferno,
16 Ocean,
17 Poor,
18 Radiated,
19 Swamp,
20 Terran,
21 Toxic,
22 Tundra,
23 Uninhabitable,
24 )
25 except ModuleNotFoundError:
26 pass
27
28 BROAD_EP = DESCRIPTION_EFFECTSGROUP_MACRO("BROAD_EP_DESC")
29
30 # NARROW_EP
31 # '''[[DESCRIPTION_EFFECTSGROUP_MACRO(NARROW_EP_DESC)]]'''
32
33 # SWAMP_STANDARD_EP
34 # '''environments = [
35 # type = Swamp environment = Good
36 # type = Toxic environment = Adequate
37 # type = Inferno environment = Poor
38 # type = Radiated environment = Hostile
39 # type = Barren environment = Hostile
40 # type = Tundra environment = Hostile
41 # type = Desert environment = Hostile
42 # type = Terran environment = Poor
43 # type = Ocean environment = Adequate
44 # type = Asteroids environment = Uninhabitable
45 # type = GasGiant environment = Uninhabitable
46 # ]'''
47
48 # TOXIC_STANDARD_EP
49 # '''environments = [
50 # type = Swamp environment = Adequate
51 # type = Toxic environment = Good
52 # type = Inferno environment = Adequate
53 # type = Radiated environment = Poor
54 # type = Barren environment = Hostile
55 # type = Tundra environment = Hostile
56 # type = Desert environment = Hostile
57 # type = Terran environment = Hostile
58 # type = Ocean environment = Poor
59 # type = Asteroids environment = Uninhabitable
60 # type = GasGiant environment = Uninhabitable
61 # ]'''
62
63 # INFERNO_STANDARD_EP
64 # '''environments = [
65 # type = Swamp environment = Poor
66 # type = Toxic environment = Adequate
67 # type = Inferno environment = Good
68 # type = Radiated environment = Adequate
69 # type = Barren environment = Poor
70 # type = Tundra environment = Hostile
71 # type = Desert environment = Hostile
72 # type = Terran environment = Hostile
73 # type = Ocean environment = Hostile
74 # type = Asteroids environment = Uninhabitable
75 # type = GasGiant environment = Uninhabitable
76 # ]'''
77
78 # RADIATED_STANDARD_EP
79 # '''environments = [
80 # type = Swamp environment = Hostile
81 # type = Toxic environment = Poor
82 # type = Inferno environment = Adequate
83 # type = Radiated environment = Good
84 # type = Barren environment = Adequate
85 # type = Tundra environment = Poor
86 # type = Desert environment = Hostile
87 # type = Terran environment = Hostile
88 # type = Ocean environment = Hostile
89 # type = Asteroids environment = Uninhabitable
90 # type = GasGiant environment = Uninhabitable
91 # ]'''
92
93 # BARREN_STANDARD_EP
94 # '''environments = [
95 # type = Swamp environment = Hostile
96 # type = Toxic environment = Hostile
97 # type = Inferno environment = Poor
98 # type = Radiated environment = Adequate
99 # type = Barren environment = Good
100 # type = Tundra environment = Adequate
101 # type = Desert environment = Poor
102 # type = Terran environment = Hostile
103 # type = Ocean environment = Hostile
104 # type = Asteroids environment = Uninhabitable
105 # type = GasGiant environment = Uninhabitable
106 # ]'''
107
108 # TUNDRA_STANDARD_EP
109 # '''environments = [
110 # type = Swamp environment = Hostile
111 # type = Toxic environment = Hostile
112 # type = Inferno environment = Hostile
113 # type = Radiated environment = Poor
114 # type = Barren environment = Adequate
115 # type = Tundra environment = Good
116 # type = Desert environment = Adequate
117 # type = Terran environment = Poor
118 # type = Ocean environment = Hostile
119 # type = Asteroids environment = Uninhabitable
120 # type = GasGiant environment = Uninhabitable
121 # ]'''
122
123 # DESERT_STANDARD_EP
124 # '''environments = [
125 # type = Swamp environment = Hostile
126 # type = Toxic environment = Hostile
127 # type = Inferno environment = Hostile
128 # type = Radiated environment = Hostile
129 # type = Barren environment = Poor
130 # type = Tundra environment = Adequate
131 # type = Desert environment = Good
132 # type = Terran environment = Adequate
133 # type = Ocean environment = Poor
134 # type = Asteroids environment = Uninhabitable
135 # type = GasGiant environment = Uninhabitable
136 # ]'''
137
138 # TERRAN_STANDARD_EP
139 # '''environments = [
140 # type = Swamp environment = Poor
141 # type = Toxic environment = Hostile
142 # type = Inferno environment = Hostile
143 # type = Radiated environment = Hostile
144 # type = Barren environment = Hostile
145 # type = Tundra environment = Poor
146 # type = Desert environment = Adequate
147 # type = Terran environment = Good
148 # type = Ocean environment = Adequate
149 # type = Asteroids environment = Uninhabitable
150 # type = GasGiant environment = Uninhabitable
151 # ]'''
152
153 # OCEAN_STANDARD_EP
154 # '''environments = [
155 # type = Swamp environment = Adequate
156 # type = Toxic environment = Poor
157 # type = Inferno environment = Hostile
158 # type = Radiated environment = Hostile
159 # type = Barren environment = Hostile
160 # type = Tundra environment = Hostile
161 # type = Desert environment = Poor
162 # type = Terran environment = Adequate
163 # type = Ocean environment = Good
164 # type = Asteroids environment = Uninhabitable
165 # type = GasGiant environment = Uninhabitable
166 # ]'''
167
168 # SWAMP_NARROW_EP
169 # '''environments = [
170 # type = Swamp environment = Good
171 # type = Toxic environment = Poor
172 # type = Inferno environment = Hostile
173 # type = Radiated environment = Hostile
174 # type = Barren environment = Hostile
175 # type = Tundra environment = Hostile
176 # type = Desert environment = Hostile
177 # type = Terran environment = Hostile
178 # type = Ocean environment = Poor
179 # type = Asteroids environment = Uninhabitable
180 # type = GasGiant environment = Uninhabitable
181 # ]'''
182
183 # TOXIC_NARROW_EP
184 # '''environments = [
185 # type = Swamp environment = Poor
186 # type = Toxic environment = Good
187 # type = Inferno environment = Poor
188 # type = Radiated environment = Hostile
189 # type = Barren environment = Hostile
190 # type = Tundra environment = Hostile
191 # type = Desert environment = Hostile
192 # type = Terran environment = Hostile
193 # type = Ocean environment = Hostile
194 # type = Asteroids environment = Uninhabitable
195 # type = GasGiant environment = Uninhabitable
196 # ]'''
197
198 # INFERNO_NARROW_EP
199 # '''environments = [
200 # type = Swamp environment = Hostile
201 # type = Toxic environment = Poor
202 # type = Inferno environment = Good
203 # type = Radiated environment = Poor
204 # type = Barren environment = Hostile
205 # type = Tundra environment = Hostile
206 # type = Desert environment = Hostile
207 # type = Terran environment = Hostile
208 # type = Ocean environment = Hostile
209 # type = Asteroids environment = Uninhabitable
210 # type = GasGiant environment = Uninhabitable
211 # ]'''
212
213 # RADIATED_NARROW_EP
214 # '''environments = [
215 # type = Swamp environment = Hostile
216 # type = Toxic environment = Hostile
217 # type = Inferno environment = Poor
218 # type = Radiated environment = Good
219 # type = Barren environment = Poor
220 # type = Tundra environment = Hostile
221 # type = Desert environment = Hostile
222 # type = Terran environment = Hostile
223 # type = Ocean environment = Hostile
224 # type = Asteroids environment = Uninhabitable
225 # type = GasGiant environment = Uninhabitable
226 # ]'''
227
228 # BARREN_NARROW_EP
229 # '''environments = [
230 # type = Swamp environment = Hostile
231 # type = Toxic environment = Hostile
232 # type = Inferno environment = Hostile
233 # type = Radiated environment = Poor
234 # type = Barren environment = Good
235 # type = Tundra environment = Poor
236 # type = Desert environment = Hostile
237 # type = Terran environment = Hostile
238 # type = Ocean environment = Hostile
239 # type = Asteroids environment = Uninhabitable
240 # type = GasGiant environment = Uninhabitable
241 # ]'''
242
243 # TUNDRA_NARROW_EP
244 # '''environments = [
245 # type = Swamp environment = Hostile
246 # type = Toxic environment = Hostile
247 # type = Inferno environment = Hostile
248 # type = Radiated environment = Hostile
249 # type = Barren environment = Poor
250 # type = Tundra environment = Good
251 # type = Desert environment = Poor
252 # type = Terran environment = Hostile
253 # type = Ocean environment = Hostile
254 # type = Asteroids environment = Uninhabitable
255 # type = GasGiant environment = Uninhabitable
256 # ]'''
257
258 # DESERT_NARROW_EP
259 # '''environments = [
260 # type = Swamp environment = Hostile
261 # type = Toxic environment = Hostile
262 # type = Inferno environment = Hostile
263 # type = Radiated environment = Hostile
264 # type = Barren environment = Hostile
265 # type = Tundra environment = Poor
266 # type = Desert environment = Good
267 # type = Terran environment = Poor
268 # type = Ocean environment = Hostile
269 # type = Asteroids environment = Uninhabitable
270 # type = GasGiant environment = Uninhabitable
271 # ]'''
272
273 # TERRAN_NARROW_EP
274 # '''environments = [
275 # type = Swamp environment = Hostile
276 # type = Toxic environment = Hostile
277 # type = Inferno environment = Hostile
278 # type = Radiated environment = Hostile
279 # type = Barren environment = Hostile
280 # type = Tundra environment = Hostile
281 # type = Desert environment = Poor
282 # type = Terran environment = Good
283 # type = Ocean environment = Poor
284 # type = Asteroids environment = Uninhabitable
285 # type = GasGiant environment = Uninhabitable
286 # ]'''
287
288 # OCEAN_NARROW_EP
289 # '''environments = [
290 # type = Swamp environment = Poor
291 # type = Toxic environment = Hostile
292 # type = Inferno environment = Hostile
293 # type = Radiated environment = Hostile
294 # type = Barren environment = Hostile
295 # type = Tundra environment = Hostile
296 # type = Desert environment = Hostile
297 # type = Terran environment = Poor
298 # type = Ocean environment = Good
299 # type = Asteroids environment = Uninhabitable
300 # type = GasGiant environment = Uninhabitable
301 # ]'''
302
303 # SWAMP_BROAD_EP
304 # '''environments = [
305 # type = Swamp environment = Good
306 # type = Toxic environment = Adequate
307 # type = Inferno environment = Poor
308 # type = Radiated environment = Poor
309 # type = Barren environment = Hostile
310 # type = Tundra environment = Hostile
311 # type = Desert environment = Poor
312 # type = Terran environment = Poor
313 # type = Ocean environment = Adequate
314 # type = Asteroids environment = Uninhabitable
315 # type = GasGiant environment = Uninhabitable
316 # ]'''
317
318 # TOXIC_BROAD_EP
319 # '''environments = [
320 # type = Swamp environment = Adequate
321 # type = Toxic environment = Good
322 # type = Inferno environment = Adequate
323 # type = Radiated environment = Poor
324 # type = Barren environment = Poor
325 # type = Tundra environment = Hostile
326 # type = Desert environment = Hostile
327 # type = Terran environment = Poor
328 # type = Ocean environment = Poor
329 # type = Asteroids environment = Uninhabitable
330 # type = GasGiant environment = Uninhabitable
331 # ]'''
332
333 INFERNO_BROAD_EP = {
334 Swamp: Poor,
335 Toxic: Adequate,
336 Inferno: Good,
337 Radiated: Adequate,
338 Barren: Poor,
339 Tundra: Poor,
340 Desert: Hostile,
341 Terran: Hostile,
342 Ocean: Poor,
343 AsteroidsType: Uninhabitable,
344 GasGiantType: Uninhabitable,
345 }
346
347 # RADIATED_BROAD_EP
348 # '''environments = [
349 # type = Swamp environment = Poor
350 # type = Toxic environment = Poor
351 # type = Inferno environment = Adequate
352 # type = Radiated environment = Good
353 # type = Barren environment = Adequate
354 # type = Tundra environment = Poor
355 # type = Desert environment = Poor
356 # type = Terran environment = Hostile
357 # type = Ocean environment = Hostile
358 # type = Asteroids environment = Uninhabitable
359 # type = GasGiant environment = Uninhabitable
360 # ]'''
361
362 # BARREN_BROAD_EP
363 # '''environments = [
364 # type = Swamp environment = Hostile
365 # type = Toxic environment = Poor
366 # type = Inferno environment = Poor
367 # type = Radiated environment = Adequate
368 # type = Barren environment = Good
369 # type = Tundra environment = Adequate
370 # type = Desert environment = Poor
371 # type = Terran environment = Poor
372 # type = Ocean environment = Hostile
373 # type = Asteroids environment = Uninhabitable
374 # type = GasGiant environment = Uninhabitable
375 # ]'''
376
377 # TUNDRA_BROAD_EP
378 # '''environments = [
379 # type = Swamp environment = Hostile
380 # type = Toxic environment = Hostile
381 # type = Inferno environment = Poor
382 # type = Radiated environment = Poor
383 # type = Barren environment = Adequate
384 # type = Tundra environment = Good
385 # type = Desert environment = Adequate
386 # type = Terran environment = Poor
387 # type = Ocean environment = Poor
388 # type = Asteroids environment = Uninhabitable
389 # type = GasGiant environment = Uninhabitable
390 # ]'''
391
392 # DESERT_BROAD_EP
393 # '''environments = [
394 # type = Swamp environment = Poor
395 # type = Toxic environment = Hostile
396 # type = Inferno environment = Hostile
397 # type = Radiated environment = Poor
398 # type = Barren environment = Poor
399 # type = Tundra environment = Adequate
400 # type = Desert environment = Good
401 # type = Terran environment = Adequate
402 # type = Ocean environment = Poor
403 # type = Asteroids environment = Uninhabitable
404 # type = GasGiant environment = Uninhabitable
405 # ]'''
406
407 # TERRAN_BROAD_EP
408 # '''environments = [
409 # type = Swamp environment = Poor
410 # type = Toxic environment = Poor
411 # type = Inferno environment = Hostile
412 # type = Radiated environment = Hostile
413 # type = Barren environment = Poor
414 # type = Tundra environment = Poor
415 # type = Desert environment = Adequate
416 # type = Terran environment = Good
417 # type = Ocean environment = Adequate
418 # type = Asteroids environment = Uninhabitable
419 # type = GasGiant environment = Uninhabitable
420 # ]'''
421
422 # OCEAN_BROAD_EP
423 # '''environments = [
424 # type = Swamp environment = Adequate
425 # type = Toxic environment = Poor
426 # type = Inferno environment = Poor
427 # type = Radiated environment = Hostile
428 # type = Barren environment = Hostile
429 # type = Tundra environment = Poor
430 # type = Desert environment = Poor
431 # type = Terran environment = Adequate
432 # type = Ocean environment = Good
433 # type = Asteroids environment = Uninhabitable
434 # type = GasGiant environment = Uninhabitable
435 # ]'''
436
437 # TOLERANT_EP
438 # '''environments = [
439 # type = Swamp environment = Good
440 # type = Toxic environment = Good
441 # type = Inferno environment = Good
442 # type = Radiated environment = Good
443 # type = Barren environment = Good
444 # type = Tundra environment = Good
445 # type = Desert environment = Good
446 # type = Terran environment = Good
447 # type = Ocean environment = Good
448 # type = Asteroids environment = Uninhabitable
449 # type = GasGiant environment = Uninhabitable
450 # ]'''
451
452 # VERY_TOLERANT_EP
453 # '''environments = [
454 # type = Swamp environment = Good
455 # type = Toxic environment = Good
456 # type = Inferno environment = Good
457 # type = Radiated environment = Good
458 # type = Barren environment = Good
459 # type = Tundra environment = Good
460 # type = Desert environment = Good
461 # type = Terran environment = Good
462 # type = Ocean environment = Good
463 # type = Asteroids environment = Adequate
464 # type = GasGiant environment = Adequate
465 # ]'''
466
467 # ASTEROIDAL_NARROW_EP
468 # '''environments = [
469 # type = Swamp environment = Uninhabitable
470 # type = Toxic environment = Uninhabitable
471 # type = Inferno environment = Uninhabitable
472 # type = Radiated environment = Uninhabitable
473 # type = Barren environment = Hostile
474 # type = Tundra environment = Uninhabitable
475 # type = Desert environment = Uninhabitable
476 # type = Terran environment = Uninhabitable
477 # type = Ocean environment = Uninhabitable
478 # type = Asteroids environment = Adequate
479 # type = GasGiant environment = Uninhabitable
480 # ]'''
481
482 # ASTEROIDAL_STANDARD_EP
483 # '''environments = [
484 # type = Swamp environment = Hostile
485 # type = Toxic environment = Hostile
486 # type = Inferno environment = Hostile
487 # type = Radiated environment = Hostile
488 # type = Barren environment = Poor
489 # type = Tundra environment = Hostile
490 # type = Desert environment = Hostile
491 # type = Terran environment = Hostile
492 # type = Ocean environment = Hostile
493 # type = Asteroids environment = Good
494 # type = GasGiant environment = Uninhabitable
495 # ]'''
496
497 # GASEOUS_NARROW_EP
498 # '''environments = [
499 # type = Swamp environment = Uninhabitable
500 # type = Toxic environment = Uninhabitable
501 # type = Inferno environment = Uninhabitable
502 # type = Radiated environment = Uninhabitable
503 # type = Barren environment = Uninhabitable
504 # type = Tundra environment = Uninhabitable
505 # type = Desert environment = Uninhabitable
506 # type = Terran environment = Uninhabitable
507 # type = Ocean environment = Hostile
508 # type = Asteroids environment = Uninhabitable
509 # type = GasGiant environment = Adequate
510 # ]'''
511
512 # GASEOUS_STANDARD_EP
513 # '''environments = [
514 # type = Swamp environment = Hostile
515 # type = Toxic environment = Hostile
516 # type = Inferno environment = Hostile
517 # type = Radiated environment = Hostile
518 # type = Barren environment = Hostile
519 # type = Tundra environment = Hostile
520 # type = Desert environment = Hostile
521 # type = Terran environment = Hostile
522 # type = Ocean environment = Hostile
523 # type = Asteroids environment = Uninhabitable
524 # type = GasGiant environment = Good
525 # ]'''