-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
857 lines (841 loc) · 41.7 KB
/
constants.py
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
from bcevent import add, mule, mule_dies, idle, salvage, research, warp, boost, spawn_larva, Event
O = 1
OCCUPATION = O
A = 2
ASSUMPTION = A
C = 3
CONSUMPTION = C
N = 4
NOT = N
SCV_MINERAL = 0
SCV_GAS = 1
SCV_SCOUT = 2
MARINE = 3
MARAUDER = 4
REAPER = 5
GHOST = 6
HELLION = 7
SIEGE_TANK = 8
THOR = 9
VIKING = 10
MEDIVAC = 11
RAVEN = 12
BANSHEE = 13
BATTLECRUISER = 14
HELLBAT = 15
WIDOW_MINE = 16
COMMAND_CENTER = 17
ORBITAL_COMMAND = 18
PLANETARY_FORTRESS = 19
MULE = 20
SUPPLY_DEPOT = 21
SUPPLY_DEPOT_EXTRA = 22
REFINERY = 23
BARRACKS = 24
ENGINEERING_BAY = 25
BUNKER = 26
MISSILE_TURRET = 27
SENSOR_TOWER = 28
FACTORY = 29
GHOST_ACADEMY = 30
GHOST_ACADEMY_ARMED = 31
ARMORY = 32
STARPORT = 33
FUSION_CORE = 34
TECH_LAB = 35
REACTOR = 36
BARRACKS_REACTOR = 37
BARRACKS_TECH_LAB = 38
FACTORY_REACTOR = 39
FACTORY_TECH_LAB = 40
STARPORT_REACTOR = 41
STARPORT_TECH_LAB = 42
REACTOR_BARRACKS = 43
REACTOR_FACTORY = 44
REACTOR_STARPORT = 45
TECH_LAB_BARRACKS = 46
TECH_LAB_FACTORY = 47
TECH_LAB_STARPORT = 48
INFANTRY_WEAPONS_LEVEL_1 = 49
INFANTRY_WEAPONS_LEVEL_2 = 50
INFANTRY_WEAPONS_LEVEL_3 = 51
VEHICLE_WEAPONS_LEVEL_1 = 52
VEHICLE_WEAPONS_LEVEL_2 = 53
VEHICLE_WEAPONS_LEVEL_3 = 54
SHIP_WEAPONS_LEVEL_1 = 55
SHIP_WEAPONS_LEVEL_2 = 56
SHIP_WEAPONS_LEVEL_3 = 57
INFANTRY_ARMOR_LEVEL_1 = 58
INFANTRY_ARMOR_LEVEL_2 = 59
INFANTRY_ARMOR_LEVEL_3 = 60
VEHICLE_PLATING_LEVEL_1 = 61
VEHICLE_PLATING_LEVEL_2 = 62
VEHICLE_PLATING_LEVEL_3 = 63
SHIP_PLATING_LEVEL_1 = 64
SHIP_PLATING_LEVEL_2 = 65
SHIP_PLATING_LEVEL_3 = 66
NITRO_PACKS = 67
HI_SEC_AUTO_TRACKING = 68
CLOAKING_FIELD = 69
CONCUSSIVE_SHELLS = 70
PERSONAL_CLOAKING = 71
STIMPACK = 72
WEAPON_REFIT = 73
BEHEMOTH_REACTOR = 74
CADUCEUS_REACTOR = 75
CORVID_REACTOR = 76
MOEBIUS_REACTOR = 77
BUILDING_ARMOR = 78
COMBAT_SHIELD = 79
DURABLE_MATERIALS = 80
INFERNAL_PRE_IGNITER = 81
NEOSTEEL_FRAME = 82
TRANSFORMATION_SERVOS = 83
DRILLING_CLAWS = 84
LARVA = 85
DRONE_MINERAL = 86
DRONE_GAS = 87
DRONE_SCOUT = 88
OVERLORD = 89
ZERGLING = 90
QUEEN = 91
HYDRALISK = 92
BANELING = 93
OVERSEER = 94
ROACH = 95
INFESTOR = 96
MUTALISK = 97
CORRUPTOR = 98
NYDUS_WORM = 99
ULTRALISK = 100
BROOD_LORD = 101
SWARM_HOST = 102
VIPER = 103
HATCHERY = 104
EXTRACTOR = 105
SPAWNING_POOL = 106
EVOLUTION_CHAMBER = 107
SPINE_CRAWLER = 108
SPORE_CRAWLER = 109
ROACH_WARREN = 110
BANELING_NEST = 111
LAIR = 112
HYDRALISK_DEN = 113
INFESTATION_PIT = 114
SPIRE = 115
NYDUS_NETWORK = 116
HIVE = 117
ULTRALISK_CAVERN = 118
GREATER_SPIRE = 119
CREEP_TUMOR = 120
CREEP_TUMOR_USED = 121
MELEE_ATTACKS_LEVEL_1 = 122
MELEE_ATTACKS_LEVEL_2 = 123
MELEE_ATTACKS_LEVEL_3 = 124
MISSILE_ATTACKS_LEVEL_1 = 125
MISSILE_ATTACKS_LEVEL_2 = 126
MISSILE_ATTACKS_LEVEL_3 = 127
FLYER_ATTACKS_LEVEL_1 = 128
FLYER_ATTACKS_LEVEL_2 = 129
FLYER_ATTACKS_LEVEL_3 = 130
GROUND_CARAPACE_LEVEL_1 = 131
GROUND_CARAPACE_LEVEL_2 = 132
GROUND_CARAPACE_LEVEL_3 = 133
FLYER_CARAPACE_LEVEL_1 = 134
FLYER_CARAPACE_LEVEL_2 = 135
FLYER_CARAPACE_LEVEL_3 = 136
CHITINOUS_PLATING = 137
CENTRIFUGAL_HOOKS = 138
GLIAL_RECONSTRUCTION = 139
METABOLIC_BOOST = 140
PNEUMATIZED_CARAPACE = 141
GROOVED_SPINES = 142
BURROW = 143
NEURAL_PARASITE = 144
PATHOGEN_GLANDS = 145
ADRENAL_GLANDS = 146
TUNNELING_CLAWS = 147
VENTRAL_SACS = 148
MUSCULAR_AUGMENTS = 149
INCREASED_LOCUST_LIFETIME = 150
PROBE_MINERAL = 151
PROBE_GAS = 152
PROBE_SCOUT = 153
ZEALOT = 154
STALKER = 155
SENTRY = 156
OBSERVER = 157
IMMORTAL = 158
WARP_PRISM = 159
COLOSSUS = 160
PHOENIX = 161
VOID_RAY = 162
HIGH_TEMPLAR = 163
DARK_TEMPLAR = 164
ARCHON = 165
CARRIER = 166
MOTHERSHIP = 167
MOTHERSHIP_CORE = 168
ORACLE = 169
TEMPEST = 170
NEXUS = 171
PYLON = 172
ASSIMILATOR = 173
GATEWAY = 174
FORGE = 175
PHOTON_CANNON = 176
WARPGATE = 177
CYBERNETICS_CORE = 178
TWILIGHT_COUNCIL = 179
ROBOTICS_FACILITY = 180
STARGATE = 181
TEMPLAR_ARCHIVES = 182
DARK_SHRINE = 183
ROBOTICS_BAY = 184
FLEET_BEACON = 185
GROUND_WEAPONS_LEVEL_1 = 186
GROUND_WEAPONS_LEVEL_2 = 187
GROUND_WEAPONS_LEVEL_3 = 188
AIR_WEAPONS_LEVEL_1 = 189
AIR_WEAPONS_LEVEL_2 = 190
AIR_WEAPONS_LEVEL_3 = 191
GROUND_ARMOR_LEVEL_1 = 192
GROUND_ARMOR_LEVEL_2 = 193
GROUND_ARMOR_LEVEL_3 = 194
AIR_ARMOR_LEVEL_1 = 195
AIR_ARMOR_LEVEL_2 = 196
AIR_ARMOR_LEVEL_3 = 197
SHIELDS_LEVEL_1 = 198
SHIELDS_LEVEL_2 = 199
SHIELDS_LEVEL_3 = 200
CHARGE = 201
GRAVITIC_BOOSTERS = 202
GRAVITIC_DRIVE = 203
ANION_PULSE_CRYSTALS = 204
EXTENDED_THERMAL_LANCE = 205
PSIONIC_STORM = 206
BLINK = 207
GRAVITON_CATAPULT = 208
WARP_GATE = 209
NUM_UNITS = 210
BUILD_SCV = 0
SWITCH_SCV_TO_GAS = 1
SWITCH_SCV_TO_MINERALS = 2
SEND_SCV_TO_SCOUT = 3
BRING_BACK_SCV_SCOUT = 4
TRAIN_MARINE = 5
TRAIN_MARAUDER = 6
TRAIN_REAPER = 7
TRAIN_GHOST = 8
BUILD_HELLION = 9
BUILD_SIEGE_TANK = 10
BUILD_THOR = 11
BUILD_VIKING = 12
BUILD_MEDIVAC = 13
BUILD_RAVEN = 14
BUILD_BANSHEE = 15
BUILD_BATTLECRUISER = 16
BUILD_HELLBAT = 17
BUILD_WIDOW_MINE = 18
BUILD_COMMAND_CENTER = 19
UPGRADE_TO_ORBITAL_COMMAND = 20
CALL_DOWN_MULE = 21
MULE_LIFE = 22
SCANNER_SWEEP = 23
UPGRADE_TO_PLANETARY_FORTRESS = 24
BUILD_SUPPLY_DEPOT = 25
UPGRADE_SUPPLY_DEPOT = 26
BUILD_REFINERY = 27
BUILD_BARRACKS = 28
BUILD_ENGINEERING_BAY = 29
BUILD_BUNKER = 30
SALVAGE_BUNKER = 31
BUILD_MISSILE_TURRET = 32
BUILD_SENSOR_TOWER = 33
BUILD_FACTORY = 34
BUILD_GHOST_ACADEMY = 35
ARM_SILO_WITH_NUKE = 36
FIRE_NUKE = 37
BUILD_ARMORY = 38
BUILD_STARPORT = 39
BUILD_FUSION_CORE = 40
BUILD_REACTOR_ONTO_BARRACKS = 41
BUILD_TECH_LAB_ONTO_BARRACKS = 42
BUILD_REACTOR_ONTO_FACTORY = 43
BUILD_TECH_LAB_ONTO_FACTORY = 44
BUILD_REACTOR_ONTO_STARPORT = 45
BUILD_TECH_LAB_ONTO_STARPORT = 46
SEPARATE_REACTOR_FROM_BARRACKS = 47
ATTACH_REACTOR_TO_BARRACKS = 48
SEPARATE_TECH_LAB_FROM_FACTORY = 49
ATTACH_TECH_LAB_TO_FACTORY = 50
SEPARATE_TECH_LAB_FROM_BARRACKS = 51
ATTACH_TECH_LAB_TO_BARRACKS = 52
SEPARATE_REACTOR_FROM_STARPORT = 53
ATTACH_REACTOR_TO_STARPORT = 54
SEPARATE_REACTOR_FROM_FACTORY = 55
ATTACH_REACTOR_TO_FACTORY = 56
SEPARATE_TECH_LAB_FROM_STARPORT = 57
ATTACH_TECH_LAB_TO_STARPORT = 58
RESEARCH_INFANTRY_WEAPONS_LEVEL_1 = 59
RESEARCH_INFANTRY_WEAPONS_LEVEL_2 = 60
RESEARCH_INFANTRY_WEAPONS_LEVEL_3 = 61
RESEARCH_VEHICLE_WEAPONS_LEVEL_1 = 62
RESEARCH_VEHICLE_WEAPONS_LEVEL_2 = 63
RESEARCH_VEHICLE_WEAPONS_LEVEL_3 = 64
RESEARCH_SHIP_WEAPONS_LEVEL_1 = 65
RESEARCH_SHIP_WEAPONS_LEVEL_2 = 66
RESEARCH_SHIP_WEAPONS_LEVEL_3 = 67
RESEARCH_INFANTRY_ARMOR_LEVEL_1 = 68
RESEARCH_INFANTRY_ARMOR_LEVEL_2 = 69
RESEARCH_INFANTRY_ARMOR_LEVEL_3 = 70
RESEARCH_VEHICLE_PLATING_LEVEL_1 = 71
RESEARCH_VEHICLE_PLATING_LEVEL_2 = 72
RESEARCH_VEHICLE_PLATING_LEVEL_3 = 73
RESEARCH_SHIP_PLATING_LEVEL_1 = 74
RESEARCH_SHIP_PLATING_LEVEL_2 = 75
RESEARCH_SHIP_PLATING_LEVEL_3 = 76
RESEARCH_NITRO_PACKS = 77
RESEARCH_HI_SEC_AUTO_TRACKING = 78
RESEARCH_CLOAKING_FIELD = 79
RESEARCH_CONCUSSIVE_SHELLS = 80
RESEARCH_PERSONAL_CLOAKING = 81
RESEARCH_STIMPACK = 82
RESEARCH_WEAPON_REFIT = 83
RESEARCH_BEHEMOTH_REACTOR = 84
RESEARCH_CADUCEUS_REACTOR = 85
RESEARCH_CORVID_REACTOR = 86
RESEARCH_MOEBIUS_REACTOR = 87
RESEARCH_BUILDING_ARMOR = 88
RESEARCH_COMBAT_SHIELD = 89
RESEARCH_DURABLE_MATERIALS = 90
RESEARCH_INFERNAL_PRE_IGNITER = 91
RESEARCH_NEOSTEEL_FRAME = 92
RESEARCH_TRANSFORMATION_SERVOS = 93
RESEARCH_DRILLING_CLAWS = 94
AUTO_SPAWN_LARVA = 95
SPAWN_LARVA = 96
SPAWN_DRONE = 97
SWITCH_DRONE_TO_GAS = 98
SWITCH_DRONE_TO_MINERALS = 99
SEND_DRONE_TO_SCOUT = 100
BRING_BACK_DRONE_SCOUT = 101
SPAWN_OVERLORD = 102
SACRIFICE_OVERLORD = 103
SPAWN_ZERGLING = 104
SPAWN_QUEEN = 105
SPAWN_HYDRALISK = 106
MORPH_BANELING = 107
MORPH_OVERSEER = 108
SPAWN_ROACH = 109
SPAWN_INFESTOR = 110
SPAWN_MUTALISK = 111
SPAWN_CORRUPTOR = 112
SPAWN_NYDUS_WORM = 113
SPAWN_ULTRALISK = 114
MORPH_BROOD_LORD = 115
SPAWN_SWARM_HOST = 116
SPAWN_VIPER = 117
MORPH_HATCHERY = 118
MORPH_EXTRACTOR = 119
MORPH_SPAWNING_POOL = 120
MORPH_EVOLUTION_CHAMBER = 121
MORPH_SPINE_CRAWLER = 122
MORPH_SPORE_CRAWLER = 123
MORPH_ROACH_WARREN = 124
MORPH_BANELING_NEST = 125
MORPH_LAIR = 126
MORPH_HYDRALISK_DEN = 127
MORPH_INFESTATION_PIT = 128
MORPH_SPIRE = 129
MORPH_NYDUS_NETWORK = 130
MORPH_HIVE = 131
MORPH_ULTRALISK_CAVERN = 132
MORPH_GREATER_SPIRE = 133
SPAWN_CREEP_TUMOR = 134
RESPAWN_CREEP_TUMOR = 135
RESEARCH_MELEE_ATTACKS_LEVEL_1 = 136
RESEARCH_MELEE_ATTACKS_LEVEL_2 = 137
RESEARCH_MELEE_ATTACKS_LEVEL_3 = 138
RESEARCH_MISSILE_ATTACKS_LEVEL_1 = 139
RESEARCH_MISSILE_ATTACKS_LEVEL_2 = 140
RESEARCH_MISSILE_ATTACKS_LEVEL_3 = 141
RESEARCH_FLYER_ATTACKS_LEVEL_1 = 142
RESEARCH_FLYER_ATTACKS_LEVEL_2 = 143
RESEARCH_FLYER_ATTACKS_LEVEL_3 = 144
RESEARCH_GROUND_CARAPACE_LEVEL_1 = 145
RESEARCH_GROUND_CARAPACE_LEVEL_2 = 146
RESEARCH_GROUND_CARAPACE_LEVEL_3 = 147
RESEARCH_FLYER_CARAPACE_LEVEL_1 = 148
RESEARCH_FLYER_CARAPACE_LEVEL_2 = 149
RESEARCH_FLYER_CARAPACE_LEVEL_3 = 150
RESEARCH_CHITINOUS_PLATING = 151
RESEARCH_CENTRIFUGAL_HOOKS = 152
RESEARCH_GLIAL_RECONSTRUCTION = 153
RESEARCH_METABOLIC_BOOST = 154
RESEARCH_PNEUMATIZED_CARAPACE = 155
RESEARCH_MUSCULAR_AUGMENTS = 156
RESEARCH_GROOVED_SPINES = 157
RESEARCH_BURROW = 158
RESEARCH_NEURAL_PARASITE = 159
RESEARCH_PATHOGEN_GLANDS = 160
RESEARCH_ADRENAL_GLANDS = 161
RESEARCH_TUNNELING_CLAWS = 162
RESEARCH_VENTRAL_SACS = 163
RESEARCH_MUSCULAR_AUGMENTS = 164
RESEARCH_INCREASED_LOCUST_LIFETIME = 165
CREATE_PROBE = 166
SWITCH_PROBE_TO_GAS = 167
SWITCH_PROBE_TO_MINERALS = 168
SEND_PROBE_TO_SCOUT = 169
BRING_BACK_PROBE_SCOUT = 170
CREATE_ZEALOT = 171
WARP_IN_ZEALOT = 172
CREATE_STALKER = 173
WARP_IN_STALKER = 174
CREATE_SENTRY = 175
WARP_IN_SENTRY = 176
CREATE_OBSERVER = 177
CREATE_IMMORTAL = 178
CREATE_WARP_PRISM = 179
CREATE_COLOSSUS = 180
CREATE_PHOENIX = 181
CREATE_VOID_RAY = 182
CREATE_HIGH_TEMPLAR = 183
WARP_IN_HIGH_TEMPLAR = 184
CREATE_DARK_TEMPLAR = 185
WARP_IN_DARK_TEMPLAR = 186
FUSE_ARCHON_MIX = 187
FUSE_ARCHON_HIGH = 188
FUSE_ARCHON_DARK = 189
CREATE_CARRIER = 190
CREATE_MOTHERSHIP = 191
CREATE_MOTHERSHIP_CORE = 192
CREATE_ORACLE = 193
CREATE_TEMPEST = 194
WARP_NEXUS = 195
CHRONO_BOOST = 196
WARP_PYLON = 197
WARP_ASSIMILATOR = 198
WARP_GATEWAY = 199
WARP_FORGE = 200
WARP_PHOTON_CANNON = 201
TRANSFORM_INTO_WARPGATE = 202
TRANSFORM_INTO_GATEWAY = 203
WARPGATE_ON_COOLDOWN = 204
WARP_CYBERNETICS_CORE = 205
WARP_TWILIGHT_COUNCIL = 206
WARP_ROBOTICS_FACILITY = 207
WARP_STARGATE = 208
WARP_TEMPLAR_ARCHIVES = 209
WARP_DARK_SHRINE = 210
WARP_ROBOTICS_BAY = 211
WARP_FLEET_BEACON = 212
RESEARCH_GROUND_WEAPONS_LEVEL_1 = 213
RESEARCH_GROUND_WEAPONS_LEVEL_2 = 214
RESEARCH_GROUND_WEAPONS_LEVEL_3 = 215
RESEARCH_AIR_WEAPONS_LEVEL_1 = 216
RESEARCH_AIR_WEAPONS_LEVEL_2 = 217
RESEARCH_AIR_WEAPONS_LEVEL_3 = 218
RESEARCH_GROUND_ARMOR_LEVEL_1 = 219
RESEARCH_GROUND_ARMOR_LEVEL_2 = 220
RESEARCH_GROUND_ARMOR_LEVEL_3 = 221
RESEARCH_AIR_ARMOR_LEVEL_1 = 222
RESEARCH_AIR_ARMOR_LEVEL_2 = 223
RESEARCH_AIR_ARMOR_LEVEL_3 = 224
RESEARCH_SHIELDS_LEVEL_1 = 225
RESEARCH_SHIELDS_LEVEL_2 = 226
RESEARCH_SHIELDS_LEVEL_3 = 227
RESEARCH_CHARGE = 228
RESEARCH_GRAVITIC_BOOSTERS = 229
RESEARCH_GRAVITIC_DRIVE = 230
RESEARCH_ANION_PULSE_CRYSTALS = 231
RESEARCH_EXTENDED_THERMAL_LANCE = 232
RESEARCH_PSIONIC_STORM = 233
RESEARCH_BLINK = 234
RESEARCH_GRAVITON_CATAPULT = 235
RESEARCH_WARP_GATE = 236
GIVE_MINERALS = 237
GIVE_GAS = 238
RECEIVE_MINERALS = 239
RECEIVE_GAS = 240
TRANSFORM_HELLBAT = 241
TRANSFORM_HELLION = 242
events = [
Event('Build SCV',50,0,1,0,17,add,(SCV_MINERAL,),((COMMAND_CENTER,O),)),
Event('Switch SCV to Gas',0,0,0,0,0,add,(SCV_GAS,),((SCV_MINERAL,C),(REFINERY,A))),
Event('Switch SCV to Minerals',0,0,0,0,0,add,(SCV_MINERAL,),((SCV_GAS,C),)),
Event('Send SCV to Scout',0,0,0,0,0,add,(SCV_SCOUT,),((SCV_MINERAL,C),)),
Event('Bring back SCV Scout',0,0,0,0,0,add,(SCV_MINERAL,),((SCV_SCOUT,C),)),
Event('Train Marine',50,0,1,0,25,add,(MARINE,),((BARRACKS,O),)),
Event('Train Marauder',100,25,2,0,30,add,(MARAUDER,),((BARRACKS_TECH_LAB,O),)),
Event('Train Reaper',50,50,1,0,45,add,(REAPER,),((BARRACKS,O),)),
Event('Train Ghost',200,100,2,0,40,add,(GHOST,),((BARRACKS_TECH_LAB,O),)),
Event('Build Hellion',100,0,2,0,30,add,(HELLION,),((FACTORY,O),)),
Event('Build Siege Tank',150,125,3,0,45,add,(SIEGE_TANK,),((FACTORY_TECH_LAB,O),)),
Event('Build Thor',300,200,6,0,60,add,(THOR,),((FACTORY_TECH_LAB,O),(ARMORY,A))),
Event('Build Viking',150,75,2,0,42,add,(VIKING,),((STARPORT,O),)),
Event('Build Medivac',100,100,2,0,42,add,(MEDIVAC,),((STARPORT,O),)),
Event('Build Raven',100,200,2,0,60,add,(RAVEN,),((STARPORT_TECH_LAB,O),)),
Event('Build Banshee',150,100,3,0,60,add,(BANSHEE,),((STARPORT_TECH_LAB,O),)),
Event('Build Battlecruiser',400,300,6,0,90,add,(BATTLECRUISER,),((STARPORT_TECH_LAB,O),(FUSION_CORE,A))),
Event('Build Hellbat',100,0,2,0,30,add,(HELLBAT,),((FACTORY,O),(ARMORY,A))),
Event('Build Widow Mine',75,25,2,0,40,add,(WIDOW_MINE,),((FACTORY,O),)),
Event('Build Command Center',400,0,0,11,100,add,(COMMAND_CENTER,),((SCV_MINERAL,O),)),
Event('Upgrade to Orbital Command',150,0,0,0,35,add,(ORBITAL_COMMAND,),((COMMAND_CENTER,C),(BARRACKS,A))),
Event('Call Down Mule',0,0,0,0,0,mule,(None,),((ORBITAL_COMMAND,50),)),
Event('Mule Life',0,0,0,0,90,mule_dies,(None,),((ORBITAL_COMMAND,A),(ORBITAL_COMMAND,N))),
Event('Scanner Sweep',0,0,0,0,0,idle,(None,),((ORBITAL_COMMAND,50),)),
Event('Upgrade to Planetary Fortress',150,150,0,0,50,add,(PLANETARY_FORTRESS,),((COMMAND_CENTER,C),(ENGINEERING_BAY,A))),
Event('Build Supply Depot',100,0,0,8,30,add,(SUPPLY_DEPOT,),((SCV_MINERAL,O),)),
Event('Upgrade Supply Depot',0,0,0,8,4,add,(SUPPLY_DEPOT_EXTRA,),((SUPPLY_DEPOT,C),(ORBITAL_COMMAND,50))),
Event('Build Refinery',75,0,0,0,30,add,(REFINERY,),((SCV_MINERAL,O),)),
Event('Build Barracks',150,0,0,0,65,add,(BARRACKS,),((SCV_MINERAL,O),(SUPPLY_DEPOT,A))),
Event('Build Engineering Bay',125,0,0,0,35,add,(ENGINEERING_BAY,),((SCV_MINERAL,O),)),
Event('Build Bunker',100,0,0,0,40,add,(BUNKER,),((SCV_MINERAL,O),(BARRACKS,A))),
Event('Salvage Bunker',0,0,0,0,0,salvage,(75,),((BUNKER,C),)),
Event('Build Missile Turret',100,0,0,0,25,add,(MISSILE_TURRET,),((SCV_MINERAL,O),(ENGINEERING_BAY,A))),
Event('Build Sensor Tower',125,100,0,0,25,add,(SENSOR_TOWER,),((SCV_MINERAL,O),(ENGINEERING_BAY,A))),
Event('Build Factory',150,100,0,0,60,add,(FACTORY,),((SCV_MINERAL,O),(BARRACKS,A))),
Event('Build Ghost Academy',150,50,0,0,40,add,(GHOST_ACADEMY,),((SCV_MINERAL,O),(BARRACKS,A))),
Event('Arm Silo with Nuke',100,100,0,0,60,add,(GHOST_ACADEMY_ARMED,),((GHOST_ACADEMY,O),)),
Event('Fire Nuke',0,0,0,0,0,add,(GHOST_ACADEMY,),((GHOST_ACADEMY_ARMED,C),)),
Event('Build Armory',150,100,0,0,65,add,(ARMORY,),((SCV_MINERAL,O),(FACTORY,A))),
Event('Build Starport',150,100,0,0,50,add,(STARPORT,),((SCV_MINERAL,O),(FACTORY,A))),
Event('Build Fusion Core',150,150,0,0,65,add,(FUSION_CORE,),((SCV_MINERAL,O),(STARPORT,A))),
Event('Build Reactor onto Barracks',50,50,0,0,25,add,(BARRACKS_REACTOR,REACTOR_BARRACKS,),((BARRACKS,C),)),
Event('Build Tech Lab onto Barracks',50,25,0,0,25,add,(BARRACKS_TECH_LAB,TECH_LAB_BARRACKS,),((BARRACKS,C),)),
Event('Build Reactor onto Factory',50,50,0,0,25,add,(FACTORY_REACTOR,REACTOR_FACTORY,),((FACTORY,C),)),
Event('Build Tech Lab onto Factory',50,25,0,0,25,add,(FACTORY_TECH_LAB,TECH_LAB_FACTORY,),((FACTORY,C),)),
Event('Build Reactor onto Starport',50,50,0,0,25,add,(STARPORT_REACTOR,REACTOR_STARPORT,),((STARPORT,C),)),
Event('Build Tech Lab onto Starport',50,25,0,0,25,add,(STARPORT_TECH_LAB,TECH_LAB_STARPORT,),((STARPORT,C),)),
Event('Separate Reactor from Barracks',0,0,0,0,2,add,(BARRACKS,REACTOR,),((BARRACKS_REACTOR,C),(REACTOR_BARRACKS,C))),
Event('Attach Reactor to Barracks',0,0,0,0,2,add,(BARRACKS_REACTOR,REACTOR_BARRACKS,),((BARRACKS,C),(REACTOR,C))),
Event('Separate Tech Lab from Factory',0,0,0,0,2,add,(FACTORY,TECH_LAB,),((FACTORY_TECH_LAB,C),(TECH_LAB_FACTORY,C))),
Event('Attach Tech Lab to Factory',0,0,0,0,2,add,(FACTORY_TECH_LAB,TECH_LAB_FACTORY,),((FACTORY,C),(TECH_LAB,C))),
Event('Separate Tech Lab from Barracks',0,0,0,0,2,add,(BARRACKS,TECH_LAB,),((BARRACKS_TECH_LAB,C),(TECH_LAB_BARRACKS,C))),
Event('Attach Tech Lab to Barracks',0,0,0,0,2,add,(BARRACKS_TECH_LAB,TECH_LAB_BARRACKS,),((BARRACKS,C),(TECH_LAB,C))),
Event('Separate Reactor from Starport',0,0,0,0,2,add,(STARPORT,REACTOR,),((STARPORT_REACTOR,C),(REACTOR_STARPORT,C))),
Event('Attach Reactor to Starport',0,0,0,0,2,add,(STARPORT_REACTOR,REACTOR_STARPORT,),((STARPORT,C),(REACTOR,C))),
Event('Separate Reactor from Factory',0,0,0,0,2,add,(FACTORY,REACTOR,),((FACTORY_REACTOR,C),(REACTOR_FACTORY,C))),
Event('Attach Reactor to Factory',0,0,0,0,2,add,(FACTORY_REACTOR,REACTOR_FACTORY,),((FACTORY,C),(REACTOR,C))),
Event('Separate Tech Lab from Starport',0,0,0,0,2,add,(STARPORT,TECH_LAB,),((STARPORT_TECH_LAB,C),(TECH_LAB_STARPORT,C))),
Event('Attach Tech Lab to Starport',0,0,0,0,2,add,(STARPORT_TECH_LAB,TECH_LAB_STARPORT,),((STARPORT,C),(TECH_LAB,C))),
Event('Research Infantry Weapons Level 1',100,100,0,0,160,research,(INFANTRY_WEAPONS_LEVEL_1,),((ENGINEERING_BAY,O),(INFANTRY_WEAPONS_LEVEL_1,N))),
Event('Research Infantry Weapons Level 2',175,175,0,0,190,research,(INFANTRY_WEAPONS_LEVEL_2,),((ENGINEERING_BAY,O),(INFANTRY_WEAPONS_LEVEL_2,N),(INFANTRY_WEAPONS_LEVEL_1,A),(ARMORY,A))),
Event('Research Infantry Weapons Level 3',250,250,0,0,220,research,(INFANTRY_WEAPONS_LEVEL_3,),((ENGINEERING_BAY,O),(INFANTRY_WEAPONS_LEVEL_3,N),(INFANTRY_WEAPONS_LEVEL_2,A),(ARMORY,A))),
Event('Research Vehicle Weapons Level 1',100,100,0,0,160,research,(VEHICLE_WEAPONS_LEVEL_1,),((ARMORY,O),(VEHICLE_WEAPONS_LEVEL_1,N))),
Event('Research Vehicle Weapons Level 2',175,175,0,0,190,research,(VEHICLE_WEAPONS_LEVEL_2,),((ARMORY,O),(VEHICLE_WEAPONS_LEVEL_2,N),(VEHICLE_WEAPONS_LEVEL_1,A))),
Event('Research Vehicle Weapons Level 3',250,250,0,0,220,research,(VEHICLE_WEAPONS_LEVEL_3,),((ARMORY,O),(VEHICLE_WEAPONS_LEVEL_3,N),(VEHICLE_WEAPONS_LEVEL_2,A))),
Event('Research Ship Weapons Level 1',100,100,0,0,160,research,(SHIP_WEAPONS_LEVEL_1,),((ARMORY,O),(SHIP_WEAPONS_LEVEL_1,N))),
Event('Research Ship Weapons Level 2',175,175,0,0,190,research,(SHIP_WEAPONS_LEVEL_2,),((ARMORY,O),(SHIP_WEAPONS_LEVEL_2,N),(SHIP_WEAPONS_LEVEL_1,A))),
Event('Research Ship Weapons Level 3',250,250,0,0,220,research,(SHIP_WEAPONS_LEVEL_3,),((ARMORY,O),(SHIP_WEAPONS_LEVEL_3,N),(SHIP_WEAPONS_LEVEL_2,A))),
Event('Research Infantry Armor Level 1',100,100,0,0,160,research,(INFANTRY_ARMOR_LEVEL_1,),((ENGINEERING_BAY,O),(INFANTRY_ARMOR_LEVEL_1,N))),
Event('Research Infantry Armor Level 2',175,175,0,0,190,research,(INFANTRY_ARMOR_LEVEL_2,),((ENGINEERING_BAY,O),(INFANTRY_ARMOR_LEVEL_2,N),(INFANTRY_ARMOR_LEVEL_1,A),(ARMORY,A))),
Event('Research Infantry Armor Level 3',250,250,0,0,220,research,(INFANTRY_ARMOR_LEVEL_3,),((ENGINEERING_BAY,O),(INFANTRY_ARMOR_LEVEL_3,N),(INFANTRY_ARMOR_LEVEL_2,A),(ARMORY,A))),
Event('Research Vehicle Plating Level 1',100,100,0,0,160,research,(VEHICLE_PLATING_LEVEL_1,),((ARMORY,O),(VEHICLE_PLATING_LEVEL_1,N))),
Event('Research Vehicle Plating Level 2',175,175,0,0,190,research,(VEHICLE_PLATING_LEVEL_2,),((ARMORY,O),(VEHICLE_PLATING_LEVEL_2,N),(VEHICLE_PLATING_LEVEL_1,A))),
Event('Research Vehicle Plating Level 3',250,250,0,0,220,research,(VEHICLE_PLATING_LEVEL_3,),((ARMORY,O),(VEHICLE_PLATING_LEVEL_3,N),(VEHICLE_PLATING_LEVEL_2,A))),
Event('Research Ship Plating Level 1',150,150,0,0,160,research,(SHIP_PLATING_LEVEL_1,),((ARMORY,O),(SHIP_PLATING_LEVEL_1,N))),
Event('Research Ship Plating Level 2',225,225,0,0,190,research,(SHIP_PLATING_LEVEL_2,),((ARMORY,O),(SHIP_PLATING_LEVEL_2,N),(SHIP_PLATING_LEVEL_1,A))),
Event('Research Ship Plating Level 3',300,300,0,0,220,research,(SHIP_PLATING_LEVEL_3,),((ARMORY,O),(SHIP_PLATING_LEVEL_3,N),(SHIP_PLATING_LEVEL_2,A))),
Event('Research Nitro Packs',50,50,0,0,100,research,(NITRO_PACKS,),((TECH_LAB_BARRACKS,O),(NITRO_PACKS,N),(ARMORY,A))),
Event('Research Hi_Sec Auto Tracking',100,100,0,0,80,research,(HI_SEC_AUTO_TRACKING,),((ENGINEERING_BAY,O),(HI_SEC_AUTO_TRACKING,N))),
Event('Research Cloaking Field',100,100,0,0,110,research,(CLOAKING_FIELD,),((TECH_LAB_STARPORT,O),(CLOAKING_FIELD,N))),
Event('Research Concussive Shells',50,50,0,0,60,research,(CONCUSSIVE_SHELLS,),((TECH_LAB_BARRACKS,O),(CONCUSSIVE_SHELLS,N))),
Event('Research Personal Cloaking',150,150,0,0,120,research,(PERSONAL_CLOAKING,),((GHOST_ACADEMY,O),(PERSONAL_CLOAKING,N))),
Event('Research Stimpack',100,100,0,0,170,research,(STIMPACK,),((TECH_LAB_BARRACKS,O),(STIMPACK,N))),
Event('Research Weapon Refit',150,150,0,0,60,research,(WEAPON_REFIT,),((FUSION_CORE,O),(WEAPON_REFIT,N))),
Event('Research Behemoth Reactor',150,150,0,0,80,research,(BEHEMOTH_REACTOR,),((FUSION_CORE,O),(BEHEMOTH_REACTOR,N))),
Event('Research Caduceus Reactor',100,100,0,0,80,research,(CADUCEUS_REACTOR,),((TECH_LAB_STARPORT,O),(CADUCEUS_REACTOR,N))),
Event('Research Corvid Reactor',150,150,0,0,110,research,(CORVID_REACTOR,),((TECH_LAB_STARPORT,O),(CORVID_REACTOR,N))),
Event('Research Moebius Reactor',100,100,0,0,80,research,(MOEBIUS_REACTOR,),((GHOST_ACADEMY,O),(MOEBIUS_REACTOR,N))),
Event('Research Building Armor',150,150,0,0,140,research,(BUILDING_ARMOR,),((ENGINEERING_BAY,O),(BUILDING_ARMOR,N))),
Event('Research Combat Shield',100,100,0,0,110,research,(COMBAT_SHIELD,),((TECH_LAB_BARRACKS,O),(COMBAT_SHIELD,N))),
Event('Research Durable Materials',150,150,0,0,110,research,(DURABLE_MATERIALS,),((TECH_LAB_STARPORT,O),(DURABLE_MATERIALS,N))),
Event('Research Infernal Pre_Igniter',150,150,0,0,110,research,(INFERNAL_PRE_IGNITER,),((TECH_LAB_FACTORY,O),(INFERNAL_PRE_IGNITER,N))),
Event('Research Neosteel Frame',100,100,0,0,110,research,(NEOSTEEL_FRAME,),((ENGINEERING_BAY,O),(NEOSTEEL_FRAME,N))),
Event('Research Transformation Servos',100,100,0,0,110,research,(TRANSFORMATION_SERVOS,),((TECH_LAB_FACTORY,O),(TRANSFORMATION_SERVOS,N),(ARMORY,A))),
Event('Research Drilling Claws',150,150,0,0,110,research,(DRILLING_CLAWS,),((TECH_LAB_FACTORY,O),(DRILLING_CLAWS,N),(ARMORY,A))),
Event('Auto Spawn Larva',0,0,0,0,15,spawn_larva,(True,),((HATCHERY,A),(HATCHERY,N))),
Event('Spawn Larva',0,0,0,0,40,spawn_larva,(False,),((QUEEN,25),(HATCHERY,A))),
Event('Spawn Drone',50,0,1,0,17,add,(DRONE_MINERAL,),((LARVA,C),)),
Event('Switch Drone to Gas',0,0,0,0,0,add,(DRONE_GAS,),((DRONE_MINERAL,C),(EXTRACTOR,A))),
Event('Switch Drone to Minerals',0,0,0,0,0,add,(DRONE_MINERAL,),((DRONE_GAS,C),)),
Event('Send Drone to Scout',0,0,0,0,0,add,(DRONE_SCOUT,),((DRONE_MINERAL,C),)),
Event('Bring back Drone Scout',0,0,0,0,0,add,(DRONE_MINERAL,),((DRONE_SCOUT,C),)),
Event('Spawn Overlord',100,0,0,8,25,add,(OVERLORD,),((LARVA,C),)),
Event('Sacrifice Overlord',0,0,0,-8,0,idle,(None,),((OVERLORD,C),)),
Event('Spawn Zergling',50,0,1,0,24,add,(ZERGLING, ZERGLING,),((LARVA,C),(SPAWNING_POOL,A))),
Event('Spawn Queen',150,0,2,0,50,add,(QUEEN,),((HATCHERY,O),(SPAWNING_POOL,A))),
Event('Spawn Hydralisk',100,50,2,0,33,add,(HYDRALISK,),((LARVA,C),(HYDRALISK_DEN,A))),
Event('Morph Baneling',25,25,0,0,20,add,(BANELING,),((ZERGLING,C),(BANELING_NEST,A))),
Event('Morph Overseer',50,50,0,0,17,add,(OVERSEER,),((LARVA,C),(LAIR,A))),
Event('Spawn Roach',75,25,2,0,27,add,(ROACH,),((LARVA,C),(ROACH_WARREN,A))),
Event('Spawn Infestor',100,150,2,0,50,add,(INFESTOR,),((LARVA,C),(INFESTATION_PIT,A))),
Event('Spawn Mutalisk',100,100,2,0,33,add,(MUTALISK,),((LARVA,C),(SPIRE,A))),
Event('Spawn Corruptor',150,100,2,0,40,add,(CORRUPTOR,),((LARVA,C),(SPIRE,A))),
Event('Spawn Nydus Worm',100,100,0,0,20,add,(NYDUS_WORM,),((NYDUS_NETWORK,A),)),
Event('Spawn Ultralisk',300,200,6,0,55,add,(ULTRALISK,),((LARVA,C),(ULTRALISK_CAVERN,A))),
Event('Morph Brood Lord',150,150,2,0,34,add,(BROOD_LORD,),((CORRUPTOR,C),(GREATER_SPIRE,A))),
Event('Spawn Swarm Host',200,100,3,0,40,add,(SWARM_HOST,),((LARVA,C),(INFESTATION_PIT,A))),
Event('Spawn Viper',100,200,3,0,40,add,(VIPER,),((LARVA,C),(SPIRE,A))),
Event('Morph Hatchery',300,0,-1,2,100,add,(HATCHERY,),((DRONE_MINERAL,C),)),
Event('Morph Extractor',25,0,-1,0,30,add,(EXTRACTOR,),((DRONE_MINERAL,C),)),
Event('Morph Spawning Pool',200,0,-1,0,65,add,(SPAWNING_POOL,),((DRONE_MINERAL,C),(HATCHERY,A))),
Event('Morph Evolution Chamber',75,0,-1,0,30,add,(EVOLUTION_CHAMBER,),((DRONE_MINERAL,C),(HATCHERY,A))),
Event('Morph Spine Crawler',100,0,-1,0,50,add,(SPINE_CRAWLER,),((DRONE_MINERAL,C),(SPAWNING_POOL,A))),
Event('Morph Spore Crawler',75,0,-1,0,30,add,(SPORE_CRAWLER,),((DRONE_MINERAL,C),(SPAWNING_POOL,A))),
Event('Morph Roach Warren',150,0,-1,0,55,add,(ROACH_WARREN,),((DRONE_MINERAL,C),(SPAWNING_POOL,A))),
Event('Morph Baneling Nest',100,50,-1,0,60,add,(BANELING_NEST,),((DRONE_MINERAL,C),(SPAWNING_POOL,A))),
Event('Morph Lair',150,100,0,0,40,add,(LAIR,),((HATCHERY,C),(SPAWNING_POOL,A))),
Event('Morph Hydralisk Den',100,100,-1,0,40,add,(HYDRALISK_DEN,),((DRONE_MINERAL,C),(LAIR,A))),
Event('Morph Infestation Pit',100,100,-1,0,50,add,(INFESTATION_PIT,),((DRONE_MINERAL,C),(LAIR,A))),
Event('Morph Spire',200,200,-1,0,100,add,(SPIRE,),((DRONE_MINERAL,C),(LAIR,A))),
Event('Morph Nydus Network',150,200,-1,0,50,add,(NYDUS_NETWORK,),((DRONE_MINERAL,C),(LAIR,A))),
Event('Morph Hive',200,150,0,0,100,add,(HIVE,),((LAIR,C),(INFESTATION_PIT,A))),
Event('Morph Ultralisk Cavern',150,200,-1,0,65,add,(ULTRALISK_CAVERN,),((DRONE_MINERAL,C),(HIVE,A))),
Event('Morph Greater Spire',100,150,0,0,100,add,(GREATER_SPIRE,),((SPIRE,C),(HIVE,A))),
Event('Spawn Creep Tumor',0,0,0,0,15,add,(CREEP_TUMOR,),((QUEEN,25),)),
Event('Respawn Creep Tumor',0,0,0,0,15,add,(CREEP_TUMOR_USED,),((CREEP_TUMOR,O),)),
Event('Research Melee Attacks Level 1',100,100,0,0,160,research,(MELEE_ATTACKS_LEVEL_1,),((EVOLUTION_CHAMBER,O),(MELEE_ATTACKS_LEVEL_1,N))),
Event('Research Melee Attacks Level 2',150,150,0,0,190,research,(MELEE_ATTACKS_LEVEL_2,),((EVOLUTION_CHAMBER,O),(MELEE_ATTACKS_LEVEL_2,N),(MELEE_ATTACKS_LEVEL_1,A),(LAIR,A))),
Event('Research Melee Attacks Level 3',200,200,0,0,220,research,(MELEE_ATTACKS_LEVEL_3,),((EVOLUTION_CHAMBER,O),(MELEE_ATTACKS_LEVEL_3,N),(MELEE_ATTACKS_LEVEL_2,A),(HIVE,A))),
Event('Research Missile Attacks Level 1',100,100,0,0,160,research,(MISSILE_ATTACKS_LEVEL_1,),((EVOLUTION_CHAMBER,O),(MISSILE_ATTACKS_LEVEL_1,N))),
Event('Research Missile Attacks Level 2',150,150,0,0,190,research,(MISSILE_ATTACKS_LEVEL_2,),((EVOLUTION_CHAMBER,O),(MISSILE_ATTACKS_LEVEL_2,N),(MISSILE_ATTACKS_LEVEL_1,A),(LAIR,A))),
Event('Research Missile Attacks Level 3',200,200,0,0,220,research,(MISSILE_ATTACKS_LEVEL_3,),((EVOLUTION_CHAMBER,O),(MISSILE_ATTACKS_LEVEL_3,N),(MISSILE_ATTACKS_LEVEL_2,A),(HIVE,A))),
Event('Research Flyer Attacks Level 1',100,100,0,0,160,research,(FLYER_ATTACKS_LEVEL_1,),((SPIRE,O),(FLYER_ATTACKS_LEVEL_1,N))),
Event('Research Flyer Attacks Level 2',175,175,0,0,190,research,(FLYER_ATTACKS_LEVEL_2,),((SPIRE,O),(FLYER_ATTACKS_LEVEL_2,N),(FLYER_ATTACKS_LEVEL_1,A),(LAIR,A))),
Event('Research Flyer Attacks Level 3',250,250,0,0,220,research,(FLYER_ATTACKS_LEVEL_3,),((SPIRE,O),(FLYER_ATTACKS_LEVEL_3,N),(FLYER_ATTACKS_LEVEL_2,A),(HIVE,A))),
Event('Research Ground Carapace Level 1',150,150,0,0,160,research,(GROUND_CARAPACE_LEVEL_1,),((EVOLUTION_CHAMBER,O),(GROUND_CARAPACE_LEVEL_1,N))),
Event('Research Ground Carapace Level 2',225,225,0,0,190,research,(GROUND_CARAPACE_LEVEL_2,),((EVOLUTION_CHAMBER,O),(GROUND_CARAPACE_LEVEL_2,N),(GROUND_CARAPACE_LEVEL_1,A),(LAIR,A))),
Event('Research Ground Carapace Level 3',300,300,0,0,220,research,(GROUND_CARAPACE_LEVEL_3,),((EVOLUTION_CHAMBER,O),(GROUND_CARAPACE_LEVEL_3,N),(GROUND_CARAPACE_LEVEL_2,A),(HIVE,A))),
Event('Research Flyer Carapace Level 1',150,150,0,0,160,research,(FLYER_CARAPACE_LEVEL_1,),((SPIRE,O),(FLYER_CARAPACE_LEVEL_1,N))),
Event('Research Flyer Carapace Level 2',225,225,0,0,190,research,(FLYER_CARAPACE_LEVEL_2,),((SPIRE,O),(FLYER_CARAPACE_LEVEL_2,N),(FLYER_CARAPACE_LEVEL_1,A),(LAIR,A))),
Event('Research Flyer Carapace Level 3',300,300,0,0,220,research,(FLYER_CARAPACE_LEVEL_3,),((SPIRE,O),(FLYER_CARAPACE_LEVEL_3,N),(FLYER_CARAPACE_LEVEL_2,A),(HIVE,A))),
Event('Research Chitinous Plating',150,150,0,0,110,research,(CHITINOUS_PLATING,),((ULTRALISK_CAVERN,O),(CHITINOUS_PLATING,N))),
Event('Research Centrifugal Hooks',150,150,0,0,110,research,(CENTRIFUGAL_HOOKS,),((BANELING_NEST,O),(CENTRIFUGAL_HOOKS,N),(LAIR,A))),
Event('Research Glial Reconstruction',100,100,0,0,110,research,(GLIAL_RECONSTRUCTION,),((ROACH_WARREN,O),(GLIAL_RECONSTRUCTION,N),(LAIR,A))),
Event('Research Metabolic Boost',100,100,0,0,110,research,(METABOLIC_BOOST,),((SPAWNING_POOL,O),(METABOLIC_BOOST,N))),
Event('Research Pneumatized Carapace',100,100,0,0,60,research,(PNEUMATIZED_CARAPACE,),((HATCHERY,O),(PNEUMATIZED_CARAPACE,N))),
Event('Research Muscular Augments',150,150,0,0,100,research,(MUSCULAR_AUGMENTS,),((HYDRALISK_DEN,O),(MUSCULAR_AUGMENTS,N))),
Event('Research Grooved Spines',150,150,0,0,80,research,(GROOVED_SPINES,),((HYDRALISK_DEN,O),(GROOVED_SPINES,N))),
Event('Research Burrow',100,100,0,0,100,research,(BURROW,),((HATCHERY,O),(BURROW,N))),
Event('Research Neural Parasite',150,150,0,0,110,research,(NEURAL_PARASITE,),((INFESTATION_PIT,O),(NEURAL_PARASITE,N))),
Event('Research Pathogen Glands',150,150,0,0,80,research,(PATHOGEN_GLANDS,),((INFESTATION_PIT,O),(PATHOGEN_GLANDS,N))),
Event('Research Adrenal Glands',200,200,0,0,130,research,(ADRENAL_GLANDS,),((SPAWNING_POOL,O),(ADRENAL_GLANDS,N))),
Event('Research Tunneling Claws',150,150,0,0,110,research,(TUNNELING_CLAWS,),((ROACH_WARREN,O),(TUNNELING_CLAWS,N),(LAIR,A))),
Event('Research Ventral Sacs',200,200,0,0,130,research,(VENTRAL_SACS,),((HATCHERY,O),(VENTRAL_SACS,N),(LAIR,A))),
Event('Research Muscular Augments',150,150,0,0,80,research,(MUSCULAR_AUGMENTS,),((HYDRALISK_DEN,O),(MUSCULAR_AUGMENTS,N))),
Event('Research Increased Locust Lifetime',200,200,0,0,120,research,(INCREASED_LOCUST_LIFETIME,),((INFESTATION_PIT,O),(INCREASED_LOCUST_LIFETIME,N))),
Event('Create Probe',50,0,1,0,17,add,(PROBE_MINERAL,),((NEXUS,O),)),
Event('Switch Probe to Gas',0,0,0,0,0,add,(PROBE_GAS,),((PROBE_MINERAL,C),(ASSIMILATOR,A))),
Event('Switch Probe to Minerals',0,0,0,0,0,add,(PROBE_MINERAL,),((PROBE_GAS,C),)),
Event('Send Probe to Scout',0,0,0,0,0,add,(PROBE_SCOUT,),((PROBE_MINERAL,C),)),
Event('Bring back Probe Scout',0,0,0,0,0,add,(PROBE_MINERAL,),((PROBE_SCOUT,C),)),
Event('Create Zealot',100,0,2,0,38,add,(ZEALOT,),((GATEWAY,O),)),
Event('Warp in Zealot',100,0,2,0,5,warp,(ZEALOT,28,),((WARPGATE,O),)),
Event('Create Stalker',125,50,2,0,42,add,(STALKER,),((GATEWAY,O),(CYBERNETICS_CORE,A))),
Event('Warp in Stalker',125,50,2,0,5,warp,(STALKER,32,),((WARPGATE,O),)),
Event('Create Sentry',50,100,2,0,37,add,(SENTRY,),((GATEWAY,O),(CYBERNETICS_CORE,A))),
Event('Warp in Sentry',50,100,2,0,5,warp,(SENTRY,32,),((WARPGATE,O),)),
Event('Create Observer',25,75,1,0,40,add,(OBSERVER,),((ROBOTICS_FACILITY,O),)),
Event('Create Immortal',250,100,4,0,55,add,(IMMORTAL,),((ROBOTICS_FACILITY,O),)),
Event('Create Warp Prism',200,0,2,0,50,add,(WARP_PRISM,),((ROBOTICS_FACILITY,O),)),
Event('Create Colossus',300,200,6,0,75,add,(COLOSSUS,),((ROBOTICS_FACILITY,O),(ROBOTICS_BAY,A))),
Event('Create Phoenix',150,100,2,0,35,add,(PHOENIX,),((STARGATE,O),)),
Event('Create Void Ray',250,150,4,0,60,add,(VOID_RAY,),((STARGATE,O),)),
Event('Create High Templar',50,150,2,0,55,add,(HIGH_TEMPLAR,),((GATEWAY,O),(TEMPLAR_ARCHIVES,A))),
Event('Warp in High Templar',50,150,2,0,5,warp,(HIGH_TEMPLAR,45,),((WARPGATE,O),(TEMPLAR_ARCHIVES,A))),
Event('Create Dark Templar',125,125,2,0,55,add,(DARK_TEMPLAR,),((GATEWAY,O),(DARK_SHRINE,A))),
Event('Warp in Dark Templar',125,125,2,0,5,warp,(DARK_TEMPLAR,45,),((WARPGATE,O),(DARK_SHRINE,A))),
Event('Fuse Archon Mix',0,0,0,0,12,add,(ARCHON,),((HIGH_TEMPLAR,C),(DARK_TEMPLAR,C))),
Event('Fuse Archon High',0,0,0,0,12,add,(ARCHON,),((HIGH_TEMPLAR,C),(HIGH_TEMPLAR,C))),
Event('Fuse Archon Dark',0,0,0,0,12,add,(ARCHON,),((DARK_TEMPLAR,C),(DARK_TEMPLAR,C))),
Event('Create Carrier',350,250,6,0,120,add,(CARRIER,),((STARGATE,O),)),
Event('Create Mothership',300,300,8,0,100,add,(MOTHERSHIP,),((MOTHERSHIP_CORE,C),(FLEET_BEACON,A),(MOTHERSHIP,N))),
Event('Create Mothership Core',100,100,2,0,30,add,(MOTHERSHIP_CORE,),((NEXUS,O),(CYBERNETICS_CORE,A),(MOTHERSHIP,N),(MOTHERSHIP_CORE,N))),
Event('Create Oracle',150,150,3,0,50,add,(ORACLE,),((STARGATE,O),)),
Event('Create Tempest',300,200,4,0,60,add,(TEMPEST,),((STARGATE,O),)),
Event('Warp Nexus',400,0,0,11,100,add,(NEXUS,),((PROBE_MINERAL,A),)),
Event('Chrono Boost',0,0,0,0,0,boost,(None,),((NEXUS,25),)),
Event('Warp Pylon',100,0,0,8,25,add,(PYLON,),((PROBE_MINERAL,A),)),
Event('Warp Assimilator',75,0,0,0,30,add,(ASSIMILATOR,),((PROBE_MINERAL,A),)),
Event('Warp Gateway',150,0,0,0,65,add,(GATEWAY,),((PROBE_MINERAL,A),(PYLON,A))),
Event('Warp Forge',150,0,0,0,45,add,(FORGE,),((PROBE_MINERAL,A),(NEXUS,A),(PYLON,A))),
Event('Warp Photon Cannon',150,0,0,0,40,add,(PHOTON_CANNON,),((PROBE_MINERAL,A),(FORGE,A))),
Event('Transform into Warpgate',0,0,0,0,10,add,(WARPGATE,),((GATEWAY,C),(WARP_GATE,A))),
Event('Transform into Gateway',0,0,0,0,10,add,(GATEWAY,),((WARPGATE,C),)),
Event('Warpgate on Cooldown',0,0,0,0,0,idle,(None,),((WARPGATE,O),(WARPGATE,N))),
Event('Warp Cybernetics Core',150,0,0,0,50,add,(CYBERNETICS_CORE,),((PROBE_MINERAL,A),(GATEWAY,A))),
Event('Warp Twilight Council',150,100,0,0,50,add,(TWILIGHT_COUNCIL,),((PROBE_MINERAL,A),(CYBERNETICS_CORE,A))),
Event('Warp Robotics Facility',200,100,0,0,65,add,(ROBOTICS_FACILITY,),((PROBE_MINERAL,A),(CYBERNETICS_CORE,A))),
Event('Warp Stargate',150,150,0,0,60,add,(STARGATE,),((PROBE_MINERAL,A),(CYBERNETICS_CORE,A))),
Event('Warp Templar Archives',150,200,0,0,50,add,(TEMPLAR_ARCHIVES,),((PROBE_MINERAL,A),(TWILIGHT_COUNCIL,A))),
Event('Warp Dark Shrine',100,250,0,0,100,add,(DARK_SHRINE,),((PROBE_MINERAL,A),(TEMPLAR_ARCHIVES,A))),
Event('Warp Robotics Bay',200,200,0,0,65,add,(ROBOTICS_BAY,),((PROBE_MINERAL,A),(ROBOTICS_FACILITY,A))),
Event('Warp Fleet Beacon',300,200,0,0,60,add,(FLEET_BEACON,),((PROBE_MINERAL,A),(STARGATE,A))),
Event('Research Ground Weapons Level 1',100,100,0,0,160,research,(GROUND_WEAPONS_LEVEL_1,),((FORGE,O),(GROUND_WEAPONS_LEVEL_1,N))),
Event('Research Ground Weapons Level 2',150,150,0,0,190,research,(GROUND_WEAPONS_LEVEL_2,),((FORGE,O),(GROUND_WEAPONS_LEVEL_2,N),(GROUND_WEAPONS_LEVEL_1,A))),
Event('Research Ground Weapons Level 3',200,200,0,0,220,research,(GROUND_WEAPONS_LEVEL_3,),((FORGE,O),(GROUND_WEAPONS_LEVEL_3,N),(GROUND_WEAPONS_LEVEL_2,A))),
Event('Research Air Weapons Level 1',100,100,0,0,160,research,(AIR_WEAPONS_LEVEL_1,),((CYBERNETICS_CORE,O),(AIR_WEAPONS_LEVEL_1,N))),
Event('Research Air Weapons Level 2',175,175,0,0,190,research,(AIR_WEAPONS_LEVEL_2,),((CYBERNETICS_CORE,O),(AIR_WEAPONS_LEVEL_2,N),(AIR_WEAPONS_LEVEL_1,A))),
Event('Research Air Weapons Level 3',250,250,0,0,220,research,(AIR_WEAPONS_LEVEL_3,),((CYBERNETICS_CORE,O),(AIR_WEAPONS_LEVEL_3,N),(AIR_WEAPONS_LEVEL_2,A))),
Event('Research Ground Armor Level 1',100,100,0,0,160,research,(GROUND_ARMOR_LEVEL_1,),((FORGE,O),(GROUND_ARMOR_LEVEL_1,N))),
Event('Research Ground Armor Level 2',150,150,0,0,190,research,(GROUND_ARMOR_LEVEL_2,),((FORGE,O),(GROUND_ARMOR_LEVEL_2,N),(GROUND_ARMOR_LEVEL_1,A))),
Event('Research Ground Armor Level 3',200,200,0,0,220,research,(GROUND_ARMOR_LEVEL_3,),((FORGE,O),(GROUND_ARMOR_LEVEL_3,N),(GROUND_ARMOR_LEVEL_2,A))),
Event('Research Air Armor Level 1',150,150,0,0,160,research,(AIR_ARMOR_LEVEL_1,),((CYBERNETICS_CORE,O),(AIR_ARMOR_LEVEL_1,N))),
Event('Research Air Armor Level 2',225,225,0,0,190,research,(AIR_ARMOR_LEVEL_2,),((CYBERNETICS_CORE,O),(AIR_ARMOR_LEVEL_2,N),(AIR_ARMOR_LEVEL_1,A))),
Event('Research Air Armor Level 3',300,300,0,0,220,research,(AIR_ARMOR_LEVEL_3,),((CYBERNETICS_CORE,O),(AIR_ARMOR_LEVEL_3,N),(AIR_ARMOR_LEVEL_2,A))),
Event('Research Shields Level 1',150,150,0,0,160,research,(SHIELDS_LEVEL_1,),((FORGE,O),(SHIELDS_LEVEL_1,N))),
Event('Research Shields Level 2',225,225,0,0,190,research,(SHIELDS_LEVEL_2,),((FORGE,O),(SHIELDS_LEVEL_2,N),(SHIELDS_LEVEL_1,A))),
Event('Research Shields Level 3',300,300,0,0,220,research,(SHIELDS_LEVEL_3,),((FORGE,O),(SHIELDS_LEVEL_3,N),(SHIELDS_LEVEL_2,A))),
Event('Research Charge',200,200,0,0,140,research,(CHARGE,),((TWILIGHT_COUNCIL,O),(CHARGE,N))),
Event('Research Gravitic Boosters',100,100,0,0,80,research,(GRAVITIC_BOOSTERS,),((ROBOTICS_BAY,O),(GRAVITIC_BOOSTERS,N))),
Event('Research Gravitic Drive',100,100,0,0,80,research,(GRAVITIC_DRIVE,),((ROBOTICS_BAY,O),(GRAVITIC_DRIVE,N))),
Event('Research Anion Pulse_Crystals',150,150,0,0,90,research,(ANION_PULSE_CRYSTALS,),((FLEET_BEACON,O),(ANION_PULSE_CRYSTALS,N))),
Event('Research Extended Thermal Lance',200,200,0,0,140,research,(EXTENDED_THERMAL_LANCE,),((ROBOTICS_BAY,O),(EXTENDED_THERMAL_LANCE,N))),
Event('Research Psionic Storm',200,200,0,0,110,research,(PSIONIC_STORM,),((TEMPLAR_ARCHIVES,O),(PSIONIC_STORM,N))),
Event('Research Blink',150,150,0,0,170,research,(BLINK,),((TWILIGHT_COUNCIL,O),(BLINK,N))),
Event('Research Graviton Catapult',150,150,0,0,80,research,(GRAVITON_CATAPULT,),((FLEET_BEACON,O),(GRAVITON_CATAPULT,N))),
Event('Research Warp Gate',50,50,0,0,160,research,(WARP_GATE,),((CYBERNETICS_CORE,O),(WARP_GATE,N))),
Event('Give Minerals',50,0,0,0,0,idle,(None,),((COMMAND_CENTER,A),(COMMAND_CENTER,N))),
Event('Give Gas',0,50,0,0,0,idle,(None,),((COMMAND_CENTER,A),(COMMAND_CENTER,N))),
Event('Receive Minerals',0,0,0,0,0,salvage,(50, 0,),((COMMAND_CENTER,A),(COMMAND_CENTER,N))),
Event('Receive Gas',0,0,0,0,0,salvage,(0, 50,),((COMMAND_CENTER,A),(COMMAND_CENTER,N))),
Event('Transform Hellbat',0,0,0,0,4,add,(HELLBAT,),((HELLION,C),(TRANSFORMATION_SERVOS,A))),
Event('Transform Hellion',0,0,0,0,4,add,(HELLION,),((HELLBAT,C),(TRANSFORMATION_SERVOS,A))),
]
energy = {
GHOST : (50,200,MOEBIUS_REACTOR),
MEDIVAC : (50,200,CADUCEUS_REACTOR),
RAVEN : (50,200,CORVID_REACTOR),
BANSHEE : (50,200,None),
BATTLECRUISER : (50,200,BEHEMOTH_REACTOR),
ORBITAL_COMMAND : (50,200,None),
QUEEN : (25,200,None),
OVERSEER : (50,200,None),
INFESTOR : (50,200,PATHOGEN_GLANDS),
VIPER : (50,200,None),
SENTRY : (50,200,None),
PHOENIX : (50,200,None),
HIGH_TEMPLAR : (50,200,None),
MOTHERSHIP : (50,200,None),
MOTHERSHIP_CORE : (50,200,None),
ORACLE : (50,200,None),
NEXUS : (0,100,None),
}
can_be = { # because truck OOP
# this mapping is directional, acyclic, and recursive
BARRACKS : BARRACKS_REACTOR,
BARRACKS_REACTOR : REACTOR_BARRACKS,
REACTOR_BARRACKS : BARRACKS_TECH_LAB,
FACTORY : FACTORY_REACTOR,
FACTORY_REACTOR : REACTOR_FACTORY,
REACTOR_FACTORY : FACTORY_TECH_LAB,
STARPORT : STARPORT_REACTOR,
STARPORT_REACTOR : REACTOR_STARPORT,
REACTOR_STARPORT : STARPORT_TECH_LAB,
COMMAND_CENTER : PLANETARY_FORTRESS,
PLANETARY_FORTRESS : ORBITAL_COMMAND, # planetary fortresses don't unlock anything in particular
HATCHERY : LAIR,
LAIR : HIVE,
OVERLORD : OVERSEER, # I don't know of any requirements here but just in case
}
army_units = { # UNIT: (MINERALS, GAS)
# TERRAN
MARINE : (50,0),
MARAUDER : (100,25),
REAPER : (50,50),
GHOST : (200,100),
HELLION : (100,0),
WIDOW_MINE : (75,25),
SIEGE_TANK : (150,125),
HELLBAT : (100,0),
THOR : (300,200),
VIKING : (150,75),
MEDIVAC : (100,100),
RAVEN : (100,200),
BANSHEE : (150,100),
BATTLECRUISER : (400,300),
# ZERG
ZERGLING : (25,0),
BANELING : (50,25),
ROACH : (75,25),
HYDRALISK : (100,50),
SWARM_HOST : (200,100),
INFESTOR : (100,150),
ULTRALISK : (300,200),
MUTALISK : (100,100),
CORRUPTOR : (150,100),
VIPER : (100,200),
BROOD_LORD : (300,250),
# PROTOSS
ZEALOT : (100,0),
STALKER : (125,50),
SENTRY : (50,100),
HIGH_TEMPLAR : (50,150),
DARK_TEMPLAR : (125,125),
MOTHERSHIP_CORE : (100,100),
IMMORTAL : (250,100),
COLOSSUS : (300,200),
ARCHON : (175,275), # I picked the middle values
PHOENIX : (150,100),
VOID_RAY : (250,150),
ORACLE : (150,150),
CARRIER : (300,200),
TEMPEST : (300,200),
MOTHERSHIP : (400,400),
}
protoss_structures = set([
NEXUS,
PYLON,
GATEWAY,
WARPGATE,
WARPGATE_ON_COOLDOWN,
FORGE,
CYBERNETICS_CORE,
TWILIGHT_COUNCIL,
STARGATE,
TEMPLAR_ARCHIVES,
DARK_SHRINE,
FLEET_BEACON,
ROBOTICS_BAY,
ROBOTICS_FACILITY
])
defensive_units = { # UNIT: (MINERALS, GAS)
PLANETARY_FORTRESS : (150,150), # I don't count the cost of CC because it doesn't count as defensive
MISSILE_TURRET : (125,0),
SENSOR_TOWER : (125,100),
QUEEN : (150,0),
SPINE_CRAWLER : (100,0),
SPORE_CRAWLER : (75,0),
OVERSEER : (50,50), # I don't count the cost of the overlord because the overlord doesn't count as defensive
OBSERVER : (25,75),
PHOTON_CANNON : (150,0),
}
techlab_units = set(
[
TECH_LAB,
BARRACKS_TECH_LAB,
FACTORY_TECH_LAB,
STARPORT_TECH_LAB,
MARAUDER,
GHOST,
SIEGE_TANK,
THOR,
RAVEN,
BANSHEE,
BATTLECRUISER,
COMBAT_SHIELD,
STIMPACK,
CONCUSSIVE_SHELLS,
INFERNAL_PRE_IGNITER,
TRANSFORMATION_SERVOS,
DRILLING_CLAWS,
CADUCEUS_REACTOR,
CORVID_REACTOR,
DURABLE_MATERIALS,
CLOAKING_FIELD
]
)