Allowed Darts to randomly possess lasers.

This commit is contained in:
Steve 2015-11-18 18:38:00 +00:00
parent a43a6b1706
commit 881464282d
1 changed files with 16 additions and 8 deletions

View File

@ -147,14 +147,6 @@ static void randomizeDartGuns(Entity *dart)
case 1:
dart->guns[0].type = BT_PLASMA;
dart->guns[1].type = BT_PLASMA;
for (i = 2 ; i < MAX_FIGHTER_GUNS ; i++)
{
if (dart->guns[i].type)
{
dart->guns[i].type = BT_NONE;
}
}
break;
/* Triple particle guns */
@ -162,6 +154,22 @@ static void randomizeDartGuns(Entity *dart)
dart->guns[2].type = BT_PARTICLE;
dart->guns[2].y = -10;
break;
/* Plasma / Laser cannons */
case 3:
dart->guns[0].type = BT_PLASMA;
dart->guns[0].x = dart->guns[0].y = 0;
dart->guns[1].type = BT_LASER;
dart->guns[1].x = dart->guns[1].y = 0;
break;
/* Dual Laser cannons */
case 4:
dart->guns[0].type = BT_LASER;
dart->guns[1].type = BT_LASER;
break;
}
}