summaryrefslogtreecommitdiff
path: root/src/fpsgame/entities.cpp
diff options
context:
space:
mode:
authorxolatile2025-07-23 17:33:57 +0200
committerxolatile2025-07-23 17:33:57 +0200
commita5a051f3356046fcaeaa295272d6859defebb320 (patch)
tree2979d7bdbc94296bf4ccd6931bd37a91db4d6436 /src/fpsgame/entities.cpp
parent11a5f448e0f5c423a00103c5d36a776f07a600bd (diff)
downloadxolatile-badassbug-a5a051f3356046fcaeaa295272d6859defebb320.tar.xz
xolatile-badassbug-a5a051f3356046fcaeaa295272d6859defebb320.tar.zst
Alternative GUI, more info in scoreboard, icons, accuracy, pickup state...
Diffstat (limited to 'src/fpsgame/entities.cpp')
-rw-r--r--src/fpsgame/entities.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fpsgame/entities.cpp b/src/fpsgame/entities.cpp
index 63d35d0..4676ca8 100644
--- a/src/fpsgame/entities.cpp
+++ b/src/fpsgame/entities.cpp
@@ -1,5 +1,7 @@
#include "game.h"
+int pwitemspicked[7] = { 0 };
+
namespace entities
{
using namespace game;
@@ -183,6 +185,15 @@ namespace entities
}
playsound(itemstats[type-I_SHELLS].sound, d!=h ? &d->o : NULL, NULL, 0, 0, 0, -1, 0, 1500);
d->pickup(type);
+ switch(type) {
+ case I_TINYARMOUR: pwitemspicked[0]++; break;
+ case I_GREENARMOUR: pwitemspicked[1]++; break;
+ case I_YELLOWARMOUR: pwitemspicked[2]++; break;
+ case I_TINYHEALTH: pwitemspicked[3]++; break;
+ case I_HEALTH: pwitemspicked[4]++; break;
+ case I_BOOST: pwitemspicked[5]++; break;
+ case I_QUAD: pwitemspicked[6]++; break;
+ }
if(d==h) switch(type)
{
case I_BOOST: