Add score on Emerald Token pickup (and make the all-emerald bonus a continue in SP) as requested.
This commit is contained in:
parent
8e3a3e792e
commit
6d7355e9af
|
@ -571,10 +571,17 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
return;
|
return;
|
||||||
tokenlist += special->health;
|
tokenlist += special->health;
|
||||||
|
|
||||||
|
P_AddPlayerScore(player, 1000);
|
||||||
|
|
||||||
if (ALL7EMERALDS(emeralds)) // Got all 7
|
if (ALL7EMERALDS(emeralds)) // Got all 7
|
||||||
{
|
{
|
||||||
P_GivePlayerRings(player, 50);
|
if (!(netgame || multiplayer))
|
||||||
nummaprings += 50; // no cheating towards Perfect!
|
{
|
||||||
|
player->continues += 1;
|
||||||
|
players->gotcontinue = true;
|
||||||
|
if (P_IsLocalPlayer(player))
|
||||||
|
S_StartSound(NULL, sfx_s3kac);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
token++;
|
token++;
|
||||||
|
|
Loading…
Reference in a new issue