-
Notifications
You must be signed in to change notification settings - Fork 6
/
scenario_40_shop.lua
7130 lines (7124 loc) · 363 KB
/
scenario_40_shop.lua
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- Name: Shop Til You Drop
-- Description: Recovering from a battle, you're a long way from home. Your ship has been cobbled together from parts.
---
--- Designed to run with one or more player ships with different terrain each time. Player ships start off with limited capabilities, but can be upgraded beyond the normal player ship capabilities.
---
--- Duration: At least an hour
---
--- Version 1
---
--- USN Discord: https://discord.gg/PntGG3a where you can join a game online. There's one every weekend. All experience levels are welcome.
-- Type: Replayable Mission
-- Author: Xansta
-- Setting[Enemies]: Configures strength and/or number of enemies in this scenario
-- Enemies[Easy]: Fewer or weaker enemies
-- Enemies[Normal|Default]: Normal number or strength of enemies
-- Enemies[Hard]: More or stronger enemies
-- Enemies[Extreme]: Much stronger, many more enemies
-- Enemies[Quixotic]: Insanely strong and/or inordinately large numbers of enemies
-- Setting[Murphy]: Configures the perversity of the universe according to Murphy's law
-- Murphy[Easy]: Random factors are more in your favor
-- Murphy[Normal|Default]: Random factors are normal
-- Murphy[Hard]: Random factors are more against you
-- Setting[Density]: Configures the relative density of the terrain
-- Density[Normal|Default]: Normal terrain density
-- Density[Less Dense]: Terrain is less dense than normal
-- Density[More Dense]: Terrain is more dense than normal
require("utils.lua")
require("place_station_scenario_utility.lua")
require("player_ship_upgrade_downgrade_path_scenario_utility.lua")
require("generate_call_sign_scenario_utility.lua")
require("cpu_ship_diversification_scenario_utility.lua")
function init()
scenario_version = "1.0.2"
ee_version = "2023.06.17"
print(string.format(" ---- Scenario: Shop Til You Drop ---- Version %s ---- Tested with EE version %s ----",scenario_version,ee_version))
print(_VERSION)
spew_function_diagnostic = false
spray_forth_diagnostic = false
setVariations()
setConstants()
constructEnvironment()
onNewPlayerShip(setPlayers)
end
function setVariations()
if spew_function_diagnostic then print("top of set variations") end
local enemy_config = {
["Easy"] = {number = .5},
["Normal"] = {number = 1},
["Hard"] = {number = 2},
["Extreme"] = {number = 3},
["Quixotic"] = {number = 5},
}
enemy_power = enemy_config[getScenarioSetting("Enemies")].number
local murphy_config = {
["Easy"] = {number = .5, adverse = .999, lose_coolant = .99999, gain_coolant = .005, rep = 40, start_danger = .4},
["Normal"] = {number = 1, adverse = .995, lose_coolant = .99995, gain_coolant = .001, rep = 20, start_danger = .8},
["Hard"] = {number = 2, adverse = .99, lose_coolant = .9999, gain_coolant = .0001, rep = 0, start_danger = 1.2},
}
difficulty = murphy_config[getScenarioSetting("Murphy")].number
adverseEffect = murphy_config[getScenarioSetting("Murphy")].adverse
coolant_loss = murphy_config[getScenarioSetting("Murphy")].lose_coolant
coolant_gain = murphy_config[getScenarioSetting("Murphy")].gain_coolant
reputation_start_amount=murphy_config[getScenarioSetting("Murphy")].rep
current_danger = murphy_config[getScenarioSetting("Murphy")].start_danger
local density_config = {
["Normal"] = 200,
["Less Dense"] = 100,
["More Dense"] = 300,
}
terrain_density = density_config[getScenarioSetting("Density")]
if spew_function_diagnostic then print("bottom of set variations") end
end
function setConstants()
if spew_function_diagnostic then print("top of set constants") end
max_repeat_loop = 300
center_x = random(400000,1200000)
center_y = random(60000,260000)
asteroid_field_angle = random(0,360)
player_spawn_x, player_spawn_y = vectorFromAngleNorth(asteroid_field_angle,random(-300,300)+9500)
player_spawn_x = player_spawn_x + center_x
player_spawn_y = player_spawn_y + center_y
primary_orders = _("orders-comms","Survive")
mileage_compensation = 6500
upgrade_price = 2
transport_list = {}
warp_jammer_list = {}
exuari_player_attackers = {}
exuari_spray = {}
regional_news = {}
system_list = {
"reactor",
"beamweapons",
"missilesystem",
"maneuver",
"impulse",
"warp",
"jumpdrive",
"frontshield",
"rearshield",
}
playerShipUpgradeDowngradeData()
player_ship_spawn_count = 0
--Player ship name lists to supplant standard randomized call sign generation
player_ship_names_for = {}
player_ship_names_for["Amalgam"] = {"Mixer","Igor","Ronco","Ginsu"}
player_ship_names_for["Atlantis"] = {"Excaliber","Thrasher","Punisher","Vorpal","Protang","Drummond","Parchim","Coronado"}
player_ship_names_for["Atlantis II"] = {"Spyder", "Shelob", "Tarantula", "Aragog", "Charlotte"}
player_ship_names_for["Benedict"] = {"Elizabeth","Ford","Vikramaditya","Liaoning","Avenger","Naruebet","Washington","Lincoln","Garibaldi","Eisenhower"}
player_ship_names_for["Crucible"] = {"Sling", "Stark", "Torrid", "Kicker", "Flummox"}
player_ship_names_for["Cruzeiro"] = {"Vamanos", "Cougar", "Parthos", "Trifecta", "Light Mind"}
player_ship_names_for["Destroyer III"] = {"Trebuchet", "Pitcher", "Mutant", "Gronk", "Methuselah"}
player_ship_names_for["Ender"] = {"Mongo","Godzilla","Leviathan","Kraken","Jupiter","Saturn"}
player_ship_names_for["Flavia P.Falcon"] = {"Ladyhawke","Hunter","Seeker","Gyrefalcon","Kestrel","Magpie","Bandit","Buccaneer"}
player_ship_names_for["Hathcock"] = {"Hayha", "Waldron", "Plunkett", "Mawhinney", "Furlong", "Zaytsev", "Pavlichenko", "Pegahmagabow", "Fett", "Hawkeye", "Hanzo"}
player_ship_names_for["Kiriya"] = {"Cavour","Reagan","Gaulle","Paulo","Truman","Stennis","Kuznetsov","Roosevelt","Vinson","Old Salt"}
player_ship_names_for["MP52 Hornet"] = {"Dragonfly","Scarab","Mantis","Yellow Jacket","Jimminy","Flik","Thorny","Buzz"}
player_ship_names_for["Maverick"] = {"Angel", "Thunderbird", "Roaster", "Magnifier", "Hedge"}
player_ship_names_for["Midian"] = {"Flipper", "Feint", "Dolphin", "Joker", "Trickster"}
player_ship_names_for["Nautilus"] = {"October", "Abdiel", "Manxman", "Newcon", "Nusret", "Pluton", "Amiral", "Amur", "Heinkel", "Dornier"}
player_ship_names_for["Phobos M3P"] = {"Blinder","Shadow","Distortion","Diemos","Ganymede","Castillo","Thebe","Retrograde"}
player_ship_names_for["Piranha"] = {"Razor","Biter","Ripper","Voracious","Carnivorous","Characid","Vulture","Predator"}
player_ship_names_for["Player Cruiser"] = {"Excelsior","Velociraptor","Thunder","Kona","Encounter","Perth","Aspern","Panther"}
player_ship_names_for["Player Fighter"] = {"Buzzer","Flitter","Zippiticus","Hopper","Molt","Stinger","Stripe"}
player_ship_names_for["Player Missile Cr."] = {"Projectus","Hurlmeister","Flinger","Ovod","Amatola","Nakhimov","Antigone"}
player_ship_names_for["Proto-Atlantis"] = {"Narsil", "Blade", "Decapitator", "Trisect", "Sabre"}
player_ship_names_for["Raven"] = {"Claw", "Bethel", "Cicero", "Da Vinci", "Skaats"}
player_ship_names_for["Redhook"] = {"Headhunter", "Thud", "Troll", "Scalper", "Shark"}
player_ship_names_for["Repulse"] = {"Fiddler","Brinks","Loomis","Mowag","Patria","Pandur","Terrex","Komatsu","Eitan"}
player_ship_names_for["Squid"] = {"Ink", "Tentacle", "Pierce", "Writhe", "Bogey"}
player_ship_names_for["Stricken"] = {"Blazon", "Streaker", "Pinto", "Spear", "Javelin"}
player_ship_names_for["Striker"] = {"Sparrow","Sizzle","Squawk","Crow","Phoenix","Snowbird","Hawk"}
player_ship_names_for["Surkov"] = {"Sting", "Sneak", "Bingo", "Thrill", "Vivisect"}
player_ship_names_for["ZX-Lindworm"] = {"Seagull","Catapult","Blowhard","Flapper","Nixie","Pixie","Tinkerbell"}
player_ship_names_for["Leftovers"] = {"Foregone","Righteous","Masher"}
playerShipStats = { --taken from sandbox. Not all are used. Not all characteristics are used.
["Atlantis"] = { strength = 52, cargo = 6, distance = 400, long_range_radar = 30000, short_range_radar = 5000, tractor = true, mining = true, probes = 10, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Benedict"] = { strength = 10, cargo = 9, distance = 400, long_range_radar = 30000, short_range_radar = 5000, tractor = true, mining = true, probes = 10, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Crucible"] = { strength = 45, cargo = 5, distance = 200, long_range_radar = 20000, short_range_radar = 6000, tractor = false, mining = false, probes = 9, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Ender"] = { strength = 100, cargo = 20, distance = 2000,long_range_radar = 45000, short_range_radar = 7000, tractor = true, mining = false, probes = 12, pods = 6, turbo_torp = false, patrol_probe = 0, prox_scan = 2, epjam = 0, },
["Flavia P.Falcon"] = { strength = 13, cargo = 15, distance = 200, long_range_radar = 40000, short_range_radar = 5000, tractor = true, mining = true, probes = 8, pods = 4, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Hathcock"] = { strength = 30, cargo = 6, distance = 200, long_range_radar = 35000, short_range_radar = 6000, tractor = false, mining = true, probes = 8, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Kiriya"] = { strength = 10, cargo = 9, distance = 400, long_range_radar = 35000, short_range_radar = 5000, tractor = true, mining = true, probes = 10, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Maverick"] = { strength = 45, cargo = 5, distance = 200, long_range_radar = 20000, short_range_radar = 4000, tractor = false, mining = true, probes = 9, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["MP52 Hornet"] = { strength = 7, cargo = 3, distance = 100, long_range_radar = 18000, short_range_radar = 4000, tractor = false, mining = false, probes = 5, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Nautilus"] = { strength = 12, cargo = 7, distance = 200, long_range_radar = 22000, short_range_radar = 4000, tractor = false, mining = false, probes = 10, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Phobos M3P"] = { strength = 19, cargo = 10, distance = 200, long_range_radar = 25000, short_range_radar = 5000, tractor = true, mining = false, probes = 6, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Piranha"] = { strength = 16, cargo = 8, distance = 200, long_range_radar = 25000, short_range_radar = 6000, tractor = false, mining = false, probes = 6, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Player Cruiser"] = { strength = 40, cargo = 6, distance = 400, long_range_radar = 30000, short_range_radar = 5000, tractor = false, mining = false, probes = 10, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Player Missile Cr."] = { strength = 45, cargo = 8, distance = 200, long_range_radar = 35000, short_range_radar = 6000, tractor = false, mining = false, probes = 9, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Player Fighter"] = { strength = 7, cargo = 3, distance = 100, long_range_radar = 15000, short_range_radar = 4500, tractor = false, mining = false, probes = 4, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Repulse"] = { strength = 14, cargo = 12, distance = 200, long_range_radar = 38000, short_range_radar = 5000, tractor = true, mining = false, probes = 8, pods = 5, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Striker"] = { strength = 8, cargo = 4, distance = 200, long_range_radar = 35000, short_range_radar = 5000, tractor = false, mining = false, probes = 6, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["ZX-Lindworm"] = { strength = 8, cargo = 3, distance = 100, long_range_radar = 18000, short_range_radar = 5500, tractor = false, mining = false, probes = 4, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
-- Custom player ships
["Amalgam"] = { strength = 42, cargo = 7, distance = 400, long_range_radar = 36000, short_range_radar = 5000, tractor = false, mining = false, probes = 11, pods = 3, turbo_torp = true, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Atlantis II"] = { strength = 60, cargo = 6, distance = 400, long_range_radar = 30000, short_range_radar = 5000, tractor = true, mining = true, probes = 11, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Barrow"] = { strength = 9, cargo = 9, distance = 400, long_range_radar = 35000, short_range_radar = 5000, tractor = true, mining = true, probes = 12, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 2, },
["Bermuda"] = { strength = 30, cargo = 4, distance = 400, long_range_radar = 30000, short_range_radar = 4500, tractor = true, mining = false, probes = 14, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Butler"] = { strength = 20, cargo = 6, distance = 200, long_range_radar = 30000, short_range_radar = 5500, tractor = true, mining = false, probes = 8, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Caretaker"] = { strength = 23, cargo = 6, distance = 200, long_range_radar = 35000, short_range_radar = 5000, tractor = true, mining = false, probes = 9, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Chavez"] = { strength = 21, cargo = 6, distance = 200, long_range_radar = 25000, short_range_radar = 5000, tractor = true, mining = true, probes = 8, pods = 2, turbo_torp = false, patrol_probe = 2.5, prox_scan = 0, epjam = 1, },
["Crab"] = { strength = 20, cargo = 6, distance = 200, long_range_radar = 30000, short_range_radar = 5500, tractor = false, mining = true, probes = 13, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Destroyer III"] = { strength = 25, cargo = 7, distance = 200, long_range_radar = 32000, short_range_radar = 5000, tractor = false, mining = false, probes = 8, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Destroyer IV"] = { strength = 22, cargo = 5, distance = 400, long_range_radar = 30000, short_range_radar = 5000, tractor = false, mining = true, probes = 8, pods = 1, turbo_torp = true, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Eldridge"] = { strength = 20, cargo = 7, distance = 200, long_range_radar = 24000, short_range_radar = 8000, tractor = false, mining = true, probes = 10, pods = 2, turbo_torp = false, patrol_probe = 3, prox_scan = 3, epjam = 0, },
["Era"] = { strength = 14, cargo = 14, distance = 200, long_range_radar = 50000, short_range_radar = 5000, tractor = true, mining = true, probes = 8, pods = 4, turbo_torp = false, patrol_probe = 0, prox_scan = 9, epjam = 3, },
["Flavia 2C"] = { strength = 25, cargo = 12, distance = 200, long_range_radar = 30000, short_range_radar = 5000, tractor = false, mining = true, probes = 9, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Focus"] = { strength = 35, cargo = 4, distance = 200, long_range_radar = 32000, short_range_radar = 5000, tractor = false, mining = true, probes = 8, pods = 1, turbo_torp = true, patrol_probe = 1.25,prox_scan = 0, epjam = 0, },
["Fowl"] = { strength = 8, cargo = 3, distance = 100, long_range_radar = 15000, short_range_radar = 4500, tractor = false, mining = false, probes = 4, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 3, },
["Fray"] = { strength = 22, cargo = 5, distance = 200, long_range_radar = 23000, short_range_radar = 4500, tractor = true, mining = false, probes = 7, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Fresnel"] = { strength = 8, cargo = 3, distance = 100, long_range_radar = 15000, short_range_radar = 4500, tractor = false, mining = false, probes = 4, pods = 1, turbo_torp = true, patrol_probe = 0, prox_scan = 9, epjam = 0, },
["Gadfly"] = { strength = 9, cargo = 3, distance = 100, long_range_radar = 15000, short_range_radar = 4500, tractor = false, mining = false, probes = 4, pods = 1, turbo_torp = false, patrol_probe = 3.6, prox_scan = 9, epjam = 0, },
["Glass Cannon"] = { strength = 15, cargo = 3, distance = 100, long_range_radar = 30000, short_range_radar = 5000, tractor = false, mining = false, probes = 8, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Gull"] = { strength = 14, cargo = 14, distance = 200, long_range_radar = 40000, short_range_radar = 5000, tractor = true, mining = true, probes = 8, pods = 4, turbo_torp = false, patrol_probe = 4, prox_scan = 0, epjam = 0, },
["Holmes"] = { strength = 35, cargo = 6, distance = 200, long_range_radar = 35000, short_range_radar = 4000, tractor = true, mining = false, probes = 8, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Interlock"] = { strength = 19, cargo = 12, distance = 200, long_range_radar = 35000, short_range_radar = 5500, tractor = false, mining = true, probes = 13, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Kludge"] = { strength = 22, cargo = 9, distance = 200, long_range_radar = 35000, short_range_radar = 3500, tractor = false, mining = true, probes = 20, pods = 5, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Lurker"] = { strength = 18, cargo = 3, distance = 100, long_range_radar = 21000, short_range_radar = 6000, tractor = false, mining = false, probes = 4, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Mantis"] = { strength = 30, cargo = 8, distance = 200, long_range_radar = 25000, short_range_radar = 6000, tractor = false, mining = false, probes = 9, pods = 2, turbo_torp = true, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Maverick XP"] = { strength = 23, cargo = 5, distance = 200, long_range_radar = 25000, short_range_radar = 7000, tractor = true, mining = false, probes = 10, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 2, epjam = 0, },
["Midian"] = { strength = 30, cargo = 9, distance = 200, long_range_radar = 25000, short_range_radar = 5500, tractor = false, mining = false, probes = 9, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["MX-Lindworm"] = { strength = 10, cargo = 3, distance = 100, long_range_radar = 30000, short_range_radar = 6000, tractor = false, mining = false, probes = 5, pods = 1, turbo_torp = false, patrol_probe = 3, prox_scan = 9, epjam = 0, },
["Noble"] = { strength = 33, cargo = 6, distance = 400, long_range_radar = 27000, short_range_radar = 5000, tractor = true, mining = false, probes = 8, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Nusret"] = { strength = 16, cargo = 7, distance = 200, long_range_radar = 25000, short_range_radar = 4000, tractor = false, mining = true, probes = 10, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 3, },
["Orca"] = { strength = 19, cargo = 6, distance = 200, long_range_radar = 25000, short_range_radar = 5000, tractor = true, mining = false, probes = 6, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 1, },
["Pacu"] = { strength = 18, cargo = 7, distance = 200, long_range_radar = 20000, short_range_radar = 6000, tractor = false, mining = false, probes = 6, pods = 2, turbo_torp = false, patrol_probe = 2.5, prox_scan = 1, epjam = 0, },
["Peacock"] = { strength = 30, cargo = 9, distance = 400, long_range_radar = 25000, short_range_radar = 5000, tractor = false, mining = true, probes = 10, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Phargus"] = { strength = 15, cargo = 6, distance = 200, long_range_radar = 20000, short_range_radar = 5500, tractor = false, mining = false, probes = 6, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Phobos T2"] = { strength = 19, cargo = 9, distance = 200, long_range_radar = 25000, short_range_radar = 5000, tractor = true, mining = false, probes = 5, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Phobos T2.2"] = { strength = 19, cargo = 9, distance = 200, long_range_radar = 25000, short_range_radar = 5000, tractor = true, mining = false, probes = 5, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Phoenix"] = { strength = 40, cargo = 6, distance = 400, long_range_radar = 25000, short_range_radar = 5000, tractor = true, mining = false, probes = 6, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Porcupine"] = { strength = 30, cargo = 6, distance = 400, long_range_radar = 25000, short_range_radar = 5000, tractor = false, mining = false, probes = 10, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Proto-Atlantis"] = { strength = 40, cargo = 4, distance = 400, long_range_radar = 30000, short_range_radar = 4500, tractor = false, mining = true, probes = 8, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Proto-Atlantis 2"] = { strength = 40, cargo = 4, distance = 400, long_range_radar = 30000, short_range_radar = 4500, tractor = false, mining = true, probes = 8, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Raven"] = { strength = 30, cargo = 5, distance = 400, long_range_radar = 25000, short_range_radar = 6000, tractor = true, mining = false, probes = 7, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Redhook"] = { strength = 12, cargo = 8, distance = 200, long_range_radar = 20000, short_range_radar = 6000, tractor = false, mining = false, probes = 6, pods = 2, turbo_torp = false, patrol_probe = 2.5, prox_scan = 9, epjam = 0, },
["Roc"] = { strength = 25, cargo = 6, distance = 200, long_range_radar = 25000, short_range_radar = 5000, tractor = true, mining = false, probes = 6, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 1, },
["Rodent"] = { strength = 23, cargo = 8, distance = 200, long_range_radar = 40000, short_range_radar = 5500, tractor = false, mining = false, probes = 9, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Rook"] = { strength = 15, cargo = 12, distance = 200, long_range_radar = 41000, short_range_radar = 5500, tractor = false, mining = true, probes = 13, pods = 3, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Rotor"] = { strength = 35, cargo = 5, distance = 200, long_range_radar = 25000, short_range_radar = 4000, tractor = true, mining = false, probes = 10, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Safari"] = { strength = 15, cargo = 10, distance = 200, long_range_radar = 33000, short_range_radar = 4500, tractor = true, mining = false, probes = 9, pods = 3, turbo_torp = false, patrol_probe = 3.5, prox_scan = 0, epjam = 0, },
["Scatter"] = { strength = 30, cargo = 6, distance = 200, long_range_radar = 28000, short_range_radar = 5000, tractor = false, mining = true, probes = 8, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Skray"] = { strength = 15, cargo = 3, distance = 200, long_range_radar = 30000, short_range_radar = 7500, tractor = false, mining = false, probes = 25, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 3, epjam = 0, },
["Sloop"] = { strength = 20, cargo = 8, distance = 200, long_range_radar = 35000, short_range_radar = 4500, tractor = true, mining = true, probes = 9, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 2, epjam = 2, },
["Squid"] = { strength = 14, cargo = 8, distance = 200, long_range_radar = 25000, short_range_radar = 5000, tractor = false, mining = false, probes = 7, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 9, epjam = 0, },
["Striker LX"] = { strength = 16, cargo = 4, distance = 200, long_range_radar = 20000, short_range_radar = 4000, tractor = false, mining = false, probes = 7, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Surkov"] = { strength = 35, cargo = 6, distance = 200, long_range_radar = 35000, short_range_radar = 6000, tractor = false, mining = false, probes = 8, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["Twister"] = { strength = 30, cargo = 6, distance = 200, long_range_radar = 23000, short_range_radar = 5500, tractor = false, mining = true, probes = 15, pods = 2, turbo_torp = false, patrol_probe = 3, prox_scan = 1, epjam = 0, },
["Torch"] = { strength = 9, cargo = 3, distance = 100, long_range_radar = 15000, short_range_radar = 4000, tractor = false, mining = false, probes = 4, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Vermin"] = { strength = 10, cargo = 3, distance = 100, long_range_radar = 22000, short_range_radar = 4000, tractor = false, mining = true, probes = 4, pods = 1, turbo_torp = false, patrol_probe = 3.6, prox_scan = 0, epjam = 1, },
["Windmill"] = { strength = 19, cargo = 11, distance = 200, long_range_radar = 33000, short_range_radar = 5000, tractor = false, mining = true, probes = 8, pods = 4, turbo_torp = false, patrol_probe = 0, prox_scan = 0, epjam = 0, },
["Wombat"] = { strength = 18, cargo = 3, distance = 100, long_range_radar = 18000, short_range_radar = 6000, tractor = false, mining = false, probes = 5, pods = 1, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 2, },
["Wrocket"] = { strength = 19, cargo = 8, distance = 200, long_range_radar = 32000, short_range_radar = 5500, tractor = false, mining = false, probes = 10, pods = 2, turbo_torp = false, patrol_probe = 0, prox_scan = 1, epjam = 0, },
["XR-Lindworm"] = { strength = 12, cargo = 3, distance = 100, long_range_radar = 20000, short_range_radar = 6000, tractor = false, mining = false, probes = 5, pods = 1, turbo_torp = false, patrol_probe = 3.9, prox_scan = 9, epjam = 0, },
}
fly_formation_3 = {"V","Vac","A","Aac","/","-","\\","|","/ac","\\ac"}
fly_formation_5 = {"V4","Vac4","A4","Aac4","-4","|4","/4","\\4","M","Mac","W","Wac","X","Xac"}
fly_formation_7 = {"M6","Mac6","W6","Wac6","V6","Vac6","A6","Aac6"}
fly_formation_9 = {"X8","Xac8","V8","Vac8","A8","Aac8"}
fly_formation_13= {"X12","Xac12"}
fly_formation_17= {"X16","Xac16"}
fly_formation = {
["V"] = {
{angle = 60 , dist = 1 },
{angle = 300, dist = 1 },
},
["Vac"] = {
{angle = 30 , dist = 1 },
{angle = 330, dist = 1 },
},
["V4"] = {
{angle = 60 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 60 , dist = 2 },
{angle = 300, dist = 2 },
},
["Vac4"] = {
{angle = 30 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 30 , dist = 2 },
{angle = 330, dist = 2 },
},
["V6"] = {
{angle = 60 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 60 , dist = 2 },
{angle = 300, dist = 2 },
{angle = 60 , dist = 3 },
{angle = 300, dist = 3 },
},
["Vac6"] = {
{angle = 30 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 30 , dist = 2 },
{angle = 330, dist = 2 },
{angle = 30 , dist = 3 },
{angle = 330, dist = 3 },
},
["V8"] = {
{angle = 60 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 60 , dist = 2 },
{angle = 300, dist = 2 },
{angle = 60 , dist = 3 },
{angle = 300, dist = 3 },
{angle = 60 , dist = 4 },
{angle = 300, dist = 4 },
},
["Vac8"] = {
{angle = 30 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 30 , dist = 2 },
{angle = 330, dist = 2 },
{angle = 30 , dist = 3 },
{angle = 330, dist = 3 },
{angle = 30 , dist = 4 },
{angle = 330, dist = 4 },
},
["A"] = {
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
},
["Aac"] = {
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
},
["A4"] = {
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
{angle = 120, dist = 2 },
{angle = 240, dist = 2 },
},
["Aac4"] = {
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
{angle = 150, dist = 2 },
{angle = 210, dist = 2 },
},
["A6"] = {
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
{angle = 120, dist = 2 },
{angle = 240, dist = 2 },
{angle = 120, dist = 3 },
{angle = 240, dist = 3 },
},
["Aac6"] = {
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
{angle = 150, dist = 2 },
{angle = 210, dist = 2 },
{angle = 150, dist = 3 },
{angle = 210, dist = 3 },
},
["A8"] = {
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
{angle = 120, dist = 2 },
{angle = 240, dist = 2 },
{angle = 120, dist = 3 },
{angle = 240, dist = 3 },
{angle = 120, dist = 4 },
{angle = 240, dist = 4 },
},
["Aac8"] = {
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
{angle = 150, dist = 2 },
{angle = 210, dist = 2 },
{angle = 150, dist = 3 },
{angle = 210, dist = 3 },
{angle = 150, dist = 4 },
{angle = 210, dist = 4 },
},
["/"] = {
{angle = 60 , dist = 1 },
{angle = 240, dist = 1 },
},
["/4"] = {
{angle = 60 , dist = 1 },
{angle = 240, dist = 1 },
{angle = 60 , dist = 2 },
{angle = 240, dist = 2 },
},
["-"] = {
{angle = 90 , dist = 1 },
{angle = 270, dist = 1 },
},
["-4"] = {
{angle = 90 , dist = 1 },
{angle = 270, dist = 1 },
{angle = 90 , dist = 2 },
{angle = 270, dist = 2 },
},
["\\"] = {
{angle = 300, dist = 1 },
{angle = 120, dist = 1 },
},
["\\4"] = {
{angle = 300, dist = 1 },
{angle = 120, dist = 1 },
{angle = 300, dist = 2 },
{angle = 120, dist = 2 },
},
["|"] = {
{angle = 0 , dist = 1 },
{angle = 180, dist = 1 },
},
["|4"] = {
{angle = 0 , dist = 1 },
{angle = 180, dist = 1 },
{angle = 0 , dist = 2 },
{angle = 180, dist = 2 },
},
["/ac"] = {
{angle = 30 , dist = 1 },
{angle = 210, dist = 1 },
},
["\\ac"] = {
{angle = 330, dist = 1 },
{angle = 150, dist = 1 },
},
["M"] = {
{angle = 60 , dist = 1 },
{angle = 90 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 270, dist = 1 },
},
["Mac"] = {
{angle = 30 , dist = 1 },
{angle = 90 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 270, dist = 1 },
},
["M6"] = {
{angle = 60 , dist = 1 },
{angle = 90 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 270, dist = 1 },
{angle = 120, dist = 1.3},
{angle = 240, dist = 1.3},
},
["Mac6"] = {
{angle = 30 , dist = 1 },
{angle = 90 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 270, dist = 1 },
{angle = 125, dist = 1.7},
{angle = 235, dist = 1.7},
},
["W"] = {
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
{angle = 90 , dist = 1 },
{angle = 270, dist = 1 },
},
["Wac"] = {
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
{angle = 90 , dist = 1 },
{angle = 270, dist = 1 },
},
["W6"] = {
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
{angle = 90 , dist = 1 },
{angle = 270, dist = 1 },
{angle = 60 , dist = 1.3},
{angle = 300, dist = 1.3},
},
["Wac6"] = {
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
{angle = 90 , dist = 1 },
{angle = 270, dist = 1 },
{angle = 55 , dist = 1.7},
{angle = 305, dist = 1.7},
},
["X"] = {
{angle = 60 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
},
["Xac"] = {
{angle = 30 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
},
["X8"] = {
{angle = 60 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
{angle = 60 , dist = 2 },
{angle = 300, dist = 2 },
{angle = 120, dist = 2 },
{angle = 240, dist = 2 },
},
["Xac8"] = {
{angle = 30 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
{angle = 30 , dist = 2 },
{angle = 330, dist = 2 },
{angle = 150, dist = 2 },
{angle = 210, dist = 2 },
},
["X12"] = {
{angle = 60 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
{angle = 60 , dist = 2 },
{angle = 300, dist = 2 },
{angle = 120, dist = 2 },
{angle = 240, dist = 2 },
{angle = 60 , dist = 3 },
{angle = 300, dist = 3 },
{angle = 120, dist = 3 },
{angle = 240, dist = 3 },
},
["Xac12"] = {
{angle = 30 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
{angle = 30 , dist = 2 },
{angle = 330, dist = 2 },
{angle = 150, dist = 2 },
{angle = 210, dist = 2 },
{angle = 30 , dist = 3 },
{angle = 330, dist = 3 },
{angle = 150, dist = 3 },
{angle = 210, dist = 3 },
},
["X16"] = {
{angle = 60 , dist = 1 },
{angle = 300, dist = 1 },
{angle = 120, dist = 1 },
{angle = 240, dist = 1 },
{angle = 60 , dist = 2 },
{angle = 300, dist = 2 },
{angle = 120, dist = 2 },
{angle = 240, dist = 2 },
{angle = 60 , dist = 3 },
{angle = 300, dist = 3 },
{angle = 120, dist = 3 },
{angle = 240, dist = 3 },
{angle = 60 , dist = 4 },
{angle = 300, dist = 4 },
{angle = 120, dist = 4 },
{angle = 240, dist = 4 },
},
["Xac16"] = {
{angle = 30 , dist = 1 },
{angle = 330, dist = 1 },
{angle = 150, dist = 1 },
{angle = 210, dist = 1 },
{angle = 30 , dist = 2 },
{angle = 330, dist = 2 },
{angle = 150, dist = 2 },
{angle = 210, dist = 2 },
{angle = 30 , dist = 3 },
{angle = 330, dist = 3 },
{angle = 150, dist = 3 },
{angle = 210, dist = 3 },
{angle = 30 , dist = 4 },
{angle = 330, dist = 4 },
{angle = 150, dist = 4 },
{angle = 210, dist = 4 },
},
}
formation_delta = {
["square"] = {
x = {0,1,0,-1, 0,1,-1, 1,-1,2,0,-2, 0,2,-2, 2,-2,2, 2,-2,-2,1,-1, 1,-1,0, 0,3,-3,1, 1,3,-3,-1,-1, 3,-3,2, 2,3,-3,-2,-2, 3,-3,3, 3,-3,-3,4,0,-4, 0,4,-4, 4,-4,-4,-4,-4,-4,-4,-4,4, 4,4, 4,4, 4, 1,-1, 2,-2, 3,-3,1,-1,2,-2,3,-3,5,-5,0, 0,5, 5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,5, 5,5, 5,5, 5,5, 5, 1,-1, 2,-2, 3,-3, 4,-4,1,-1,2,-2,3,-3,4,-4},
y = {0,0,1, 0,-1,1,-1,-1, 1,0,2, 0,-2,2,-2,-2, 2,1,-1, 1,-1,2, 2,-2,-2,3,-3,0, 0,3,-3,1, 1, 3,-3,-1,-1,3,-3,2, 2, 3,-3,-2,-2,3,-3, 3,-3,0,4, 0,-4,4,-4,-4, 4, 1,-1, 2,-2, 3,-3,1,-1,2,-2,3,-3,-4,-4,-4,-4,-4,-4,4, 4,4, 4,4, 4,0, 0,5,-5,5,-5, 5,-5, 1,-1, 2,-2, 3,-3, 4,-4,1,-1,2,-2,3,-3,4,-4,-5,-5,-5,-5,-5,-5,-5,-5,5, 5,5, 5,5, 5,5, 5},
},
["hexagonal"] = {
x = {0,2,-2,1,-1, 1,-1,4,-4,0, 0,2,-2,-2, 2,3,-3, 3,-3,6,-6,1,-1, 1,-1,3,-3, 3,-3,4,-4, 4,-4,5,-5, 5,-5,8,-8,4,-4, 4,-4,5,5 ,-5,-5,2, 2,-2,-2,0, 0,6, 6,-6,-6,7, 7,-7,-7,10,-10,5, 5,-5,-5,6, 6,-6,-6,7, 7,-7,-7,8, 8,-8,-8,9, 9,-9,-9,3, 3,-3,-3,1, 1,-1,-1,12,-12,6,-6, 6,-6,7,-7, 7,-7,8,-8, 8,-8,9,-9, 9,-9,10,-10,10,-10,11,-11,11,-11,4,-4, 4,-4,2,-2, 2,-2,0, 0},
y = {0,0, 0,1, 1,-1,-1,0, 0,2,-2,2,-2, 2,-2,1,-1,-1, 1,0, 0,3, 3,-3,-3,3,-3,-3, 3,2,-2,-2, 2,1,-1,-1, 1,0, 0,4,-4,-4, 4,3,-3, 3,-3,4,-4, 4,-4,4,-4,2,-2, 2,-2,1,-1, 1,-1, 0, 0,5,-5, 5,-5,4,-4, 4,-4,3,-3, 3,-7,2,-2, 2,-2,1,-1, 1,-1,5,-5, 5,-5,5,-5, 5,-5, 0, 0,6, 6,-6,-6,5, 5,-5,-5,4, 4,-4,-4,3, 3,-3,-3, 2, 2,-2, -2, 1, 1,-1, -1,6, 6,-6,-6,6, 6,-6,-6,6,-6},
},
["pyramid"] = {
[1] = {
{angle = 0, distance = 0},
},
[2] = {
{angle = -1, distance = 1},
{angle = 1, distance = 1},
},
[3] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
},
[4] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = 0, distance = 2},
},
[5] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
},
[6] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = 0, distance = 2},
},
[7] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
},
[8] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = 0, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
},
[9] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
{angle = -4, distance = 4},
{angle = 4, distance = 4},
},
[10] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = 0, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
{angle = -2, distance = 3},
{angle = 2, distance = 3},
},
[11] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
{angle = -4, distance = 4},
{angle = 4, distance = 4},
{angle = -3, distance = 4},
{angle = 3, distance = 4},
},
[12] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = 0, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
{angle = -2, distance = 3},
{angle = 2, distance = 3},
{angle = -1, distance = 3},
{angle = 1, distance = 3},
},
[13] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
{angle = 0, distance = 3},
{angle = -2, distance = 4},
{angle = 2, distance = 4},
{angle = -1, distance = 5},
{angle = 1, distance = 5},
{angle = 0, distance = 6},
},
[14] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = 0, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
{angle = 0, distance = 4},
{angle = -2, distance = 4},
{angle = 2, distance = 4},
{angle = -1, distance = 5},
{angle = 1, distance = 5},
{angle = 0, distance = 6},
},
[15] = {
{angle = 0, distance = 0},
{angle = -1, distance = 1},
{angle = 1, distance = 1},
{angle = -2, distance = 2},
{angle = 2, distance = 2},
{angle = 0, distance = 2},
{angle = -3, distance = 3},
{angle = 3, distance = 3},
{angle = 0, distance = 3},
{angle = 0, distance = 4},
{angle = -2, distance = 4},
{angle = 2, distance = 4},
{angle = -1, distance = 5},
{angle = 1, distance = 5},
{angle = 0, distance = 6},
},
},
}
max_pyramid_tier = 15
pool_selectivity = "full"
template_pool_size = 8
ship_template = { --ordered by relative strength
["Gnat"] = {strength = 2, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 4500, hop_angle = 0, hop_range = 580, create = gnat},
["Lite Drone"] = {strength = 3, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = droneLite},
["Jacket Drone"] = {strength = 4, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = droneJacket},
["Ktlitan Drone"] = {strength = 4, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["Heavy Drone"] = {strength = 5, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5500, hop_angle = 0, hop_range = 580, create = droneHeavy},
["Adder MK3"] = {strength = 5, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["MT52 Hornet"] = {strength = 5, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 680, create = stockTemplate},
["MU52 Hornet"] = {strength = 5, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 880, create = stockTemplate},
["Dagger"] = {strength = 6, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["MV52 Hornet"] = {strength = 6, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = hornetMV52},
["MT55 Hornet"] = {strength = 6, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 680, create = hornetMT55},
["Adder MK4"] = {strength = 6, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["Fighter"] = {strength = 6, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Ktlitan Fighter"] = {strength = 6, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["FX64 Hornet"] = {strength = 7, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1480, create = hornetFX64},
["Blade"] = {strength = 7, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Gunner"] = {strength = 7, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["K2 Fighter"] = {strength = 7, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = k2fighter},
["Adder MK5"] = {strength = 7, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["WX-Lindworm"] = {strength = 7, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 5500, hop_angle = 0, hop_range = 2500, create = stockTemplate},
["K3 Fighter"] = {strength = 8, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = k3fighter},
["Shooter"] = {strength = 8, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Jagger"] = {strength = 8, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Adder MK6"] = {strength = 8, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["Ktlitan Scout"] = {strength = 8, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 7000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["WZ-Lindworm"] = {strength = 9, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 5500, hop_angle = 0, hop_range = 2500, create = wzLindworm},
["Adder MK7"] = {strength = 9, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["Adder MK8"] = {strength = 10, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5500, hop_angle = 0, hop_range = 580, create = stockTemplate},
["Adder MK9"] = {strength = 11, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["Nirvana R3"] = {strength = 12, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Phobos R2"] = {strength = 13, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = phobosR2},
["Missile Cruiser"] = {strength = 14, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 7000, hop_angle = 0, hop_range = 2500, create = stockTemplate},
["Waddle 5"] = {strength = 15, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = waddle5},
["Jade 5"] = {strength = 15, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = jade5},
["Phobos T3"] = {strength = 15, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["Guard"] = {strength = 15, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["Piranha F8"] = {strength = 15, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 90, hop_range = 2500, create = stockTemplate},
["Piranha F12"] = {strength = 15, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 90, hop_range = 2500, create = stockTemplate},
["Piranha F12.M"] = {strength = 16, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 90, hop_range = 2500, create = stockTemplate},
["Phobos M3"] = {strength = 16, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 5500, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["Farco 3"] = {strength = 16, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 8000, hop_angle = 0, hop_range = 1480, create = farco3},
["Farco 5"] = {strength = 16, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 8000, hop_angle = 0, hop_range = 1180, create = farco5},
["Karnack"] = {strength = 17, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Gunship"] = {strength = 17, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Phobos T4"] = {strength = 18, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 5000, hop_angle = 0, hop_range = 1480, create = phobosT4},
["Cruiser"] = {strength = 18, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Nirvana R5"] = {strength = 19, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["Farco 8"] = {strength = 19, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 8000, hop_angle = 0, hop_range = 1480, create = farco8},
["Nirvana R5A"] = {strength = 20, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["Adv. Gunship"] = {strength = 20, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 7000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Ktlitan Worker"] = {strength = 20, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 90, hop_range = 580, create = stockTemplate},
["Farco 11"] = {strength = 21, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 8000, hop_angle = 0, hop_range = 1480, create = farco11},
["Storm"] = {strength = 22, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["Warden"] = {strength = 22, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["Racer"] = {strength = 22, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Strike"] = {strength = 23, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5500, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Dash"] = {strength = 23, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5500, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Farco 13"] = {strength = 24, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1480, create = farco13},
["Sentinel"] = {strength = 24, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1180, create = stockTemplate},
["Ranus U"] = {strength = 25, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 2500, create = stockTemplate},
["Flash"] = {strength = 25, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 2500, create = stockTemplate},
["Ranger"] = {strength = 25, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 2500, create = stockTemplate},
["Buster"] = {strength = 25, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 2500, create = stockTemplate},
["Stalker Q7"] = {strength = 25, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Stalker R7"] = {strength = 25, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Whirlwind"] = {strength = 26, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 6000, hop_angle = 90, hop_range = 2500, create = whirlwind},
["Hunter"] = {strength = 26, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5500, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Adv. Striker"] = {strength = 27, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Tempest"] = {strength = 30, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 90, hop_range = 2500, create = tempest},
["Strikeship"] = {strength = 30, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Maniapak"] = {strength = 34, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 6000, hop_angle = 0, hop_range = 580, create = maniapak},
["Cucaracha"] = {strength = 36, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 1480, create = cucaracha},
["Predator"] = {strength = 42, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 7500, hop_angle = 0, hop_range = 980, create = predator},
["Ktlitan Breaker"] = {strength = 45, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 780, create = stockTemplate},
["Hurricane"] = {strength = 46, missile_only = true, missile_primary = false, missile_secondary = false, short_range_radar = 6000, hop_angle = 15, hop_range = 2500, create = hurricane},
["Ktlitan Feeder"] = {strength = 48, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 580, create = stockTemplate},
["Atlantis X23"] = {strength = 50, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 10000, hop_angle = 0, hop_range = 1480, create = stockTemplate},
["Ktlitan Destroyer"] = {strength = 50, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 9000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["K2 Breaker"] = {strength = 55, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 5000, hop_angle = 0, hop_range = 780, create = k2breaker},
["Atlantis Y42"] = {strength = 60, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 10000, hop_angle = 0, hop_range = 1480, create = atlantisY42},
["Blockade Runner"] = {strength = 63, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 5500, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Starhammer II"] = {strength = 70, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 10000, hop_angle = 0, hop_range = 1480, create = stockTemplate},
["Enforcer"] = {strength = 75, missile_only = false, missile_primary = true, missile_secondary = false, short_range_radar = 9000, hop_angle = 0, hop_range = 1480, create = enforcer},
["Dreadnought"] = {strength = 80, missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 9000, hop_angle = 0, hop_range = 980, create = stockTemplate},
["Starhammer III"] = {strength = 85, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 12000, hop_angle = 0, hop_range = 1480, create = starhammerIII},
["Starhammer V"] = {strength = 90, missile_only = false, missile_primary = false, missile_secondary = true, short_range_radar = 15000, hop_angle = 0, hop_range = 1480, create = starhammerV},
["Tyr"] = {strength = 150,missile_only = false, missile_primary = false, missile_secondary = false, short_range_radar = 9500, hop_angle = 90, hop_range = 2480, create = tyr},
}
no_ftl_template_pool = {"Gnat","Lite Drone","Jacket Drone","Ktlitan Drone","Heavy Drone","Adder MK3","MT52 Hornet","MU52 Hornet","Dagger","MV52 Hornet","MT55 Hornet","Adder MK4","Fighter","Ktlitan Fighter","FX64 Hornet","Blade","Gunner","K2 Fighter","Adder MK5","WX-Lindworm","K3 Fighter","Shooter","Jagger","Adder MK6","Ktlitan Scout","WZ-Lindworm","Adder MK7","Adder MK8","Adder MK9","Nirvana R3","Phobos R2","Missile Cruiser","Phobos T3","Guard","Piranha F8","Piranha F12","Piranha F12.M","Phobos M3","Farco 3","Farco 5","Karnack","Gunship","Phobos T4","Cruiser","Nirvana R5","Farco 8","Nirvana R5A","Adv. Gunship","Ktlitan Worker","Farco 11","Storm","Warden","Farco 13","Sentinel","Ranus U","Flash","Ranger","Buster","Whirlwind","Tempest","Maniapak","Cucaracha","Ktlitan Breaker","Ktlitan Feeder","Ktlitan Destroyer","K2 Breaker","Blockade Runner","Enforcer","Dreadnought",}
ftl_template_pool = {"Waddle 5","Jade 5","Racer","Dash","Stalker Q7","Stalker R7","Hunter","Adv. Striker","Strikeship","Predator","Hurricane","Atlantis X23","Atlantis Y42","Starhammer II","Starhammer III","Starhammer V","Tyr",}
commonGoods = {
_("trade-comms","food"), -- 1
_("trade-comms","medicine"), -- 2
_("trade-comms","luxury"), -- 3
_("trade-comms","nickel"), -- 4
_("trade-comms","platinum"), -- 5
_("trade-comms","gold"), -- 6
_("trade-comms","dilithium"), -- 7
_("trade-comms","tritanium"), -- 8
_("trade-comms","cobalt"), -- 9
_("trade-comms","impulse"), --10
_("trade-comms","warp"), --11
_("trade-comms","shield"), --12
_("trade-comms","tractor"), --13
_("trade-comms","repulsor"), --14
_("trade-comms","beam"), --15
_("trade-comms","optic"), --16
_("trade-comms","robotic"), --17
_("trade-comms","filament"), --18
_("trade-comms","transporter"), --19
_("trade-comms","sensor"), --20
_("trade-comms","communication"), --21
_("trade-comms","autodoc"), --22
_("trade-comms","lifter"), --23
_("trade-comms","android"), --24
_("trade-comms","nanites"), --25
_("trade-comms","software"), --26
_("trade-comms","circuit"), --27
_("trade-comms","battery"), --28
}
componentGoods = {
_("trade-comms","impulse"),
_("trade-comms","warp"),
_("trade-comms","shield"),
_("trade-comms","tractor"),
_("trade-comms","repulsor"),
_("trade-comms","beam"),
_("trade-comms","optic"),
_("trade-comms","robotic"),
_("trade-comms","filament"),
_("trade-comms","transporter"),
_("trade-comms","sensor"),
_("trade-comms","communication"),
_("trade-comms","autodoc"),
_("trade-comms","lifter"),
_("trade-comms","android"),
_("trade-comms","nanites"),
_("trade-comms","software"),
_("trade-comms","circuit"),
_("trade-comms","battery"),
}
mineralGoods = {
_("trade-comms","nickel"),
_("trade-comms","platinum"),
_("trade-comms","gold"),
_("trade-comms","dilithium"),
_("trade-comms","tritanium"),
_("trade-comms","cobalt"),
}
vapor_goods = {
_("trade-comms","gold pressed latinum"),
_("trade-comms","unobtanium"),
_("trade-comms","eludium"),
_("trade-comms","impossibrium"),
}
characters = {
{name = "Frank Brown", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Joyce Miller", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Harry Jones", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Emma Davis", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Zhang Wei Chen", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Yu Yan Li", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Li Wei Wang", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Li Na Zhao", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Sai Laghari", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Anaya Khatri", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Vihaan Reddy", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Trisha Varma", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Henry Gunawan", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Putri Febrian", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Stanley Hartono", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Citra Mulyadi", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Bashir Pitafi", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Hania Kohli", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Gohar Lehri", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Sohelia Lau", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Gabriel Santos", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Ana Melo", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Lucas Barbosa", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Juliana Rocha", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Habib Oni", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Chinara Adebayo", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Tanimu Ali", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Naija Bello", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Shamim Khan", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Barsha Tripura", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Sumon Das", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Farah Munsi", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Denis Popov", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Pasha Sokolov", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Burian Ivanov", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Radka Vasiliev", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Jose Hernandez", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Victoria Garcia", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
{name = "Miguel Lopez", subject_pronoun = "he", object_pronoun = "him", possessive_adjective = "his"},
{name = "Renata Rodriguez", subject_pronoun = "she", object_pronoun = "her", possessive_adjective = "her"},
}
if spew_function_diagnostic then print("bottom of set constants") end
end
-- Terrain and environment creation functions
function constructEnvironment()
if spew_function_diagnostic then print("top of construct environment") end
-- Charles Acosta's freighter - central to the first part of the plot
needy_freighter = CpuShip():setTemplate("Goods Freighter 1"):setFaction("Independent"):setPosition(center_x,center_y):setCommsScript(""):setCommsFunction(commsShip)
needy_freighter:setCallSign(getFactionPrefix("Independent"))
needy_freighter:setSystemHealthMax("impulse",random(-.7,-.5)) --damaged engines
-- asteroid field that Acosta was working
for i=1,math.random(5,10) do
local size = 0
for j=1,4 do
size = size + random(5,180)
end
local ax, ay = vectorFromAngleNorth(asteroid_field_angle + random(-45,45),800 + (random(size,size + 300) * i))
local as = Asteroid():setPosition(center_x + ax, center_y + ay):setSize(size)
size = 0
for j=1,4 do
size = size + random(5,180)
end
ax, ay = vectorFromAngleNorth(asteroid_field_angle + random(-45,45),800 + (random(size,size + 300) * i))
as = VisualAsteroid():setPosition(center_x + ax, center_y + ay):setSize(size)
size = 0
for j=1,4 do
size = size + random(5,180)
end
ax, ay = vectorFromAngleNorth(asteroid_field_angle + random(-45,45),800 + (random(size,size + 300) * i))
as = VisualAsteroid():setPosition(center_x + ax, center_y + ay):setSize(size)
end
local needy_station_angle = asteroid_field_angle + random(170,190)
local psx, psy = vectorFromAngleNorth(needy_station_angle,random(8000,16000))
inner_circle = {}
station_list = {}
-- station Acosta was going to deliver minerals to until the engines went out
station_needy_freighter = placeStation(center_x + psx,center_y + psy,"RandomHumanNeutral","Independent")
station_needy_freighter:onTakingDamage(stationDamaged):onDestruction(stationDestroyed)
table.insert(inner_circle,station_needy_freighter)
table.insert(station_list,station_needy_freighter)
-- moon, planet and star that the station is attached to (station in synchronous orbit around moon, moon orbits planet, planet orbits star
local moon_x, moon_y = vectorFromAngleNorth(asteroid_field_angle + 180,3000)
local moon_list = {
{
name = {"Ganymede", "Europa", "Deimos", "Callisto", "Amalthea"},
texture = {
surface = "planets/moon-1.png"
}
},
{
name = {"Himalia", "Ananke", "Pasiphe", "Sinope", "Lysithea"},
texture = {
surface = "planets/moon-2.png"
}
},
{
name = {"Leda", "Adrastea", "Arinome", "Metis", "Chaldene"},
texture = {
surface = "planets/moon-3.png"
}
},
}
local selected_moon = tableRemoveRandom(moon_list)
needy_moon = Planet():setPlanetRadius(1500):setPosition(center_x + psx + moon_x,center_y + psy + moon_y)
needy_moon:setCallSign(selected_moon.name[math.random(1,#selected_moon.name)])
needy_moon:setPlanetSurfaceTexture(selected_moon.texture.surface)
needy_moon:setAxialRotationTime(random(500,900)):setDistanceFromMovementPlane(0)
station_needy_freighter.moon_angle = needy_station_angle + 180
station_needy_freighter.moon_distance = distance(center_x + psx + moon_x,center_y + psy + moon_y,center_x + psx,center_y + psy)
local sx, sy = vectorFromAngleNorth(station_needy_freighter.moon_angle,station_needy_freighter.moon_distance)
local mx, my = needy_moon:getPosition()
station_needy_freighter:setPosition(mx + sx, my + sy)
local planet_list = {
{
name = {"Biju","Aldea","Bersallis"},
texture = {
surface = "planets/gas-1.png"
},
},
{
name = {"Farius Prime","Deneb","Mordan"},
texture = {
surface = "planets/gas-2.png"
},
},
{
name = {"Kepler-7b","Alpha Omicron","Nelvana"},
texture = {
surface = "planets/gas-3.png"
},
},
{
name = {"Alderaan","Dagobah","Dantooine","Rigel"},
color = {
red = random(0,0.2),
green = random(0,0.2),
blue = random(0.8,1)
},
texture = {
surface = "planets/planet-1.png",
cloud = "planets/clouds-1.png",