Add a few more baba templates for extra baba squish fun.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9739 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2010-02-07 22:15:12 +00:00 committed by Git SVN Gateway
parent 4651724689
commit 01dc5e937f
2 changed files with 16 additions and 2 deletions

View File

@ -24,6 +24,9 @@ public TEMPLATE trike;
public TEMPLATE buggy;
public TEMPLATE bloke;
public TEMPLATE jeep;
public TEMPLATE firetruck;
public TEMPLATE firebus;
public TEMPLATE cannonbus;
// groups
private GROUP attackGroup;
@ -66,7 +69,7 @@ event droidbuilt(CALL_NEWDROID, enemy1, ref newDroid, ref fac1)
{
if (structureIdle(fac1) and (numDroidsInArea(enemy1, 0, 0, (mapWidth * 128), (mapHeight * 128)) < maxDroids))
{
Fact1State = random(6);
Fact1State = random(10);
if (Fact1State == 0)
{
@ -80,6 +83,14 @@ event droidbuilt(CALL_NEWDROID, enemy1, ref newDroid, ref fac1)
{
buildDroid(jeep, fac1, enemy1, 1);
}
else if (Fact1State == 3)
{
buildDroid(cannonbus, fac1, enemy1, 1);
}
else if (Fact1State == 4)
{
buildDroid(firebus, fac1, enemy1, 1);
}
else
{
buildDroid(bloke, fac1, enemy1, 1);

View File

@ -14,4 +14,7 @@ trike TEMPLATE "BarbarianTrike"
buggy TEMPLATE "BarbarianBuggy"
bloke TEMPLATE "BaBaPeople"
jeep TEMPLATE "BabaJeep"
}
firetruck TEMPLATE "BabaFireTruck"
cannonbus TEMPLATE "BabaBusCan"
firebus TEMPLATE "BabaFireCan"
}