mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Battle: have 6 emeralds and touch the 7th to win instantly
Win instantly instead of waiting for the emerald to finish swirling into your body.
This commit is contained in:
parent
e06e0dcb3a
commit
8a882c55e5
2 changed files with 12 additions and 0 deletions
|
|
@ -207,6 +207,11 @@ void K_CheckEmeralds(player_t *player)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player->exiting)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
player->roundscore = 100; // lmao
|
player->roundscore = 100; // lmao
|
||||||
|
|
||||||
P_DoAllPlayersExit(0, false);
|
P_DoAllPlayersExit(0, false);
|
||||||
|
|
|
||||||
|
|
@ -560,6 +560,13 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
Obj_SetEmeraldAwardee(special, toucher);
|
Obj_SetEmeraldAwardee(special, toucher);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// You have 6 emeralds and you touch the 7th: win instantly!
|
||||||
|
if (ALLCHAOSEMERALDS((player->emeralds | special->extravalue1)))
|
||||||
|
{
|
||||||
|
player->emeralds |= special->extravalue1;
|
||||||
|
K_CheckEmeralds(player);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
case MT_SPECIAL_UFO:
|
case MT_SPECIAL_UFO:
|
||||||
if (Obj_UFOEmeraldCollect(special, toucher) == false)
|
if (Obj_UFOEmeraldCollect(special, toucher) == false)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue