Fix for grenade blob / droid attacks.

This commit is contained in:
Steve 2018-02-09 21:54:12 +00:00
parent 88a8d34425
commit 712a2c47b9
2 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Entity *initGrenadeBlob(void)
u->sprite[FACING_DIE] = getSprite("GrenadeBlobSpin");
u->weaponType = WPN_GRENADES;
u->maxShotsToFire = 1;
superPreFire = u->preFire;
@ -61,10 +62,12 @@ static void preFire(void)
if (rand() % 100 < 25)
{
u->weaponType = WPN_AIMED_PISTOL;
u->maxShotsToFire = 3;
}
else
{
u->weaponType = WPN_GRENADES;
u->maxShotsToFire = 1;
}
}
}

View File

@ -39,6 +39,7 @@ Entity *initGrenadeDroid(void)
u->sprite[FACING_DIE] = getSprite("GrenadeDroidDie");
u->weaponType = WPN_GRENADES;
u->maxShotsToFire = 1;
superPreFire = u->preFire;
@ -61,10 +62,12 @@ static void preFire(void)
if (rand() % 100 < 25)
{
u->weaponType = WPN_AIMED_PISTOL;
u->maxShotsToFire = 3;
}
else
{
u->weaponType = WPN_GRENADES;
u->maxShotsToFire = 1;
}
}
}