From 6d7355e9af996e10cf68342f50a5c6186d3a0a20 Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Tue, 18 Apr 2017 17:45:23 +0100 Subject: [PATCH] Add score on Emerald Token pickup (and make the all-emerald bonus a continue in SP) as requested. --- src/p_inter.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/p_inter.c b/src/p_inter.c index ff3718e67..6800a7d1f 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -571,10 +571,17 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) return; tokenlist += special->health; + P_AddPlayerScore(player, 1000); + if (ALL7EMERALDS(emeralds)) // Got all 7 { - P_GivePlayerRings(player, 50); - nummaprings += 50; // no cheating towards Perfect! + if (!(netgame || multiplayer)) + { + player->continues += 1; + players->gotcontinue = true; + if (P_IsLocalPlayer(player)) + S_StartSound(NULL, sfx_s3kac); + } } else token++;