mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-03 01:41:15 +00:00
WANTED player or Lightning Shield attracts emeralds
This commit is contained in:
parent
96eb60ee63
commit
43aa03bfc3
3 changed files with 6 additions and 4 deletions
|
|
@ -7635,7 +7635,7 @@ static inline BlockItReturn_t PIT_AttractingRings(mobj_t *thing)
|
|||
return BMIT_CONTINUE; // invalid
|
||||
}
|
||||
|
||||
if (!(thing->type == MT_RING || thing->type == MT_FLINGRING))
|
||||
if (!(thing->type == MT_RING || thing->type == MT_FLINGRING || thing->type == MT_EMERALD))
|
||||
{
|
||||
return BMIT_CONTINUE; // not a ring
|
||||
}
|
||||
|
|
@ -7645,7 +7645,7 @@ static inline BlockItReturn_t PIT_AttractingRings(mobj_t *thing)
|
|||
return BMIT_CONTINUE; // dead
|
||||
}
|
||||
|
||||
if (thing->extravalue1)
|
||||
if (thing->extravalue1 && thing->type != MT_EMERALD)
|
||||
{
|
||||
return BMIT_CONTINUE; // in special ring animation
|
||||
}
|
||||
|
|
@ -8648,7 +8648,7 @@ void K_KartPlayerAfterThink(player_t *player)
|
|||
player->jawztargetdelay = 0;
|
||||
}
|
||||
|
||||
if (player->itemtype == KITEM_LIGHTNINGSHIELD)
|
||||
if (player->itemtype == KITEM_LIGHTNINGSHIELD || ((gametyperules & GTR_POWERSTONES) && K_IsPlayerWanted(player)))
|
||||
{
|
||||
K_LookForRings(player->mo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3800,7 +3800,7 @@ void A_AttractChase(mobj_t *actor)
|
|||
if (actor->flags2 & MF2_NIGHTSPULL || !actor->health)
|
||||
return;
|
||||
|
||||
if (actor->extravalue1) // SRB2Kart
|
||||
if (actor->extravalue1 && actor->type != MT_EMERALD) // SRB2Kart
|
||||
{
|
||||
if (!actor->target || P_MobjWasRemoved(actor->target) || !actor->target->player)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7538,6 +7538,8 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
|||
{
|
||||
if (mobj->threshold > 0)
|
||||
mobj->threshold--;
|
||||
|
||||
A_AttractChase(mobj);
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case MT_MONITOR:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue