Stealth skill update

This commit is contained in:
kinther 2025-12-15 14:34:45 -08:00
parent d7aec2e6c2
commit 06d581b011
10 changed files with 194 additions and 67 deletions

View file

@ -274,8 +274,9 @@ int do_simple_move(struct char_data *ch, int dir, int need_specials_check)
GET_MOVE(ch) -= need_movement;
/* Generate the leave message and display to others in the was_in room. */
if (!AFF_FLAGGED(ch, AFF_SNEAK))
{
if (AFF_FLAGGED(ch, AFF_SNEAK)) {
stealth_process_room_movement(ch, was_in, dir, TRUE);
} else {
snprintf(leave_message, sizeof(leave_message), "$n leaves %s.", dirs[dir]);
act(leave_message, TRUE, ch, 0, 0, TO_ROOM);
}
@ -299,7 +300,9 @@ int do_simple_move(struct char_data *ch, int dir, int need_specials_check)
}
/* Display arrival information to anyone in the destination room... */
if (!AFF_FLAGGED(ch, AFF_SNEAK))
if (AFF_FLAGGED(ch, AFF_SNEAK))
stealth_process_room_movement(ch, going_to, dir, FALSE);
else
act("$n has arrived.", TRUE, ch, 0, 0, TO_ROOM);
/* ... and the room description to the character. */