Skip to content

Commit

Permalink
Add "giggles and vanishes" message when a nymph finishes stealing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nephi Allred authored and copperwater committed Mar 21, 2024
1 parent b4fc208 commit dbf11d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/xnh-changelog-9.0.md
Expand Up @@ -49,6 +49,7 @@ changes:
message warning you that you're becoming visible again.
- When farlooking a closed and unlocked door you are next to, it will show up as
"unlocked door" instead of the generic "closed door".
- Produce a message when a nymph teleports away after a successful theft.

### Architectural changes

8 changes: 6 additions & 2 deletions src/uhitm.c
Expand Up @@ -4887,8 +4887,12 @@ mhitm_ad_sedu(
case 0:
return;
default:
if (!is_animal(magr->data) && !tele_restrict(magr))
(void) rloc(magr, RLOC_MSG);
if (!is_animal(magr->data) && !tele_restrict(magr)) {
if (canspotmon(magr)) {
pline("%s giggles and vanishes.", Monnam(magr));
}
rloc(magr, RLOC_NOMSG);
}
if (is_animal(magr->data) && *buf) {
if (canseemon(magr))
pline("%s tries to %s away with %s.", Monnam(magr),
Expand Down

0 comments on commit dbf11d2

Please sign in to comment.