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