From 66c413f913a706da4094ac062f0c7ad6ca3ba202 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Fri, 27 Feb 2015 22:16:53 -0500 Subject: [PATCH] Don't drop shield bonuses in Nightmare difficulty. --- src/collectable.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/collectable.cpp b/src/collectable.cpp index d8409f1..712ea07 100644 --- a/src/collectable.cpp +++ b/src/collectable.cpp @@ -92,6 +92,15 @@ void addCollectable(float x, float y, int type, int value, int life) } } + // Shield bonus is useless in Nightmare difficulty; give cash instead. + if (type == P_SHIELD) + { + if (currentGame.difficulty >= DIFFICULTY_NIGHTMARE) + { + type = P_CASH; + } + } + collectables *collectable = new collectables; collectable->next = NULL;