sc: replace bw speed measurements by game data
[sheet.git] / sc-units-bw.inc.pl
1 use utf8;
2 use strict;
3
4 # time in fastest game seconds
5 my $FPS = 24;  # frames per second
6 # toss shield += .65 per second
7 # zerg regen  += .37 per second
8 my $SM = .555;  # 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 => 0,
39         },
40 ],
41 sight => 8,
42 speed => 5 * $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.25 * $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.33 * $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 => 5 * $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 => 5 * $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 => 5 * $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 => 0,
552                 range => 0,
553         },
554 ],
555 upgrade => [
556         {
557                 name => 'Carrier Capacity',
558                 attack => [
559                         {
560                                 dps => [17, undef, undef, 24],
561                                 count => 8-4,
562                         },
563                 ],
564         },
565 ],
566 counter => ['wraith', 'corsair', 'scourge'],
567 },
568
569 {
570 cat => 'aerial',
571 name => 'Arbiter',
572 trans => {
573         nl => 'arbiter',
574 },
575 min => 100,
576 gas => 350,
577 build => 160,
578 suit => 3,
579 pop => 4,
580 race => 'protoss',
581 attr => {
582         mech => 1,
583         flying => 1,
584 },
585 air => 1,
586 hp => 200,
587 shield => 150,
588 armor => 1,
589 attack => [
590         {
591                 anti => 3,
592                 damage => 10,
593                 upgrade => 1,
594                 cooldown => 45 / $FPS,
595                 type => 'explosive',
596                 range => 5,
597         },
598 ],
599 sight => 9,
600 speed => 5 * $SM,
601 energy => 50,
602 capacity => 200,
603 upgrade => [
604         {
605                 name => 'Khaydarin Core',
606                 min => 150,
607                 gas => 150,
608                 build => 166,
609                 energy => 62.5-50,
610                 capacity => 250-200,
611         },
612 ],
613 special => [
614         {
615                 name => 'cloaks',
616                 abbr => 'cs',
617                 desc => 'cloaks nearby friendly units except for other Arbiters',
618                 duration => -1,
619         },
620         {
621                 name => 'Stasis Field',
622                 abbr => 'sf',
623                 min => 150,
624                 gas => 150,
625                 build => 100,
626                 desc => 'traps all non-burrowed units (3x3m) for 40 seconds, making them frozen and undamagable',
627                 cost => 100,
628                 range => 9,
629                 duration => 1000 / $FPS,
630         },
631         {
632                 name => 'Recall',
633                 abbr => 'rc',
634                 min => 150,
635                 gas => 150,
636                 build => 100,
637                 desc => 'creates a 5x5m wormhole which transports units to the Arbiter',
638                 cost => 150,
639                 duration => 0,
640         },
641 ],
642 },
643
644 {
645 cat => 'robotic',
646 name => 'Reaver',
647 min => 200,
648 gas => 100,
649 build => 70,
650 suit => 3,
651 pop => 4,
652 cargo => 4,
653 race => 'protoss',
654 attr => {
655         mech => 1,
656 },
657 hp => 100,
658 shield => 80,
659 armor => 0,
660 attack => [
661         {
662                 anti => 1,
663                 damage => 100,
664                 cooldown => 60 / $FPS, # 30 after drop
665                 splash => 1,
666                 min => 15,
667                 build => 7,
668                 max => 5,
669                 range => 8,
670         },
671 ],
672 sight => 10,
673 speed => 1.77 * $SM,
674 upgrade => [
675         {
676                 name => 'Scarab Damage',
677                 min => 200,
678                 gas => 200,
679                 build => 166,
680                 attack => [
681                         {
682                                 damage => 125 - 100,
683                         },
684                 ],
685         },
686         {
687                 attack => [
688                         {
689                                 splash => 2 - 1,
690                         },
691                 ],
692         },
693         {
694                 name => 'Increased Reaver Capacity',
695                 min => 200,
696                 gas => 200,
697                 build => 166,
698                 attack => [
699                         {
700                                 max => 10-5,
701                         },
702                 ],
703         },
704 ],
705 },
706
707 {
708 cat => 'robotic',
709 name => 'Observer',
710 trans => {
711         nl => 'observeerder',
712 },
713 min => 25,
714 gas => 75,
715 build => 40,
716 suit => 1,
717 pop => 1,
718 race => 'protoss',
719 attr => {
720         mech => 1,
721         flying => 1,
722 },
723 air => 1,
724 hp => 40,
725 shield => 20,
726 armor => 0,
727 sight => 9,
728 detect => 1,
729 speed => 3.33 * $SM,
730 upgrade => [
731         {
732                 name => "Sensor Array",
733                 min => 150,
734                 gas => 150,
735                 build => 133,
736                 sight => 11 - 9,
737         },
738         {
739                 name => "Gravitic Booster",
740                 min => 150,
741                 gas => 150,
742                 build => 166,
743                 speed => (5 - 3.33) * $SM,
744         },
745 ],
746 special => [
747         {
748                 name => 'Cloaked',
749                 abbr => 'cl',
750                 desc => 'cloaked at all times',
751                 duration => -1,
752         },
753 ],
754 },
755
756 {
757 cat => 'robotic',
758 name => 'Shuttle',
759 trans => {
760         fr => 'navette',
761 },
762 min => 200,
763 gas => 0,
764 build => 60,
765 suit => 3,
766 pop => 2,
767 cargo => -8,
768 race => 'protoss',
769 attr => {
770         mech => 1,
771 },
772 hp => 80,
773 shield => 60,
774 armor => 1,
775 sight => 8,
776 speed => 4.44 * $SM,
777 transport => 1,
778 upgrade => [
779         {
780                 name => 'Gravitic Drive',
781                 min => 200,
782                 gas => 200,
783                 build => 166,
784                 speed => (6.67 - 4.44) * $SM,
785         }
786 ],
787 },
788
789 # terran
790
791 {
792 race => 'terran',
793 cat => 'base',
794 name => 'SCV', # T-280 Space Construction Vehicle
795 min => 50,
796 gas => 0,
797 build => 20,
798 suit => 1,
799 pop => 1,
800 cargo => 1,
801 race => 'terran',
802 attr => {
803         mech => 1,
804         organic => 1,
805 },
806 hp =>  60,
807 armor => 0,
808 attack => [
809         {
810                 anti => 1,
811                 damage => 5,
812                 cooldown => 15 / $FPS,
813                 range => 0,
814         },
815 ],
816 sight => 7,
817 speed => 5 * $SM,
818 },
819
820 {
821 cat => 'base',
822 name => 'Missile Turret',
823 trans => {
824         nl => 'toren',
825 },
826 min => 75,
827 gas => 0,
828 build => 30,
829 suit => 3,
830 race => 'terran',
831 attr => {
832         structure => 1,
833 },
834 hp => 200,
835 armor => 0,
836 attack => [
837         {
838                 anti => 2,
839                 damage => 20,
840                 cooldown => 15 / $FPS,
841                 type => 'explosive',
842                 range => 7,
843         },
844 ],
845 sight => 11,
846 detect => 1,
847 speed => 0,
848 },
849
850 {
851 cat => 'barracks',
852 name => 'Marine',
853 trans => {
854         nl => 'marinier',
855 },
856 min => 50,
857 gas => 0,
858 build => 24,
859 suit => 1,
860 pop => 1,
861 cargo => 1,
862 race => 'terran',
863 attr => {
864         organic => 1,
865 },
866 hp =>  40,
867 armor => 0,
868 attack => [
869         {
870                 anti => 3,
871                 damage => 6,
872                 upgrade => 1,
873                 cooldown => 15 / $FPS,
874                 range => 4,
875         },
876 ],
877 sight => 7,
878 speed => 4 * $SM,
879 upgrade => [
880         {
881                 name => 'U-238 Shells',
882                 min => 150,
883                 gas => 150,
884                 build => 100,
885                 attack => [
886                         {
887                                 range => 5 - 4,
888                         },
889                 ],
890         },
891 ],
892 special => [
893         {
894                 name => 'Stim Pack',
895                 abbr => 'sp',
896                 min => 100,
897                 gas => 100,
898                 build => 80,
899                 desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
900                 speed => (6 - 4) * $SM,
901                 attack => [
902                         {
903                                 anti => 3,
904                                 cooldown => 7.5 / $FPS,
905                         },
906                 ],
907                 duration => 220 / $FPS,
908         },
909 ],
910 },
911
912 {
913 cat => 'barracks',
914 name => 'Firebat',
915 min => 50,
916 gas => 25,
917 build => 24,
918 suit => 1,
919 pop => 1,
920 cargo => 1,
921 race => 'terran',
922 attr => {
923         organic => 1,
924 },
925 hp =>  50,
926 armor => 1,
927 attack => [
928         {
929                 anti => 1,
930                 damage => 16,
931                 upgrade => 2,
932                 cooldown => 22 / $FPS,
933                 splash => 1,
934                 type => 'implosive',
935                 range => 2,
936         },
937 ],
938 sight => 7,
939 speed => 4 * $SM,
940 upgrade => [
941 ],
942 special => [
943         {
944                 name => 'Stim Pack',
945                 abbr => 'sp',
946                 min => 100,
947                 gas => 100,
948                 build => 80,
949                 desc => 'doubles attack speed and faster movement for a few seconds at the cost of 10 health',
950                 speed => (6 - 4) * $SM,
951                 attack => [
952                         {
953                                 anti => 1,
954                                 cooldown => 11 / $FPS,
955                         },
956                 ],
957                 duration => 220 / $FPS,
958         },
959 ],
960 },
961
962 {
963 cat => 'barracks',
964 name => 'Ghost',
965 trans => {
966         nl => 'geest',
967 },
968 min => 25,
969 gas => 75,
970 build => 50,
971 suit => 1,
972 pop => 1,
973 cargo => 1,
974 race => 'terran',
975 attr => {
976         organic => 1,
977 },
978 hp =>  45,
979 armor => 0,
980 attack => [
981         {
982                 anti => 3,
983                 damage => 10,
984                 upgrade => 1,
985                 cooldown => 22 / $FPS,
986                 type => 'implosive',
987                 range => 7,
988         },
989 ],
990 sight => 9,
991 speed => 4 * $SM,
992 energy => 50,
993 capacity => 200,
994 upgrade => [
995         {
996                 name => 'Ocular Implants',
997                 min => 150,
998                 gas => 150,
999                 build => 166,
1000                 sight => 11 - 9,
1001 #               special => {
1002 #                       ns => {
1003 #                               # nuke
1004 #                               range => 10-8,
1005 #                       },
1006 #               },
1007         },
1008         {
1009                 name => 'Moebius Reactor',
1010                 min => 150,
1011                 gas => 150,
1012                 build => 166,
1013                 energy => 62.5-50,
1014                 capacity => 250-200,
1015         },
1016 ],
1017 special => [
1018         {
1019                 name => 'Personal Cloaking',
1020                 abbr => 'cl',
1021                 min => 100,
1022                 gas => 100,
1023                 build => 80,
1024                 desc => 'has the ability to cloak',
1025                 cost => 25,
1026                 maint => 1, # per second
1027         },
1028         {
1029                 name => 'Lockdown',
1030                 abbr => 'ld',
1031                 min => 200,
1032                 gas => 200,
1033                 build => 100,
1034                 desc => 'disables a mechanical unit completely for one minute',
1035                 range => 8,
1036                 cost => 100,
1037                 duration => 60,
1038         },
1039         {
1040                 name => 'Nuclear Strike',
1041                 abbr => 'ns',
1042                 min => 200,
1043                 gas => 200,
1044                 pop => 8,
1045                 desc => 'guides a nuclear missile which will do 500 damage',
1046                 duration => 14+3,
1047                 range => 8,
1048         },
1049 ],
1050 },
1051
1052 {
1053 cat => 'barracks',
1054 name => 'Medic',
1055 min => 50,
1056 gas => 25,
1057 build => 30,
1058 suit => 1,
1059 pop => 1,
1060 cargo => 1,
1061 race => 'terran',
1062 attr => {
1063         organic => 1,
1064 },
1065 hp =>  60,
1066 armor => 1,
1067 sight => 9,
1068 speed => 4 * $SM,
1069 energy => 50,
1070 capacity => 200,
1071 upgrade => [
1072         {
1073                 name => 'Caduceus Reactor',
1074                 min => 150,
1075                 gas => 150,
1076                 build => 166,
1077                 energy => 62.5-50,
1078                 capacity => 250-200,
1079         },
1080 ],
1081 special => [
1082         {
1083                 name => 'Healing',
1084                 abbr => 'hl',
1085                 desc => 'heals 2 HP of friendly biological units',
1086                 range => 2,
1087                 cost => 1,
1088                 duration => 1,
1089         },
1090         {
1091                 name => 'Restoration',
1092                 abbr => 'rs',
1093                 min => 100,
1094                 gas => 100,
1095                 build => 80,
1096                 desc => 'removes harmful effects (Lockdown, Flare, Irradiate, Plague, Ensnare, Parasite) from a unit',
1097                 range => 6,
1098                 cost => 50,
1099                 duration => 0,
1100         },
1101         {
1102                 name => 'Optic Flare',
1103                 abbr => 'of',
1104                 min => 100,
1105                 gas => 100,
1106                 build => 80,
1107                 desc => 'reduces the sight of target unit to 1',
1108                 range => 9,
1109                 cost => 75,
1110                 duration => 0,
1111         },
1112 ],
1113 },
1114
1115 {
1116 cat => 'factory',
1117 name => 'Vulture',
1118 trans => {
1119         nl => 'gier',
1120 },
1121 min => 75,
1122 gas => 0,
1123 build => 30,
1124 suit => 2,
1125 pop => 2,
1126 cargo => 2,
1127 race => 'terran',
1128 attr => {
1129         mech => 1,
1130 },
1131 hp =>  80,
1132 armor => 0,
1133 attack => [
1134         {
1135                 anti => 1,
1136                 damage => 20,
1137                 upgrade => 2,
1138                 cooldown => 30 / $FPS,
1139                 type => 'implosive',
1140                 range => 5,
1141         },
1142 ],
1143 sight => 8,
1144 speed => 6.67 * $SM,
1145 upgrade => [
1146         {
1147                 name => 'Ion Thrusters',
1148                 min => 100,
1149                 gas => 100,
1150                 build => 100,
1151                 speed => (10 - 6.67) * $SM,
1152         },
1153 ],
1154 special => [
1155         {
1156                 name => 'Spider Mine',
1157                 abbr => 'sm',
1158                 min => 100,
1159                 gas => 100,
1160                 build => 80,
1161                 alt => 'Spider Mine',
1162                 desc => 'burrows a mine which will automaticaly target non-hovering enemy units',
1163                 amount => 3,
1164                 attr => {
1165                         mech => 1,
1166                 },
1167                 hp => 20,
1168                 suit => 1,
1169                 armor => 0,
1170                 attack => [
1171                         {
1172                                 anti => 1,
1173                                 damage => 125,
1174                                 splash => 1,
1175                                 type => 'explosive',
1176                                 range => 3,
1177                         },
1178                 ],
1179                 sight => 3,
1180                 speed => 9 * $SM, #XXX
1181     },
1182 ],
1183 },
1184
1185 {
1186 cat => 'factory',
1187 name => 'Tank',
1188 trans => {
1189         nl => 'tank',
1190 },
1191 min => 150,
1192 gas => 100,
1193 build => 50,
1194 suit => 3,
1195 pop => 2,
1196 cargo => 4,
1197 race => 'terran',
1198 attr => {
1199         mech => 1,
1200 },
1201 hp => 150,
1202 armor => 1,
1203 attack => [
1204         {
1205                 anti => 1,
1206                 damage => 30,
1207                 upgrade => 3,
1208                 cooldown => 37 / $FPS, # 15 after drop
1209                 type => 'explosive',
1210                 range => 7,
1211         },
1212 ],
1213 sight => 10,
1214 speed => 4 * $SM,
1215 special => [
1216         {
1217                 name => 'Siege Mode',
1218                 abbr => 'sg',
1219                 min => 150,
1220                 gas => 150,
1221                 build => 80,
1222                 alt => 'Sieged Tank',
1223                 attack => [
1224                         {
1225                                 anti => 1,
1226                                 damage => 70,
1227                                 upgrade => 5,
1228                                 cooldown => 75 / $FPS,
1229                                 splash => 1,
1230                                 type => 'explosive',
1231                                 range => 12,
1232                         },
1233                 ],
1234                 speed => 0,
1235         },
1236 ],
1237 },
1238
1239 {
1240 cat => 'factory',
1241 name => 'Goliath',
1242 trans => {
1243         nl => 'goliat',
1244 },
1245 min => 100,
1246 gas => 50,
1247 build => 40,
1248 suit => 3,
1249 pop => 2,
1250 cargo => 2,
1251 race => 'terran',
1252 attr => {
1253         mech => 1,
1254 },
1255 hp => 125,
1256 armor => 1,
1257 attack => [
1258         {
1259                 anti => 1,
1260                 damage => 12,
1261                 upgrade => 1,
1262                 cooldown => 22 / $FPS, # 15 after drop
1263                 range => 5,
1264         },
1265         {
1266                 anti => 2,
1267                 damage => 20,
1268                 upgrade => 4,
1269                 type => 'explosive',
1270                 cooldown => 22 / $FPS,
1271                 range => 5,
1272         },
1273 ],
1274 sight => 8,
1275 speed => 4.7 * $SM,
1276 upgrade => [
1277         {
1278                 name => 'Charon Boosters',
1279                 min => 100,
1280                 gas => 100,
1281                 build => 133,
1282                 attack => [
1283                         {},
1284                         {
1285                                 range => 8 - 5,
1286                         },
1287                 ],
1288         },
1289 ],
1290 },
1291
1292 {
1293 cat => 'starport',
1294 name => 'Wraith',
1295 min => 150,
1296 gas => 100,
1297 build => 60,
1298 suit => 3,
1299 pop => 2,
1300 race => 'terran',
1301 attr => {
1302         mech => 1,
1303         flying => 1,
1304 },
1305 air => 1,
1306 hp => 120,
1307 armor => 0,
1308 attack => [
1309         {
1310                 anti => 1,
1311                 damage => 8,
1312                 upgrade => 1,
1313                 cooldown => 30 / $FPS,
1314                 range => 5,
1315         },
1316         {
1317                 anti => 2,
1318                 damage => 20,
1319                 upgrade => 2,
1320                 cooldown => 22 / $FPS,
1321                 type => 'explosive',
1322                 range => 5,
1323         },
1324 ],
1325 sight => 7,
1326 speed => 6.67 * $SM,
1327 energy => 50,
1328 capacity => 200,
1329 special => [
1330         {
1331                 name => 'Cloak',
1332                 abbr => 'cl',
1333                 min => 150,
1334                 gas => 150,
1335                 build => 100,
1336                 desc => 'has the ability to cloak',
1337                 cost => 25,
1338                 maint => 1, # /second
1339         },
1340 ],
1341 upgrade => [
1342         {
1343                 name => 'Apollo Reactor',
1344                 min => 200,
1345                 gas => 200,
1346                 build => 166,
1347                 energy => 62.5-50,
1348                 capacity => 250-200,
1349         },
1350 ],
1351 },
1352
1353 {
1354 cat => 'starport',
1355 name => 'Battle Cruiser',
1356 trans => {
1357         nl => 'slagkruiser',
1358 },
1359 min => 400,
1360 gas => 300,
1361 build => 133,
1362 suit => 3,
1363 pop => 6,
1364 race => 'terran',
1365 attr => {
1366         mech => 1,
1367         flying => 1,
1368 },
1369 air => 1,
1370 hp => 500,
1371 armor => 3,
1372 attack => [
1373         {
1374                 anti => 3,
1375                 damage => 25,
1376                 upgrade => 3,
1377                 cooldown => 30 / $FPS,
1378                 range => 6,
1379         },
1380 ],
1381 sight => 11,
1382 speed => 2.5 * $SM,
1383 energy => 50,
1384 capacity => 200,
1385 special => [
1386         {
1387                 name => 'Yamato Gun',
1388                 abbr => 'yg',
1389                 min => 100,
1390                 gas => 100,
1391                 build => 120,
1392                 desc => 'blast doing 260 damage to a target',
1393                 attack => [
1394                         {
1395                                 anti => 3,
1396                                 damage => 260,
1397                                 range => 10,
1398                         },
1399                 ],
1400                 cost => 150,
1401         },
1402 ],
1403 upgrade => [
1404         {
1405                 name => 'Colossus Reactor',
1406                 min => 150,
1407                 gas => 150,
1408                 build => 166,
1409                 energy => 62.5-50,
1410                 capacity => 250-200,
1411         },
1412 ],
1413 },
1414
1415 {
1416 cat => 'starport',
1417 name => 'Science Vessel',
1418 trans => {
1419         nl => 'wetenschapsvaartuig',
1420 },
1421 min => 100,
1422 gas => 225,
1423 build => 80,
1424 suit => 3,
1425 pop => 2,
1426 race => 'terran',
1427 attr => {
1428         mech => 1,
1429         flying => 1,
1430 },
1431 air => 1,
1432 hp => 200,
1433 armor => 1,
1434 sight => 10,
1435 detect => 1,
1436 speed => 5 * $SM,
1437 energy => 50,
1438 capacity => 200,
1439 special => [
1440         {
1441                 name => 'Defensive Matrix',
1442                 abbr => 'dm',
1443                 desc => 'gives target unit a shield of 250HP for one minute',
1444                 range => 10,
1445                 cost => 100,
1446                 duration => 55,
1447         },
1448         {
1449                 name => 'EMP Shockwave',
1450                 abbr => 'ep',
1451                 min => 200,
1452                 gas => 200,
1453                 build => 120,
1454                 desc => 'units in 3-matrix radius will lose all energy and shields',
1455                 range => 8,
1456                 cost => 100,
1457         },
1458         {
1459         name => 'Irradiate',
1460                 abbr => 'ir',
1461                 min => 200,
1462                 gas => 200,
1463                 build => 80,
1464                 desc => 'organic units will suffer upto 250 damage over 30s',
1465                 range => 9,
1466                 cost => 75,
1467                 attack => {
1468                         damage => 250,
1469                         splash => 1,
1470                 },
1471                 duration => 25,
1472         },
1473 ],
1474 upgrade => [
1475         {
1476                 name => 'Titan Reactor',
1477                 min => 150,
1478                 gas => 150,
1479                 build => 166,
1480                 energy => 62.5-50,
1481                 capacity => 250-200,
1482         },
1483 ],
1484 },
1485
1486 {
1487 cat => 'starport',
1488 name => 'Valkyrie',
1489 trans => {
1490         nl => 'walkure',
1491 },
1492 min => 250,
1493 gas => 125,
1494 build => 50,
1495 suit => 3,
1496 pop => 3,
1497 race => 'terran',
1498 attr => {
1499         mech => 1,
1500         flying => 1,
1501 },
1502 air => 1,
1503 hp => 200,
1504 armor => 2,
1505 attack => [
1506         {
1507                 anti => 2,
1508                 damage => 6,
1509                 upgrade => 1,
1510                 cooldown => 64 / $FPS,
1511                 splash => 1,
1512                 type => 'explosive',
1513                 count => 8,
1514                 range => 6,
1515         },
1516 ],
1517 sight => 8,
1518 speed => 6.6 * $SM,
1519 },
1520
1521 {
1522 cat => 'starport',
1523 name => 'Dropship',
1524 min => 100,
1525 gas => 100,
1526 build => 50,
1527 suit => 3,
1528 pop => 2,
1529 cargo => -8,
1530 race => 'terran',
1531 attr => {
1532         mech => 1,
1533         flying => 1,
1534 },
1535 air => 1,
1536 hp => 150,
1537 armor => 1,
1538 sight => 8,
1539 speed => 5.47 * $SM,
1540 transport => 1,
1541 },
1542
1543 # zerg
1544
1545 {
1546 race => 'zerg',
1547 cat => 'base',
1548 name => 'Drone',
1549 min => 50,
1550 gas => 0,
1551 build => 20,
1552 suit => 1,
1553 pop => 1,
1554 cargo => 1,
1555 race => 'zerg',
1556 attr => {
1557         organic => 1,
1558 },
1559 hp => 40,
1560 armor => 0,
1561 attack => [
1562         {
1563                 anti => 1,
1564                 damage => 5,
1565                 cooldown => 22 / $FPS,
1566                 range => 0,
1567         },
1568 ],
1569 sight => 7,
1570 speed => 5 * $SM,
1571 },
1572
1573 {
1574 cat => 'base',
1575 name => 'Overlord',
1576 min => 100,
1577 gas => 0,
1578 build => 40,
1579 suit => 3,
1580 pop => -9,
1581 cargo => 0,
1582 race => 'zerg',
1583 attr => {
1584         organic => 1,
1585         flying => 1,
1586 },
1587 air => 1,
1588 hp => 200,
1589 armor => 0,
1590 cargo => 0,
1591 sight => 9,
1592 detect => 1,
1593 speed => .83 * $SM,
1594 transport => 1,
1595 upgrade => [
1596         {
1597                 name => 'Ventral Sacs',
1598                 min => 200,
1599                 gas => 200,
1600                 build => 160,
1601                 cargo => -8,
1602         },
1603         {
1604                 name => 'Antennae',
1605                 min => 150,
1606                 gas => 150,
1607                 build => 133,
1608                 sight => 11 - 9,
1609         },
1610         {
1611                 name => 'Pneumatized Carapace',
1612                 min => 150,
1613                 gas => 150,
1614                 build => 133,
1615                 speed => (3.33 - .83) * $SM,
1616         },
1617 ],
1618 },
1619
1620 {
1621 cat => 'creep',
1622 name => 'Larva',
1623 trans => {
1624         nl => 'larve',
1625 },
1626 build => 20,
1627 suit => 1,
1628 pop => 0,
1629 race => 'zerg',
1630 attr => {
1631         organic => 1,
1632 },
1633 hp => 25,
1634 armor => 10,
1635 sight => 4,
1636 speed => 0.1, # more or less
1637 special => [
1638         {
1639                 name => 'transform',
1640                 alt => 'Egg',
1641                 trans => {
1642                         nl => 'ei',
1643                 },
1644                 suit => 3,
1645                 race => 'zerg',
1646                 organic => undef, # unchanged from parent
1647                 hp => 200,
1648                 armor => 10,
1649                 sight => 4,
1650                 speed => 0,
1651         },
1652 ],
1653 },
1654
1655 {
1656 cat => 'creep',
1657 name => 'Sunken Colony',
1658 min => 175,
1659 gas => 0,
1660 build => 20,
1661 suit => 3,
1662 race => 'zerg',
1663 attr => {
1664         structure => 1,
1665 },
1666 hp => 300,
1667 armor => 2,
1668 attack => [
1669         {
1670                 anti => 1,
1671                 damage => 40,
1672                 cooldown => 32 / $FPS,
1673                 type => 'explosive',
1674                 range => 7,
1675         },
1676 ],
1677 sight => 10,
1678 speed => 0,
1679 },
1680
1681 {
1682 cat => 'creep',
1683 name => 'Spore Colony',
1684 min => 175,
1685 gas => 0,
1686 build => 20,
1687 suit => 3,
1688 race => 'zerg',
1689 attr => {
1690         structure => 1,
1691 },
1692 hp => 400,
1693 armor => 0,
1694 attack => [
1695         {
1696                 anti => 2,
1697                 damage => 15,
1698                 cooldown => 15 / $FPS,
1699                 range => 7,
1700         },
1701 ],
1702 sight => 10,
1703 detect => 1,
1704 speed => 0,
1705 },
1706
1707 {
1708 cat => 'hatchery',
1709 name => 'Zergling',
1710 min => 25,
1711 gas => 0,
1712 build => 28, # for 2
1713 suit => 1,
1714 pop => 0.5,
1715 cargo => 1,
1716 race => 'zerg',
1717 attr => {
1718         organic => 1,
1719 },
1720 hp => 35,
1721 armor => 0,
1722 attack => [
1723         {
1724                 anti => 1,
1725                 damage => 5,
1726                 upgrade => 1,
1727                 cooldown => 8 / $FPS,
1728                 range => 0,
1729         },
1730 ],
1731 sight => 5,
1732 speed => 5.57 * $SM,
1733 upgrade => [
1734         {
1735                 name => 'Metabolic Boost',
1736                 min => 100,
1737                 gas => 100,
1738                 build => 80,
1739                 speed => (8.36 - 5.57) * $SM,
1740         },
1741         {
1742                 name => 'Adrenal Glands',
1743                 min => 200,
1744                 gas => 200,
1745                 build => 80,
1746                 attack => [
1747                         {
1748                                 cooldown => (6 - 8) / $FPS,
1749                         },
1750                 ],
1751         },
1752 ],
1753 counter => ['archon', 'templar', 'firebat'],
1754 },
1755
1756 {
1757 cat => 'hatchery',
1758 name => 'Hydralisk',
1759 min => 75,
1760 gas => 25,
1761 build => 28,
1762 suit => 2,
1763 pop => 1,
1764 cargo => 2,
1765 race => 'zerg',
1766 attr => {
1767         organic => 1,
1768 },
1769 hp => 80,
1770 armor => 0,
1771 attack => [
1772         {
1773                 anti => 3,
1774                 damage => 10,
1775                 upgrade => 1,
1776                 cooldown => 15 / $FPS,
1777                 type => 'explosive',
1778                 range => 4,
1779         },
1780 ],
1781 sight => 6,
1782 speed => 3.71 * $SM,
1783 upgrade => [
1784         {
1785                 name => 'Grooved Spines',
1786                 min => 150,
1787                 gas => 150,
1788                 build => 100,
1789                 attack => [
1790                         {
1791                                 range => 5 - 4,
1792                         },
1793                 ],
1794         },
1795         {
1796                 name => 'Muscular Augments',
1797                 min => 150,
1798                 gas => 150,
1799                 build => 100,
1800                 speed => (5.57 - 3.71) * $SM,
1801         },
1802         {
1803                 name => 'Lurker Aspect',
1804                 min => 200,
1805                 gas => 200,
1806                 build => 120,
1807         },
1808 ],
1809 },
1810
1811 {
1812 cat => 'lair',
1813 name => 'Lurker',
1814 min => 125,
1815 gas => 125,
1816 base => 'hydralisk',
1817 build => 40,
1818 suit => 2,
1819 pop => 2,
1820 cargo => 4,
1821 race => 'zerg',
1822 attr => {
1823         organic => 1,
1824 },
1825 hp => 125,
1826 armor => 1,
1827 attack => [
1828         {
1829                 anti => 1,
1830                 damage => 20,
1831                 upgrade => 2,
1832                 cooldown => 37 / $FPS,
1833                 splash => 'line',
1834                 range => 6,
1835         },
1836 ],
1837 sight => 8,
1838 speed => 6 * $SM,
1839 },
1840
1841 {
1842 cat => 'lair',
1843 name => 'Queen',
1844 min => 100,
1845 gas => 100,
1846 build => 50,
1847 suit => 2,
1848 pop => 2,
1849 race => 'zerg',
1850 attr => {
1851         organic => 1,
1852         flying => 1,
1853 },
1854 air => 1,
1855 hp => 120,
1856 armor => 0,
1857 sight => 10,
1858 speed => 6.67 * $SM,
1859 energy => 50,
1860 capacity => 200,
1861 special => [
1862         {
1863                 name => 'Infest CC',
1864                 abbr => 'ic',
1865                 desc => 'assimilate a damaged Terran Command Center to produce infested marines',
1866                 duration => 0,
1867         },
1868         {
1869                 name => 'Parasite',
1870                 abbr => 'ps',
1871                 desc => "shares an infected unit's vision",
1872                 range => 12,
1873                 cost => 75,
1874         },
1875         {
1876                 name => 'Ensnare',
1877                 abbr => 'es',
1878                 min => 100,
1879                 gas => 100,
1880                 build => 80,
1881                 desc => 'slows units downto half speed',
1882                 range => 9,
1883                 cost => 75,
1884                 duration => 25,
1885         },
1886         {
1887                 name => 'Spawn Broodling',
1888                 abbr => 'sb',
1889                 min => 100,
1890                 gas => 100,
1891                 build => 80,
1892                 desc => 'spawn one inside an enemy unit killing it',
1893                 range => 9,
1894                 cost => 150,
1895
1896                 count => 2,
1897                 alt => 'Broodling',
1898                 suit => 1,
1899                 pop => 0,
1900                 attr => {
1901                         organic => 1,
1902                 },
1903                 hp => 30,
1904                 armor => 0,
1905                 attack => [
1906                         {
1907                                 anti => 1,
1908                                 damage => 4,
1909                                 upgrade => 1,
1910                                 cooldown => 15 / $FPS,
1911                                 range => 0,
1912                         },
1913                 ],
1914                 sight => 5,
1915                 speed => 6.04 * $SM,
1916         },
1917 ],
1918 },
1919
1920 {
1921 cat => 'lair',
1922 name => 'Infested Terran',
1923 min => 100,
1924 gas => 50,
1925 build => 40,
1926 suit => 1,
1927 pop => 1,
1928 race => 'zerg',
1929 attr => {
1930         organic => 1,
1931 },
1932 hp => 60,
1933 armor => 0,
1934 attack => [
1935         {
1936                 anti => 1,
1937                 damage => 500,
1938                 splash => 1,
1939                 type => 'explosive',
1940                 range => 0,
1941         },
1942 ],
1943 sight => 5,
1944 speed => 6 * $SM,
1945 },
1946
1947 {
1948 cat => 'lair',
1949 name => 'Scourge',
1950 min => 12,
1951 gas => 38,
1952 build => 30, # for 2
1953 suit => 1,
1954 pop => 0.5,
1955 race => 'zerg',
1956 attr => {
1957         organic => 1,
1958         flying => 1,
1959 },
1960 air => 1,
1961 hp => 25,
1962 armor => 0,
1963 attack => [
1964         {
1965                 anti => 2,
1966                 damage => 110,
1967                 range => 0,
1968         },
1969 ],
1970 sight => 5,
1971 speed => 6.67 * $SM,
1972 counter => ['cannon', 'goliath', 'hydralisk'],
1973 },
1974
1975 {
1976 cat => 'lair',
1977 name => 'Mutalisk',
1978 min => 100,
1979 gas => 100,
1980 build => 40,
1981 suit => 1,
1982 pop => 2,
1983 race => 'zerg',
1984 attr => {
1985         organic => 1,
1986         flying => 1,
1987 },
1988 air => 1,
1989 hp => 120,
1990 armor => 0,
1991 attack => [
1992         {
1993                 anti => 3,
1994                 damage => 9,
1995                 upgrade => 1,
1996                 cooldown => 30 / $FPS,
1997                 splash => 'bounce',
1998                 range => 3,
1999         },
2000 ],
2001 sight => 7,
2002 speed => 6.67 * $SM,
2003 special => [
2004         {
2005                 alt => 'Cocoon',
2006                 suit => 3,
2007                 attr => {
2008                         organic => 1,
2009                         flying => 1,
2010                 },
2011                 hp => 200,
2012                 armor => 0,
2013                 sight => 4,
2014                 speed => 0,
2015         },
2016         #TODO: glaive
2017 ],
2018 counter => ['templar', 'corsair', 'valkyrie'],
2019 },
2020
2021 {
2022 cat => 'hive',
2023 name => 'Guardian',
2024 min => 150,
2025 gas => 200,
2026 build => 40,
2027 base => 'mutalisk',
2028 suit => 3,
2029 pop => 2,
2030 race => 'zerg',
2031 attr => {
2032         organic => 1,
2033         flying => 1,
2034 },
2035 air => 1,
2036 hp => 150,
2037 armor => 2,
2038 attack => [
2039         {
2040                 anti => 1,
2041                 damage => 20,
2042                 upgrade => 2,
2043                 cooldown => 30 / $FPS,
2044                 range => 8,
2045         },
2046 ],
2047 sight => 11,
2048 speed => 2.5 * $SM,
2049 },
2050
2051 {
2052 cat => 'hive',
2053 name => 'Devourer',
2054 min => 250,
2055 gas => 150,
2056 build => 40,
2057 base => 'mutalisk',
2058 suit => 3,
2059 pop => 2,
2060 race => 'zerg',
2061 attr => {
2062         organic => 1,
2063         flying => 1,
2064 },
2065 air => 1,
2066 hp => 250,
2067 armor => 2,
2068 attack => [
2069         {
2070                 anti => 2,
2071                 damage => 25,
2072                 upgrade => 2,
2073                 cooldown => 100 / $FPS,
2074                 type => 'explosive',
2075                 range => 6,
2076         },
2077 ],
2078 sight => 10,
2079 speed => 5 * $SM,
2080 counter => ['goliath', 'dragoon', 'scourge'],
2081 },
2082
2083 {
2084 cat => 'hive',
2085 name => 'Defiler',
2086 min => 50,
2087 gas => 150,
2088 build => 50,
2089 suit => 2,
2090 pop => 2,
2091 cargo => 2,
2092 race => 'zerg',
2093 attr => {
2094         organic => 1,
2095 },
2096 hp => 80,
2097 armor => 1,
2098 sight => 10,
2099 speed => 4 * $SM,
2100 energy => 50,
2101 capacity => 200,
2102 special => [
2103         {
2104                 name => 'Consume',
2105                 abbr => 'cs',
2106                 min => 100,
2107                 gas => 100,
2108                 build => 100,
2109                 desc => 'gain energy by eating one of your own',
2110                 cost => -50,
2111                 duration => 0,
2112         },
2113         {
2114                 name => 'Dark Swarm',
2115                 abbr => 'ds',
2116                 desc => 'protect 6x6m from ranged attacks for 60s',
2117                 range => 9,
2118                 cost => 100,
2119                 duration => 60,
2120         },
2121         {
2122                 name => 'Plague',
2123                 abbr => 'pl',
2124                 min => 200,
2125                 gas => 200,
2126                 build => 100,
2127                 desc => 'anything in its radius will loose 25 HP per second for 12s or until 1 HP left',
2128                 range => 9,
2129                 cost => 150,
2130                 duration => 12,
2131         },
2132 ],
2133 upgrade => [
2134         {
2135                 name => 'Metasynaptic Node',
2136                 min => 150,
2137                 gas => 50,
2138                 build => 166,
2139                 energy => 62.5-50,
2140                 capacity => 250-200,
2141         },
2142 ],
2143 counter => ['archon', 'firebat'],
2144 },
2145
2146 {
2147 cat => 'hive',
2148 name => 'Ultralisk',
2149 min => 200,
2150 gas => 200,
2151 build => 60,
2152 suit => 3,
2153 pop => 4,
2154 cargo => 4,
2155 race => 'zerg',
2156 attr => {
2157         organic => 1,
2158 },
2159 hp => 400,
2160 armor => 1,
2161 attack => [
2162         {
2163                 anti => 1,
2164                 damage => 20,
2165                 upgrade => 3,
2166                 cooldown => 15 / $FPS,
2167                 range => 0,
2168         },
2169 ],
2170 sight => 7,
2171 speed => 5.4 * $SM,
2172 upgrade => [
2173         {
2174                 name => 'Chitinous Plating',
2175                 min => 150,
2176                 gas => 150,
2177                 build => 133,
2178                 armor => 2,
2179         },
2180         {
2181                 name => 'Anabolic Synthesis',
2182                 min => 200,
2183                 gas => 200,
2184                 build => 133,
2185                 speed => (8.1 - 5.4) * $SM,
2186         },
2187 ],
2188 },
2189
2190 ]