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