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