Skip to content

Commit

Permalink
Tracking someone in an apartment or car will now fail
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Jan 9, 2024
1 parent c2a4f7f commit cac6ae3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/limits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1103,10 +1103,15 @@ void point_update(void)

if (i->desc && IS_PROJECT(i)) {
if (AFF_FLAGGED(i->desc->original, AFF_TRACKING) && HUNTING(i->desc->original) && !--HOURS_LEFT_TRACK(i->desc->original)) {
act("The astral signature leads you to $N.", FALSE, i, 0, HUNTING(i->desc->original), TO_CHAR);
char_from_room(i);
char_to_room(i, HUNTING(i->desc->original)->in_room);
act("$n enters the area.", TRUE, i, 0, 0, TO_ROOM);
if (!HUNTING(i->desc->original)->in_room || !CH_CAN_ENTER_APARTMENT(HUNTING(i->desc->original)->in_room, i)) {
send_to_char("The astral signature fades... you can't follow it all the way back.", i);
} else {
act("The astral signature leads you to $N.", FALSE, i, 0, HUNTING(i->desc->original), TO_CHAR);
char_from_room(i);
char_to_room(i, HUNTING(i->desc->original)->in_room);
act("$n enters the area.", TRUE, i, 0, 0, TO_ROOM);
}
// Clear hunting data structs.
AFF_FLAGS(i->desc->original).RemoveBit(AFF_TRACKING);
AFF_FLAGS(HUNTING(i->desc->original)).RemoveBit(AFF_TRACKED);
HUNTING(i->desc->original) = NULL;
Expand Down

0 comments on commit cac6ae3

Please sign in to comment.