mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 13:01:56 +00:00
P_DamageMobj: do not spill rings if player has shield
This commit is contained in:
parent
cd2219f605
commit
19cd35a10f
1 changed files with 6 additions and 0 deletions
|
|
@ -3173,6 +3173,12 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Have a shield? You get hit, but don't lose your rings!
|
||||||
|
if (player->curshield != KSHIELD_NONE)
|
||||||
|
{
|
||||||
|
ringburst = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (type != DMG_STUMBLE && type != DMG_WHUMBLE)
|
if (type != DMG_STUMBLE && type != DMG_WHUMBLE)
|
||||||
{
|
{
|
||||||
if (type != DMG_STING)
|
if (type != DMG_STING)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue