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