Skip to content

Commit

Permalink
Stop occupations when the hero is caught in a poison gas cloud (repor…
Browse files Browse the repository at this point in the history
…ted by Loggers_VIII).
  • Loading branch information
elunna committed Jan 7, 2025
1 parent 13ae9c9 commit f8773a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/region.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,7 @@ inside_gas_cloud(genericptr_t p1, genericptr_t p2)
return FALSE; /* if no damage then there's nothing to do here... */

if (!mtmp) { /* hero is indicated by Null rather than by &youmonst */
stop_occupation();
if (!rn2(5))
erode_armor(&gy.youmonst, ERODE_ROT);
else if (!rn2(3))
Expand All @@ -1142,7 +1143,7 @@ inside_gas_cloud(genericptr_t p1, genericptr_t p2)
}
if (Breathless)
return FALSE;

if (!fully_resistant(POISON_RES) && !No_gas_damage) {
pline("%s is burning your %s!", Something,
makeplural(body_part(LUNG)));
Expand Down

0 comments on commit f8773a0

Please sign in to comment.