Debian Codegraph @

default/scripting/species/species_macros/env.py

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