diff options
Diffstat (limited to 'src/fpsgame/entities.cpp')
| -rw-r--r-- | src/fpsgame/entities.cpp | 11 |
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: |
