Skip to content

Commit

Permalink
Sitting on the floor scuffs engravings
Browse files Browse the repository at this point in the history
Reimplementation of a pull request for the same feature; this scuffs the
engraving before most of the special cases that do involve sitting
directly on the surface happen, rather than as a special case that
happens if none of the others do (otherwise, sitting on an object or
laying an egg or various other things would leave the engraving intact.)
  • Loading branch information
copperwater committed Apr 13, 2024
1 parent 03c51b6 commit 4ae65b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/xnh-changelog-9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ changes:
least 25%.
- The potion of gain energy can be alchemized by combining the potions of full
healing and gain ability.
- Sitting down can partly wipe engravings on your space.

### Interface changes

Expand Down
1 change: 1 addition & 0 deletions src/sit.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ dosit(void)
goto in_water;
}

u_wipe_engr(rnd(5));
if (OBJ_AT(u.ux, u.uy)
/* ensure we're not standing on the precipice */
&& !(uteetering_at_seen_pit(trap) || uescaped_shaft(trap))) {
Expand Down

0 comments on commit 4ae65b2

Please sign in to comment.