From 67ec2894e74854c57a71690314d268a9c1c179f0 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 12 Jun 2015 19:42:44 +0200 Subject: [PATCH] sc: egg and broodling as bw subunits --- sc-units.inc.pl | 80 ++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 44 deletions(-) diff --git a/sc-units.inc.pl b/sc-units.inc.pl index 87de9ec..d2c3b01 100644 --- a/sc-units.inc.pl +++ b/sc-units.inc.pl @@ -1252,25 +1252,25 @@ attack => { }, sight => 4, speed => 0.1, #XXX -special => [], -}, - -{ -cat => 'creep', -name => 'Egg', -trans => { - nl => 'ei', -}, -suit => 3, -race => 'zerg', -organic => 1, -hp => 200, -armor => 10, -attack => { -}, -sight => 4, -speed => 0, -special => [], +special => [ + { + name => 'transform', + alt => 'Egg', + trans => { + nl => 'ei', + }, + suit => 3, + race => 'zerg', + organic => undef, # unchanged from parent + hp => 200, + armor => 10, + attack => { + }, + sight => 4, + speed => 0, + special => [], + }, +], }, { @@ -1458,37 +1458,29 @@ special => [ duration => undef, }, { - name => 'Broodling', + name => 'Spawn Broodling', abbr => 'sb', desc => 'spawn one inside an enemy unit killing it', range => 9, cost => 75-60, - }, -], -}, -{ -cat => 'lair', -name => 'Broodling', -min => 0, -gas => 0, -build => 0, -suit => 1, -unit => 0, -race => 'zerg', -organic => 1, -hp => 30, -armor => 0, -attack => { - ground => { - damage => [4, 5, 6, 7], - dps => [8, 10, 12, 14], + alt => 'Broodling', + suit => 1, + unit => undef, + organic => undef, + hp => 30, + armor => 0, + attack => { + ground => { + damage => [4, 5, 6, 7], + dps => [8, 10, 12, 14], + }, + range => 1, + }, + sight => 5, + speed => 19, }, - range => 1, -}, -sight => 5, -speed => 19, -special => [], +], }, { -- 2.30.0