Skip to content

Commit

Permalink
min 2 zeds to suffocate while grabbed (#61060)
Browse files Browse the repository at this point in the history
* min 2 zeds to suffocate while grabbed

* Fix bad if logic

* astyle the fix
  • Loading branch information
anoobindisguise committed Oct 7, 2022
1 parent 9618b83 commit 5de5b3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/suffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,10 @@ void suffer::while_grabbed( Character &you )
int grab_intensity = you.get_effect_int( effect_grabbed, body_part_torso );

// you should have trouble breathing as you get swarmed by zombies grabbing you
if( grab_intensity <= 2 ) {
// only a chance to lose breath at low grab chance
if( grab_intensity < 2 ) {
return;
} else if( grab_intensity == 2 ) {
// only a chance to lose breath at low grab chance, none with only a single zombie
you.oxygen -= rng( 0, 1 );
} else if( grab_intensity <= 4 ) {
you.oxygen -= 1;
Expand Down

0 comments on commit 5de5b3f

Please sign in to comment.