Skip to content

Commit

Permalink
Add to stat for successful shot from calamity blade
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 17, 2024
1 parent 7559f92 commit 2eea48c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#define MT_TYRANTBOSS1 MT_EXTRA06
#define MT_TYRANTBOSS2 MT_EXTRA07
#define MT_FLAME MT_EXTRA08
#define MT_RIPPER MT_EXTRA10
#define MT_LAMP MT_EXTRA50

typedef enum
Expand Down
6 changes: 6 additions & 0 deletions src/p_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,12 @@ static bool PIT_CheckThing(mobj_t *thing)
P_DamageMobj(thing, tmthing, tmthing->target, damage, true, false);
numspechit = 0;

if (tmtype == MT_RIPPER)
{
viewplayer->shotssuccessful_calamityblade++;
stat_shotssuccessful_incinerator = SafeAdd(stat_shotssuccessful_calamityblade, 1);
}

return true;
}

Expand Down

0 comments on commit 2eea48c

Please sign in to comment.