sc: drop zero value in spider mine attack data
[sheet.git] / sc-units.inc.pl
1 # time in fastest game seconds
2 my $FPS = 24;  # frames per second
3 # toss shield += .65 per second
4 # zerg regen  += .37 per second
5 [
6
7 # protoss
8
9 {
10 cat => 'base',
11 req => ['nexus'],
12 name => 'Probe',
13 min => 50,
14 gas => 0,
15 build => 20,
16 suit => 1,
17 unit => 1,
18 race => 'protoss',
19 organic => 0,
20 hp => 20,
21 shield => 20,
22 armor => 0,
23 attack => {
24         ground => {
25                 name => "Particle Beam",
26                 damage => 5,
27                 dps => 7,
28                 cooldown => 22,
29         },
30         range => 1,
31 },
32 sight => 8,
33 speed => 14,
34 counter => ['vulture', 'dark templar'],
35 },
36
37 {
38 cat => 'base',
39 req => ['forge'],
40 name => 'Photon Cannon',
41 trans => {
42         nl => 'kanon',
43 },
44 min => 150,
45 gas => 0,
46 build => 50,
47 suit => 3,
48 race => 'protoss',
49 hp => 100,
50 shield => 100,
51 armor => 0,
52 attack => {
53         ground => {
54                 damage => 20,
55                 dps => 27,
56                 cooldown => 22,
57         },
58         air => 'ground',
59         range => 7,
60 },
61 sight => 11,
62 detect => 1,
63 speed => 0,
64 counter => ['zergling', 'tank'],
65 },
66
67 {
68 cat => 'ground',
69 req => ['gateway'],
70 name => 'Zealot',
71 trans => {
72         nl => 'zeloot',
73 },
74 min => 100,
75 gas => 0,
76 build => 40,
77 suit => 1,
78 unit => 2,
79 race => 'protoss',
80 organic => 1,
81 hp => 100,
82 shield => 60,
83 armor => 1,
84 attack => {
85         ground => {
86                 name => "Psi Blades",
87                 damage => [16, 18, 20, 22],
88                 dps => [22, undef, undef, 30],
89                 cooldown => 22,
90         },
91         range => 1,
92 },
93 sight => 7,
94 speed => 11,
95 upgrade => [
96         {
97                 name => 'Leg Enhancements',
98                 speed => 16 - 11,
99                 min => 150,
100                 gas => 150,
101                 build => 133,
102         },
103 ],
104 counter => ['vulture'],
105 },
106
107 {
108 cat => 'ground',
109 req => ['gateway', 'cybernetics core'],
110 name => 'Dragoon',
111 trans => {
112         nl => 'dragonder',
113 },
114 min => 125,
115 gas => 50,
116 build => 50,
117 suit => 3,
118 unit => 2,
119 race => 'protoss',
120 organic => 0,
121 hp => 100,
122 shield => 80,
123 armor => 1,
124 attack => {
125         ground => {
126                 name => "Phase Disruptor",
127                 damage => [20, 22, 24, 26],
128                 dps => [20, 22, 24, 26],
129                 type => 'explosive',
130                 cooldown => 30,
131         },
132         air => 'ground',
133         range => 4,
134 },
135 sight => 8,
136 speed => 15,
137 upgrade => [
138         {
139                 name => 'Singularity Charge',
140                 min => 150,
141                 gas => 150,
142                 build => 166,
143                 attack => {
144                         range => 6 - 4,
145                 },
146         },
147 ],
148 counter => ['zergling', 'zealot', 'tank'],
149 },
150
151 {
152 cat => 'ground',
153 name => 'High Templar',
154 trans => {
155         nl => 'hoge tempelier',
156         eo => 'alta templano',
157 },
158 min => 50,
159 gas => 150,
160 build => 50,
161 suit => 1,
162 unit => 2,
163 race => 'protoss',
164 organic => 1,
165 hp => 40,
166 shield => 40,
167 armor => 0,
168 sight => 7,
169 speed => 9,
170 energy => 200,
171 upgrade => [
172         {
173                 name => "Khaydarin Amulet",
174                 min => 150,
175                 gas => 150,
176                 energy => 250-200,
177         },
178 ],
179 special => [
180         {
181                 name => 'Psionic Storm',
182                 abbr => 'ps',
183                 min => 200,
184                 gas => 200,
185                 build => 120,
186                 desc => 'units in the area will receive upto 112 damage', # 14*8
187                 range => 9,
188                 cost => 75,
189                 duration => 3,
190         },
191         {
192                 name => 'Hallucination',
193                 abbr => 'hl',
194                 min => 150,
195                 gas => 150,
196                 build => 80,
197                 desc => 'creates two illusionary duplicates of a unit for 3 minutes',
198                 range => 7,
199                 cost => 80,
200                 duration => 3*60,
201         },
202 ],
203 counter => ['vulture', 'ultralisk'],
204 },
205
206 {
207 cat => 'ground',
208 name => 'Dark Templar',
209 trans => {
210         nl => 'donkere tempelier',
211         eo => 'malluma templano',
212 },
213 min => 125,
214 gas => 100,
215 build => 50,
216 suit => 1,
217 unit => 2,
218 race => 'protoss',
219 organic => 1,
220 hp => 80,
221 shield => 40,
222 armor => 1,
223 attack => {
224         ground => {
225                 name => "Warp Blades",
226                 damage => [40, 43, 46, 49],
227                 dps => [40, 43, 46, 49],
228                 cooldown => 30,
229         },
230         range => 1,
231 },
232 sight => 7,
233 speed => 15,
234 special => [
235         {
236                 name => 'Cloaked',
237                 abbr => 'cl',
238                 desc => 'cloaked at all times',
239                 duration => -1,
240         },
241 ],
242 },
243
244 {
245 cat => 'psionic',
246 name => 'Archon',
247 trans => {
248         nl => 'archont',
249         eo => 'arĥono',
250 },
251 min => 100,
252 gas => 300,
253 build => 20,
254 base => ['templar', 'templar'],
255 suit => 3,
256 unit => 4,
257 race => 'protoss',
258 organic => 0,
259 hp => 10,
260 shield => 350,
261 armor => 0,
262 attack => {
263         ground => {
264                 name => "Psionic Shockwave",
265                 damage => [30, 33, 36, 39],
266                 dps => [45, undef, undef, 59],
267                 cooldown => 20,
268                 splash => 1,
269         },
270         air => 'ground',
271         range => 2,
272 },
273 sight => 8,
274 speed => 14,
275 },
276
277 {
278 cat => 'psionic',
279 name => 'Dark Archon',
280 trans => {
281         nl => 'donkere archont',
282         eo => 'malluma arĥono',
283 },
284 min => 250,
285 gas => 200,
286 build => 20,
287 base => ['dark templar', 'dark templar'],
288 suit => 3,
289 unit => 4,
290 race => 'protoss',
291 organic => 0,
292 hp => 25,
293 shield => 200,
294 armor => 1,
295 attack => {
296 },
297 sight => 10,
298 speed => 14,
299 energy => 200,
300 upgrade => [
301         {
302                 name => "Argus Talisman",
303                 min => 150,
304                 gas => 150,
305                 build => 166,
306                 energy => 250-200,
307         },
308 ],
309 special => [
310         {
311                 name => 'Feedback',
312                 abbr => 'fb',
313                 desc => 'targeted unit will lose its mana and receive damage equal to that amount',
314                 range => 10,
315                 cost => 50,
316                 duration => 0,
317         },
318         {
319                 name => 'Mind Control',
320                 abbr => 'mc',
321                 min => 200,
322                 gas => 200,
323                 build => 120,
324                 desc => 'permanently gives you control over any unit',
325                 range => 8,
326                 cost => 150,
327                 duration => 0,
328         },
329         {
330                 name => 'Maelstrom',
331                 abbr => 'ms',
332                 min => 100,
333                 gas => 100,
334                 build => 100,
335                 desc => 'field stunning all organic units for a few seconds',
336                 range => 10,
337                 cost => 100,
338                 duration => 180 / $FPS, # 7.5s fastest
339         },
340 ],
341 },
342
343 {
344 cat => 'aerial',
345 name => 'Scout',
346 trans => {
347         nl => 'verkenner',
348         eo => 'esploristo',
349 },
350 min => 275,
351 gas => 125,
352 build => 80,
353 suit => 3,
354 unit => 3,
355 race => 'protoss',
356 organic => 0,
357 air => 1,
358 hp => 150,
359 shield => 100,
360 armor => 0,
361 attack => {
362         ground => {
363                 damage => [8, 9, 10, 11],
364                 dps => [8, 9, 10, 11],
365                 cooldown => 30,
366         },
367         air => {
368                 damage => [28, 30, 32, 34],
369                 dps => [38, undef, undef, 46],
370                 type => 'explosive',
371                 cooldown => 22,
372         },
373         range => 4,
374 },
375 sight => 8,
376 speed => 13,
377 upgrade => [
378         {
379                 name => 'Apial Sensors',
380                 min => 100,
381                 gas => 100,
382                 build => 166,
383                 sight => 10 - 8,
384         },
385         {
386                 name => 'Gravitic Thrusters',
387                 min => 200,
388                 gas => 200,
389                 build => 166,
390                 speed => 18 - 13,
391         },
392 ],
393 },
394
395 {
396 cat => 'aerial',
397 name => 'Corsair',
398 trans => {
399         de => 'Korsar',
400 },
401 min => 150,
402 gas => 100,
403 build => 40,
404 suit => 2,
405 unit => 2,
406 race => 'protoss',
407 organic => 0,
408 air => 1,
409 hp => 100,
410 shield => 80,
411 armor => 1,
412 attack => {
413         air => {
414                 damage => [5, 6, 7, 8],
415                 dps => [19, undef, undef, 30],
416                 cooldown => 8,
417                 splash => 1,
418                 type => 'explosive',
419         },
420         range => 5,
421 },
422 sight => 9,
423 speed => 17,
424 energy => 200,
425 upgrade => [
426         {
427                 name => 'Argus Jewel',
428                 min => 100,
429                 gas => 100,
430                 build => 166,
431                 energy => 250-200,
432         },
433 ],
434 special => [
435         {
436                 name => 'Disruption web',
437                 abbr => 'dw',
438                 min => 200,
439                 gas => 200,
440                 build => 80,
441                 desc => 'creates a field in which no ground unit/structure can attack',
442                 range => 9,
443                 cost => 62-50,
444                 duration => undef, #XXX
445         },
446 ],
447 counter => ['devourer', 'valkyrie'],
448 },
449
450 {
451 cat => 'aerial',
452 name => 'Carrier',
453 trans => {
454         nl => 'vliegdekschip',
455 },
456 min => 350,
457 gas => 250,
458 build => 140,
459 suit => 3,
460 unit => 6,
461 race => 'protoss',
462 organic => 0,
463 hp => 300,
464 shield => 150,
465 armor => 4,
466 attack => {
467         ground => {
468                 dps => [17, undef, undef, 49],
469                 count => 4,
470         },
471         air => 'ground',
472         range => 8,
473 },
474 sight => 11,
475 speed => 10,
476 special => [
477         {
478                 name => 'Build Interceptor',
479                 alt => 'Interceptor',
480                 min => 25,
481                 build => 20,
482                 suit => 1,
483                 unit => 0,
484                 race => 'protoss',
485                 organic => 0,
486                 hp => 40,
487                 shield => 40,
488                 armor => 0,
489                 attack => {
490                         ground => {
491                                 damage => [6, 7, 8, 9],
492                                 dps => [4, 5, 5, 6],
493                                 cooldown => 43, # approximately 37 according to liquipedia
494                                 build => 20,
495                         },
496                         air => 'ground',
497                         range => 0,
498                 },
499                 sight => 0,
500                 range => 0,
501         },
502 ],
503 upgrade => [
504         {
505                 name => 'Carrier Capacity',
506                 damage => {
507                         count => 8-4,
508                 },
509         },
510 ],
511 counter => ['wraith', 'corsair', 'scourge'],
512 },
513
514 {
515 cat => 'aerial',
516 name => 'Arbiter',
517 trans => {
518         nl => 'arbiter',
519 },
520 min => 100,
521 gas => 350,
522 build => 160,
523 suit => 3,
524 unit => 4,
525 race => 'protoss',
526 organic => 0,
527 air => 1,
528 hp => 200,
529 shield => 150,
530 armor => 1,
531 attack => {
532         ground => {
533                 damage => [10, 11, 12, 13],
534                 dps => [7, undef, undef, 9],
535                 cooldown => 45,
536                 type => 'explosive',
537         },
538         air => 'ground',
539         range => 5,
540 },
541 sight => 9,
542 speed => 12,
543 energy => 200,
544 upgrade => [
545         {
546                 name => 'Khaydarin Core',
547                 min => 150,
548                 gas => 150,
549                 build => 166,
550                 energy => 250-200,
551         },
552 ],
553 special => [
554         {
555                 name => 'cloaks',
556                 abbr => 'cs',
557                 desc => 'cloaks nearby friendly units except for other Arbiters',
558                 duration => -1,
559         },
560         {
561                 name => 'Stasis Field',
562                 abbr => 'sf',
563                 min => 150,
564                 gas => 150,
565                 build => 100,
566                 desc => 'traps all non-burrowed units (3x3m) for 40 seconds, making them frozen and undamagable',
567                 cost => 100,
568                 range => 9,
569                 duration => 1000 / $FPS,
570         },
571         {
572                 name => 'Recall',
573                 abbr => 'rc',
574                 min => 150,
575                 gas => 150,
576                 build => 100,
577                 desc => 'creates a 5x5m wormhole which transports units to the Arbiter',
578                 cost => 150,
579                 duration => 0,
580         },
581 ],
582 },
583
584 {
585 cat => 'robotic',
586 name => 'Reaver',
587 min => 200,
588 gas => 100,
589 build => 70,
590 suit => 3,
591 unit => 4,
592 race => 'protoss',
593 organic => 0,
594 hp => 100,
595 shield => 80,
596 armor => 0,
597 attack => {
598         ground => {
599                 damage => 100,
600                 dps => 50,
601                 cooldown => 60,
602                 splash => 1,
603                 cost => 15,
604                 build => 7,
605                 max => 5,
606         },
607         range => 8,
608 },
609 sight => 10,
610 speed => 5,
611 upgrade => [
612         {
613                 name => 'Scarab Damage',
614                 min => 200,
615                 gas => 200,
616                 build => 166,
617                 attack => {
618                         ground => {
619                                 damage => 125 - 100,
620                                 dps => 63 - 50,
621                         },
622                 },
623         },
624         {
625                 attack => {
626                         ground => {
627                                 splash => 2 - 1,
628                         },
629                 },
630         },
631         {
632                 name => 'Increased Reaver Capacity',
633                 min => 200,
634                 gas => 200,
635                 build => 166,
636                 attack => {
637                         ground => {
638                                 max => 10-5,
639                         },
640                 },
641         },
642 ],
643 },
644
645 {
646 cat => 'robotic',
647 name => 'Observer',
648 trans => {
649         nl => 'observeerder',
650 },
651 min => 25,
652 gas => 75,
653 build => 40,
654 suit => 1,
655 unit => 1,
656 race => 'protoss',
657 organic => 0,
658 air => 1,
659 hp => 40,
660 shield => 20,
661 armor => 0,
662 sight => 9,
663 detect => 1,
664 speed => 9,
665 upgrade => [
666         {
667                 name => "Sensor Array",
668                 min => 150,
669                 gas => 150,
670                 build => 133,
671                 sight => 11 - 9,
672         },
673         {
674                 name => "Gravitic Booster",
675                 min => 150,
676                 gas => 150,
677                 build => 166,
678                 speed => 13 - 9,
679         },
680 ],
681 special => [
682         {
683                 name => 'Cloaked',
684                 abbr => 'cl',
685                 desc => 'cloaked at all times',
686                 duration => -1,
687         },
688 ],
689 },
690
691 {
692 cat => 'robotic',
693 name => 'Shuttle',
694 trans => {
695         fr => 'navette',
696 },
697 min => 200,
698 gas => 0,
699 build => 60,
700 suit => 3,
701 unit => 2,
702 race => 'protoss',
703 organic => 0,
704 hp => 80,
705 shield => 60,
706 armor => 1,
707 attack => {
708 },
709 sight => 8,
710 speed => 13,
711 transport => 1,
712 upgrade => [
713         {
714                 name => 'Gravitic Drive',
715                 min => 200,
716                 gas => 200,
717                 build => 166,
718                 speed => 19 - 13,
719         }
720 ],
721 },
722
723 # terran
724
725 {
726 race => 'terran',
727 cat => 'base',
728 name => 'SCV', # T-280 Space Construction Vehicle
729 min => 50,
730 gas => 0,
731 build => 20,
732 suit => 1,
733 unit => 1,
734 race => 'terran',
735 organic => 0,
736 hp =>  60,
737 armor => 0,
738 attack => {
739         ground => {
740                 damage => 5,
741                 dps => 10,
742                 cooldown => 15,
743         },
744         range => 1,
745 },
746 sight => 7,
747 speed => 15,
748 },
749
750 {
751 cat => 'base',
752 name => 'Missile Turret',
753 trans => {
754         nl => 'toren',
755 },
756 min => 75,
757 gas => 0,
758 build => 30,
759 suit => 3,
760 race => 'terran',
761 hp => 200,
762 armor => 0,
763 attack => {
764         air => {
765                 damage => 20,
766                 dps => 40,
767                 cooldown => 15,
768                 type => 'explosive',
769         },
770         range => 7,
771 },
772 sight => 11,
773 detect => 1,
774 speed => 0,
775 },
776
777 {
778 cat => 'barracks',
779 name => 'Marine',
780 trans => {
781         nl => 'marinier',
782 },
783 min => 50,
784 gas => 0,
785 build => 24,
786 suit => 1,
787 unit => 1,
788 race => 'terran',
789 organic => 1,
790 hp =>  40,
791 armor => 0,
792 attack => {
793         ground => {
794                 damage => [6, 7, 8, 9],
795                 dps => [12, undef, undef, 18],
796                 cooldown => 15,
797         },
798         air => 'ground',
799         range => 4,
800 },
801 sight => 7,
802 speed => 11,
803 upgrade => [
804         {
805                 name => 'U-238 Shells',
806                 min => 150,
807                 gas => 150,
808                 build => 100,
809                 attack => {
810                         range => 5 - 4,
811                 },
812         },
813 ],
814 special => [
815         {
816                 name => 'stim pack',
817                 abbr => 'sp',
818                 min => 100,
819                 gas => 100,
820                 build => 80,
821                 desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
822                 speed => 17,
823                 attack => {
824                         ground => {
825                                 cooldown => 7.5,
826                                 dps => [24, undef, undef, 36],
827                         },
828                         air => 'ground',
829                 },
830                 duration => 220 / $FPS,
831         },
832 ],
833 },
834
835 {
836 cat => 'barracks',
837 name => 'Firebat',
838 min => 50,
839 gas => 25,
840 build => 24,
841 suit => 1,
842 unit => 1,
843 race => 'terran',
844 organic => 1,
845 hp =>  50,
846 armor => 1,
847 attack => {
848         ground => {
849                 damage => [16, 18, 20, 22],
850                 dps => [22, undef, undef, 30],
851                 cooldown => 22,
852                 splash => 1,
853                 type => 'implosive',
854         },
855         range => 2,
856 },
857 sight => 7,
858 speed => 11,
859 upgrade => [
860 ],
861 special => [
862         {
863                 name => 'Stim Pack',
864                 abbr => 'sp',
865                 min => 100,
866                 gas => 100,
867                 build => 80,
868                 desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
869                 speed => 17,
870                 attack => {
871                         cooldown => 11,
872                         dps => [44, undef, undef, 60],
873                 },
874                 duration => 220 / $FPS,
875         },
876 ],
877 },
878
879 {
880 cat => 'barracks',
881 name => 'Ghost',
882 trans => {
883         nl => 'geest',
884 },
885 min => 25,
886 gas => 75,
887 build => 50,
888 suit => 1,
889 unit => 1,
890 race => 'terran',
891 organic => 1,
892 hp =>  45,
893 armor => 0,
894 attack => {
895         ground => {
896                 damage => [10, 11, 12, 13],
897                 dps => [14, undef, undef, 18],
898                 cooldown => 22,
899                 type => 'implosive',
900         },
901         air => 'ground',
902         range => 7,
903 },
904 sight => 9,
905 speed => 11,
906 upgrade => [
907         {
908                 name => 'Ocular Implants',
909                 min => 150,
910                 gas => 150,
911                 build => 166,
912                 sight => 11 - 9,
913                 special => {
914                         ns => {
915                                 # nuke
916                                 range => 10-8,
917                         },
918                 },
919         },
920         {
921                 name => 'Moebius Reactor',
922                 min => 150,
923                 gas => 150,
924                 build => 166,
925                 energy => 250-200,
926         },
927 ],
928 energy => 200,
929 special => [
930         {
931                 name => 'Personal Cloaking',
932                 abbr => 'cl',
933                 min => 100,
934                 gas => 100,
935                 build => 80,
936                 desc => 'has the ability to cloak',
937                 cost => 25,
938                 maint => 1, # per second
939         },
940         {
941                 name => 'Lockdown',
942                 abbr => 'ld',
943                 min => 200,
944                 gas => 200,
945                 build => 100,
946                 desc => 'disables a mechanical unit completely for one minute',
947                 range => 8,
948                 cost => 100,
949                 duration => 60,
950         },
951         {
952                 name => 'Nuclear Strike',
953                 abbr => 'ns',
954                 min => 200,
955                 gas => 200,
956                 unit => 8,
957                 desc => 'guides a nuclear missile which will do 500 damage',
958                 duration => 14+3,
959                 range => 8,
960         },
961 ],
962 },
963
964 {
965 cat => 'barracks',
966 name => 'Medic',
967 min => 50,
968 gas => 25,
969 build => 30,
970 suit => 1,
971 unit => 1,
972 race => 'terran',
973 organic => 1,
974 hp =>  60,
975 armor => 1,
976 attack => {
977 },
978 sight => 9,
979 speed => 11,
980 energy => 200,
981 update => [
982         {
983                 name => 'Caduceus Reactor',
984                 min => 150,
985                 gas => 150,
986                 build => 166,
987                 energy => 250-200,
988         },
989 ],
990 special => [
991         {
992                 name => 'Healing',
993                 abbr => 'hl',
994                 desc => 'heals 2 HP of friendly biological units',
995                 range => 2,
996                 cost => 1,
997                 duration => 1,
998         },
999         {
1000                 name => 'Restoration',
1001                 abbr => 'rs',
1002                 min => 100,
1003                 gas => 100,
1004                 build => 80,
1005                 desc => 'removes harmful effects (Lockdown, Flare, Irradiate, Plague, Ensnare, Parasite) from a unit',
1006                 range => 6,
1007                 cost => 50,
1008                 duration => 0,
1009         },
1010         {
1011                 name => 'Optic Flare',
1012                 abbr => 'of',
1013                 min => 100,
1014                 gas => 100,
1015                 build => 80,
1016                 desc => 'reduces the sight of target unit to 1',
1017                 range => 9,
1018                 cost => 75,
1019                 duration => 0,
1020         },
1021 ],
1022 },
1023
1024 {
1025 cat => 'factory',
1026 name => 'Vulture',
1027 trans => {
1028         nl => 'gier',
1029 },
1030 min => 75,
1031 gas => 0,
1032 build => 30,
1033 suit => 2,
1034 unit => 2,
1035 race => 'terran',
1036 organic => 0,
1037 hp =>  80,
1038 armor => 0,
1039 attack => {
1040         ground => {
1041                 damage => [20, 22, 24, 26],
1042                 dps => [20, 22, 24, 26],
1043                 cooldown => 30,
1044                 type => 'implosive',
1045         },
1046         range => 5,
1047 },
1048 sight => 8,
1049 speed => 20,
1050 upgrade => [
1051         {
1052                 name => 'Ion Thrusters',
1053                 min => 100,
1054                 gas => 100,
1055                 build => 100,
1056                 speed => 28 - 20,
1057         },
1058 ],
1059 special => [
1060         {
1061                 name => 'Spider Mine',
1062                 abbr => 'sm',
1063                 min => 100,
1064                 gas => 100,
1065                 build => 80,
1066                 alt => 'Spider Mine',
1067                 desc => 'burrows a mine which will automaticaly target non-hovering enemy units',
1068                 amount => 3,
1069                 organic => 0,
1070                 hp => 20,
1071                 suit => 1,
1072                 armor => 0,
1073                 attack => {
1074                         ground => {
1075                                 damage => 125,
1076                                 splash => 1,
1077                                 type => 'explosive',
1078                         },
1079                         range => 3,
1080                 },
1081                 sight => 3,
1082                 speed => 25,
1083     },
1084 ],
1085 },
1086
1087 {
1088 cat => 'factory',
1089 name => 'Tank',
1090 trans => {
1091         nl => 'tank',
1092 },
1093 min => 150,
1094 gas => 100,
1095 build => 50,
1096 suit => 3,
1097 unit => 2,
1098 race => 'terran',
1099 organic => 0,
1100 hp => 150,
1101 armor => 1,
1102 attack => {
1103         ground => {
1104                 damage => [30, 33, 36, 39],
1105                 dps => [24, undef, undef, 32],
1106                 cooldown => 37,
1107                 type => 'explosive',
1108         },
1109         range => 7,
1110 },
1111 sight => 10,
1112 speed => 12,
1113 special => [
1114         {
1115                 name => 'Siege Mode',
1116                 abbr => 'sg',
1117                 min => 150,
1118                 gas => 150,
1119                 build => 80,
1120                 alt => 'Sieged Tank',
1121                 attack => {
1122                         ground => {
1123                                 damage => [70, 75, 80, 85],
1124                                 dps => [28, 30, 32, 34],
1125                                 cooldown => 75,
1126                                 splash => 1,
1127                                 type => 'explosive',
1128                         },
1129                         range => 12,
1130                 },
1131                 speed => 0,
1132         },
1133 ],
1134 },
1135
1136 {
1137 cat => 'factory',
1138 name => 'Goliath',
1139 trans => {
1140         nl => 'goliat',
1141 },
1142 min => 100,
1143 gas => 50,
1144 build => 40,
1145 suit => 3,
1146 unit => 2,
1147 race => 'terran',
1148 organic => 0,
1149 hp => 125,
1150 armor => 1,
1151 attack => {
1152         ground => {
1153                 damage => [12, 13, 14, 15],
1154                 dps => [16, undef, undef, 20],
1155                 cooldown => 22,
1156         },
1157         air => {
1158                 damage => [20, 24, 28, 32],
1159                 dps => [27, undef, undef, 44],
1160                 type => 'explosive',
1161                 cooldown => 22,
1162         },
1163         range => 5,
1164 },
1165 sight => 8,
1166 speed => 13,
1167 upgrade => [
1168         {
1169                 name => 'Charon Boosters',
1170                 min => 100,
1171                 gas => 100,
1172                 build => 133,
1173                 attack => {
1174 #                       air => {
1175                                 range => 8 - 5,
1176 #                       },
1177                 },
1178         },
1179 ],
1180 },
1181
1182 {
1183 cat => 'starport',
1184 name => 'Wraith',
1185 min => 150,
1186 gas => 100,
1187 build => 60,
1188 suit => 3,
1189 unit => 2,
1190 race => 'terran',
1191 organic => 0,
1192 air => 1,
1193 hp => 120,
1194 armor => 0,
1195 attack => {
1196         ground => {
1197                 damage => [8, 9, 10, 11],
1198                 dps => [8, 9, 10, 11],
1199                 cooldown => 30,
1200         },
1201         air => {
1202                 damage => [20, 22, 24, 26],
1203                 dps => [27, undef, undef, 35],
1204                 cooldown => 22,
1205                 type => 'explosive',
1206         },
1207         range => 5,
1208 },
1209 sight => 7,
1210 speed => 17,
1211 energy => 200,
1212 special => [
1213         {
1214                 name => 'Cloak',
1215                 abbr => 'cl',
1216                 min => 150,
1217                 gas => 150,
1218                 build => 100,
1219                 desc => 'has the ability to cloak',
1220                 cost => 25,
1221                 maint => 1, # /second
1222         },
1223 ],
1224 upgrade => [
1225         {
1226                 name => 'Apollo Reactor',
1227                 min => 200,
1228                 gas => 200,
1229                 build => 166,
1230                 energy => 250-200,
1231         },
1232 ],
1233 },
1234
1235 {
1236 cat => 'starport',
1237 name => 'Battle Cruiser',
1238 trans => {
1239         nl => 'slagkruiser',
1240 },
1241 min => 400,
1242 gas => 300,
1243 build => 133,
1244 suit => 3,
1245 unit => 6,
1246 race => 'terran',
1247 organic => 0,
1248 air => 1,
1249 hp => 500,
1250 armor => 3,
1251 attack => {
1252         ground => {
1253                 damage => [25, 28, 31, 34],
1254                 dps => [25, 28, 31, 34],
1255                 cooldown => 30,
1256         },
1257         air => 'ground',
1258         range => 6,
1259 },
1260 sight => 11,
1261 speed => 7,
1262 energy => 200,
1263 special => [
1264         {
1265                 name => 'Yamato Gun',
1266                 abbr => 'yg',
1267                 min => 100,
1268                 gas => 100,
1269                 build => 120,
1270                 desc => 'blast doing 260 damage to a target',
1271                 attack => {
1272                         ground => {
1273                                 damage => 260,
1274                         },
1275                         air => 'ground',
1276                         range => 10,
1277                 },
1278                 cost => 150,
1279         },
1280 ],
1281 upgrade => [
1282         {
1283                 name => 'Colossus Reactor',
1284                 min => 150,
1285                 gas => 150,
1286                 build => 166,
1287                 energy => 250-200,
1288         },
1289 ],
1290 },
1291
1292 {
1293 cat => 'starport',
1294 name => 'Science Vessel',
1295 trans => {
1296         nl => 'wetenschapsvaartuig',
1297 },
1298 min => 100,
1299 gas => 225,
1300 build => 80,
1301 suit => 3,
1302 unit => 2,
1303 race => 'terran',
1304 organic => 0,
1305 air => 1,
1306 hp => 200,
1307 armor => 1,
1308 sight => 10,
1309 detect => 1,
1310 speed => 15,
1311 energy => 200,
1312 special => [
1313         {
1314                 name => 'Defensive Matrix',
1315                 abbr => 'dm',
1316                 desc => 'gives target unit a shield of 250HP for one minute',
1317                 range => 10,
1318                 cost => 100,
1319                 duration => 55,
1320         },
1321         {
1322                 name => 'EMP Shockwave',
1323                 abbr => 'ep',
1324                 min => 200,
1325                 gas => 200,
1326                 build => 120,
1327                 desc => 'units in 3-matrix radius will lose all energy and shields',
1328                 range => 8,
1329                 cost => 100,
1330         },
1331         {
1332         name => 'Irradiate',
1333                 abbr => 'ir',
1334                 min => 200,
1335                 gas => 200,
1336                 build => 80,
1337                 desc => 'organic units will suffer upto 250 damage over 30s',
1338                 range => 9,
1339                 cost => 75,
1340                 attack => {
1341                         damage => 250,
1342                         splash => 1,
1343                 },
1344                 duration => 25,
1345         },
1346 ],
1347 upgrade => [
1348         {
1349                 name => 'Titan Reactor',
1350                 min => 150,
1351                 gas => 150,
1352                 build => 166,
1353                 energy => 250-200,
1354         },
1355 ],
1356 },
1357
1358 {
1359 cat => 'starport',
1360 name => 'Valkyrie',
1361 trans => {
1362         nl => 'walkure',
1363 },
1364 min => 250,
1365 gas => 125,
1366 build => 50,
1367 suit => 3,
1368 unit => 3,
1369 race => 'terran',
1370 organic => 0,
1371 air => 1,
1372 hp => 200,
1373 armor => 2,
1374 attack => {
1375         air => {
1376                 damage => [6, 7, 8, 9],
1377                 dps => [23, undef, undef, 25],
1378                 cooldown => 64,
1379                 splash => 1,
1380                 type => 'explosive',
1381                 count => 8,
1382         },
1383         range => 6,
1384 },
1385 sight => 8,
1386 speed => 19,
1387 },
1388
1389 {
1390 cat => 'starport',
1391 name => 'Dropship',
1392 min => 100,
1393 gas => 100,
1394 build => 50,
1395 suit => 3,
1396 unit => 2,
1397 race => 'terran',
1398 organic => 0,
1399 air => 1,
1400 hp => 150,
1401 armor => 1,
1402 sight => 8,
1403 speed => 15,
1404 transport => 1,
1405 },
1406
1407 # zerg
1408
1409 {
1410 race => 'zerg',
1411 cat => 'base',
1412 name => 'Drone',
1413 min => 50,
1414 gas => 0,
1415 build => 20,
1416 suit => 1,
1417 unit => 1,
1418 race => 'zerg',
1419 organic => 1,
1420 hp => 40,
1421 armor => 0,
1422 attack => {
1423         ground => {
1424                 damage => 5,
1425                 dps => 7,
1426                 cooldown => 22,
1427         },
1428         range => 1,
1429 },
1430 sight => 7,
1431 speed => 14,
1432 },
1433
1434 {
1435 cat => 'base',
1436 name => 'Overlord',
1437 min => 100,
1438 gas => 0,
1439 build => 40,
1440 suit => 3,
1441 unit => -9,
1442 race => 'zerg',
1443 organic => 1,
1444 air => 1,
1445 hp => 200,
1446 armor => 0,
1447 cargo => 0,
1448 sight => 9,
1449 detect => 1,
1450 speed => 2,
1451 transport => 1,
1452 upgrade => [
1453         {
1454                 name => 'Ventral Sacs',
1455                 min => 200,
1456                 gas => 200,
1457                 build => 160,
1458                 cargo => -8,
1459         },
1460         {
1461                 name => 'Antennae',
1462                 min => 150,
1463                 gas => 150,
1464                 build => 133,
1465                 sight => 11 - 9,
1466         },
1467         {
1468                 name => 'Pneumatized Carapace',
1469                 min => 150,
1470                 gas => 150,
1471                 build => 133,
1472                 speed => 10 - 2,
1473         },
1474 ],
1475 },
1476
1477 {
1478 cat => 'creep',
1479 name => 'Larva',
1480 trans => {
1481         nl => 'larve',
1482 },
1483 build => 20,
1484 suit => 1,
1485 unit => 0,
1486 race => 'zerg',
1487 organic => 1,
1488 hp => 25,
1489 armor => 10,
1490 sight => 4,
1491 speed => 0.1, # more or less
1492 special => [
1493         {
1494                 name => 'transform',
1495                 alt => 'Egg',
1496                 trans => {
1497                         nl => 'ei',
1498                 },
1499                 suit => 3,
1500                 race => 'zerg',
1501                 organic => undef, # unchanged from parent
1502                 hp => 200,
1503                 armor => 10,
1504                 sight => 4,
1505                 speed => 0,
1506         },
1507 ],
1508 },
1509
1510 {
1511 cat => 'creep',
1512 name => 'Sunken Colony',
1513 min => 175,
1514 gas => 0,
1515 build => 20,
1516 suit => 3,
1517 race => 'zerg',
1518 hp => 300,
1519 armor => 2,
1520 attack => {
1521         ground => {
1522                 damage => 40,
1523                 dps => 38,
1524                 cooldown => 32,
1525                 type => 'explosive',
1526         },
1527         range => 7,
1528 },
1529 sight => 10,
1530 speed => 0,
1531 },
1532
1533 {
1534 cat => 'creep',
1535 name => 'Spore Colony',
1536 min => 175,
1537 gas => 0,
1538 build => 20,
1539 suit => 3,
1540 race => 'zerg',
1541 hp => 400,
1542 armor => 0,
1543 attack => {
1544         air => {
1545                 damage => 15,
1546                 dps => 30,
1547                 cooldown => 15,
1548         },
1549         range => 7,
1550 },
1551 sight => 10,
1552 detect => 1,
1553 speed => 0,
1554 },
1555
1556 {
1557 cat => 'hatchery',
1558 name => 'Zergling',
1559 min => 25,
1560 gas => 0,
1561 build => 28, # for 2
1562 suit => 1,
1563 unit => 0.5,
1564 race => 'zerg',
1565 organic => 1,
1566 hp => 35,
1567 armor => 0,
1568 attack => {
1569         ground => {
1570                 damage => [5, 6, 7, 8],
1571                 dps => [18, undef, undef, 29], # 29 is an estimate
1572                 cooldown => 8,
1573         },
1574         range => 1,
1575 },
1576 sight => 5,
1577 speed => 14,
1578 upgrade => [
1579         {
1580                 name => 'Metabolic Boost',
1581                 min => 100,
1582                 gas => 100,
1583                 build => 80,
1584                 speed => 22 - 14,
1585         },
1586         {
1587                 name => 'Adrenal Glands',
1588                 min => 200,
1589                 gas => 200,
1590                 build => 80,
1591                 attack => {
1592                         ground => {
1593                                 cooldown => 6,
1594                                 dps => [undef, undef, undef, 42 - 29],
1595                         },
1596                 },
1597         },
1598 ],
1599 counter => ['archon', 'templar', 'firebat'],
1600 },
1601
1602 {
1603 cat => 'hatchery',
1604 name => 'Hydralisk',
1605 min => 75,
1606 gas => 25,
1607 build => 28,
1608 suit => 2,
1609 unit => 1,
1610 race => 'zerg',
1611 organic => 1,
1612 hp => 80,
1613 armor => 0,
1614 attack => {
1615         ground => {
1616                 damage => [10, 11, 12, 13],
1617                 dps => [20, 22, 24, 26],
1618                 cooldown => 15,
1619                 type => 'explosive',
1620         },
1621         air => 'ground',
1622         range => 4,
1623 },
1624 sight => 6,
1625 speed => 11,
1626 upgrade => [
1627         {
1628                 name => 'Grooved Spines',
1629                 min => 150,
1630                 gas => 150,
1631                 build => 100,
1632                 attack => {
1633                         range => 5 - 4,
1634                 },
1635         },
1636         {
1637                 name => 'Muscular Augments',
1638                 min => 150,
1639                 gas => 150,
1640                 build => 100,
1641                 speed => 16 - 11,
1642         },
1643         {
1644                 name => 'Lurker Aspect',
1645                 min => 200,
1646                 gas => 200,
1647                 build => 120,
1648         },
1649 ],
1650 },
1651
1652 {
1653 cat => 'lair',
1654 name => 'Lurker',
1655 min => 125,
1656 gas => 125,
1657 base => 'hydralisk',
1658 build => 40,
1659 suit => 2,
1660 unit => 2,
1661 race => 'zerg',
1662 organic => 1,
1663 hp => 125,
1664 armor => 1,
1665 attack => {
1666         ground => {
1667                 damage => [20, 22, 24, 26],
1668                 dps => [16, undef, undef, 21],
1669                 cooldown => 37,
1670                 splash => 'line',
1671         },
1672         range => 6,
1673 },
1674 sight => 8,
1675 speed => 17,
1676 },
1677
1678 {
1679 cat => 'lair',
1680 name => 'Queen',
1681 min => 100,
1682 gas => 100,
1683 build => 50,
1684 suit => 2,
1685 unit => 2,
1686 race => 'zerg',
1687 organic => 1,
1688 air => 1,
1689 hp => 120,
1690 armor => 0,
1691 sight => 10,
1692 speed => 18,
1693 energy => 200,
1694 special => [
1695         {
1696                 name => 'Infest CC',
1697                 abbr => 'ic',
1698                 desc => 'assimilate a damaged Terran Command Center to produce infested marines',
1699                 duration => 0,
1700         },
1701         {
1702                 name => 'Parasite',
1703                 abbr => 'ps',
1704                 desc => "shares an infected unit's vision",
1705                 range => 12,
1706                 cost => 75,
1707         },
1708         {
1709                 name => 'Ensnare',
1710                 abbr => 'es',
1711                 min => 100,
1712                 gas => 100,
1713                 build => 80,
1714                 desc => 'slows units downto half speed',
1715                 range => 9,
1716                 cost => 75,
1717                 duration => 25,
1718         },
1719         {
1720                 name => 'Spawn Broodling',
1721                 abbr => 'sb',
1722                 min => 100,
1723                 gas => 100,
1724                 build => 80,
1725                 desc => 'spawn one inside an enemy unit killing it',
1726                 range => 9,
1727                 cost => 150,
1728
1729                 count => 2,
1730                 alt => 'Broodling',
1731                 suit => 1,
1732                 unit => 0,
1733                 organic => 1,
1734                 hp => 30,
1735                 armor => 0,
1736                 attack => {
1737                         ground => {
1738                                 damage => [4, 5, 6, 7],
1739                                 dps => [8, 10, 12, 14],
1740                                 cooldown => 15,
1741                         },
1742                         range => 1,
1743                 },
1744                 sight => 5,
1745                 speed => 19,
1746         },
1747 ],
1748 },
1749
1750 {
1751 cat => 'lair',
1752 name => 'Infested Terran',
1753 min => 100,
1754 gas => 50,
1755 build => 40,
1756 suit => 1,
1757 unit => 1,
1758 race => 'zerg',
1759 organic => 1,
1760 hp => 60,
1761 armor => 0,
1762 attack => {
1763         ground => {
1764                 damage => 500,
1765                 splash => 1,
1766                 type => 'explosive',
1767         },
1768         range => 1,
1769 },
1770 sight => 5,
1771 speed => 17,
1772 },
1773
1774 {
1775 cat => 'lair',
1776 name => 'Scourge',
1777 min => 12,
1778 gas => 38,
1779 build => 30, # for 2
1780 suit => 1,
1781 unit => 0.5,
1782 race => 'zerg',
1783 organic => 1,
1784 air => 1,
1785 hp => 25,
1786 armor => 0,
1787 attack => {
1788         air => {
1789                 damage => 110,
1790         },
1791         range => 1,
1792 },
1793 sight => 5,
1794 speed => 18,
1795 counter => ['cannon', 'goliath', 'hydralisk'],
1796 },
1797
1798 {
1799 cat => 'lair',
1800 name => 'Mutalisk',
1801 min => 100,
1802 gas => 100,
1803 build => 40,
1804 suit => 1,
1805 unit => 2,
1806 race => 'zerg',
1807 organic => 1,
1808 air => 1,
1809 hp => 120,
1810 armor => 0,
1811 attack => {
1812         ground => {
1813                 damage => [9 .. 12],
1814                 dps => [9, 10, 11, 12],
1815                 cooldown => 30,
1816                 splash => 'bounce',
1817         },
1818         air => 'ground',
1819         range => 3,
1820 },
1821 sight => 7,
1822 speed => 18,
1823 special => [
1824         {
1825                 alt => 'Cocoon',
1826                 suit => 3,
1827                 organic => 1,
1828                 hp => 200,
1829                 armor => 0,
1830                 sight => 4,
1831                 speed => 0,
1832         },
1833         #TODO: glaive
1834 ],
1835 counter => ['templar', 'corsair', 'valkyrie'],
1836 },
1837
1838 {
1839 cat => 'hive',
1840 name => 'Guardian',
1841 min => 150,
1842 gas => 200,
1843 build => 40,
1844 base => 'mutalisk',
1845 suit => 3,
1846 unit => 2,
1847 race => 'zerg',
1848 organic => 1,
1849 air => 1,
1850 hp => 150,
1851 armor => 2,
1852 attack => {
1853         ground => {
1854                 damage => [20, 22, 24, 26],
1855                 dps => [20, 22, 24, 26],
1856                 cooldown => 30,
1857         },
1858         range => 8,
1859 },
1860 sight => 11,
1861 speed => 7,
1862 },
1863
1864 {
1865 cat => 'hive',
1866 name => 'Devourer',
1867 min => 250,
1868 gas => 150,
1869 build => 40,
1870 base => 'mutalisk',
1871 suit => 3,
1872 unit => 2,
1873 race => 'zerg',
1874 organic => 1,
1875 air => 1,
1876 hp => 250,
1877 armor => 2,
1878 attack => {
1879         air => {
1880                 damage => [25, 27, 29, 31],
1881                 dps => [8, undef, undef, 9],
1882                 cooldown => 100,
1883                 type => 'explosive',
1884         },
1885         range => 6,
1886 },
1887 sight => 10,
1888 speed => 15,
1889 counter => ['goliath', 'dragoon', 'scourge'],
1890 },
1891
1892 {
1893 cat => 'hive',
1894 name => 'Defiler',
1895 min => 50,
1896 gas => 150,
1897 build => 50,
1898 suit => 2,
1899 unit => 2,
1900 race => 'zerg',
1901 organic => 1,
1902 hp => 80,
1903 armor => 1,
1904 sight => 10,
1905 speed => 12,
1906 energy => 200,
1907 special => [
1908         {
1909                 name => 'Consume',
1910                 abbr => 'cs',
1911                 min => 100,
1912                 gas => 100,
1913                 build => 100,
1914                 desc => 'gain energy by eating one of your own',
1915                 cost => -50,
1916                 duration => 0,
1917         },
1918         {
1919                 name => 'Dark Swarm',
1920                 abbr => 'ds',
1921                 desc => 'protect 6x6m from ranged attacks for 60s',
1922                 range => 9,
1923                 cost => 100,
1924                 duration => 60,
1925         },
1926         {
1927                 name => 'Plague',
1928                 abbr => 'pl',
1929                 min => 200,
1930                 gas => 200,
1931                 build => 100,
1932                 desc => 'anything in its radius will loose 25 HP per second for 12s or until 1 HP left',
1933                 range => 9,
1934                 cost => 150,
1935                 duration => 12,
1936         },
1937 ],
1938 counter => ['archon', 'firebat'],
1939 },
1940
1941 {
1942 cat => 'hive',
1943 name => 'Ultralisk',
1944 min => 200,
1945 gas => 200,
1946 build => 60,
1947 suit => 3,
1948 unit => 4,
1949 race => 'zerg',
1950 organic => 1,
1951 hp => 400,
1952 armor => 1,
1953 attack => {
1954         ground => {
1955                 damage => [20, 23, 26, 29],
1956                 dps => [40, 46, 52, 58],
1957                 cooldown => 15,
1958         },
1959         range => 1,
1960 },
1961 sight => 7,
1962 speed => 16,
1963 upgrade => [
1964         {
1965                 name => 'Chitinous Plating',
1966                 min => 150,
1967                 gas => 150,
1968                 build => 133,
1969                 armor => 2,
1970         },
1971         {
1972                 name => 'Anabolic Synthesis',
1973                 min => 200,
1974                 gas => 200,
1975                 build => 133,
1976                 speed => 21 - 16,
1977         },
1978 ],
1979 },
1980
1981 ]