mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 15:32:33 +00:00
Change A_BombShield to add P_BlackOw.
Now when you obtain an Armageddon Shield, and you already HAVE one, the first one explodes _while_ applying the second.
This commit is contained in:
parent
18920e486d
commit
ecd867ab35
1 changed files with 6 additions and 5 deletions
|
@ -3200,12 +3200,13 @@ void A_BombShield(mobj_t *actor)
|
||||||
|
|
||||||
player = actor->target->player;
|
player = actor->target->player;
|
||||||
|
|
||||||
if ((player->powers[pw_shield] & SH_NOSTACK) != SH_BOMB)
|
// If you already have a bomb shield, use it!
|
||||||
{
|
if ((player->powers[pw_shield] & SH_NOSTACK) == SH_BOMB)
|
||||||
player->powers[pw_shield] = SH_BOMB|(player->powers[pw_shield] & SH_STACK);
|
P_BlackOw(player);
|
||||||
P_SpawnShieldOrb(player);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Now we know for certain that we don't have a bomb shield, so add one. :3
|
||||||
|
player->powers[pw_shield] = SH_BOMB|(player->powers[pw_shield] & SH_STACK);
|
||||||
|
P_SpawnShieldOrb(player);
|
||||||
S_StartSound(player->mo, actor->info->seesound);
|
S_StartSound(player->mo, actor->info->seesound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue