Skip to content

Commit

Permalink
Changed from auto-closing doors to simple movement deny.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Jan 12, 2025
1 parent 4da26ed commit 2779b45
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions src/spec_procs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7895,29 +7895,20 @@ SPECIAL(grenada_gatekeeper)
switch (GET_MOB_VNUM(mob)) {
case 101310:
if (CMD_IS("north")) {
if (EXIT(ch, NORTH) && !IS_SET(EXIT(ch, NORTH)->exit_info, EX_CLOSED)) {
send_to_char(ch, "The door slides shut as you approach it.\r\n");
SET_BIT(EXIT(ch, NORTH)->exit_info, EX_CLOSED);
return TRUE;
}
act("$N shakes $S head at you and gestures you back with a \"Sorry, that's for employees only.\"", FALSE, ch, 0, mob, TO_CHAR);
return TRUE;
}
break;
case 101311:
if (CMD_IS("west")) {
if (EXIT(ch, WEST) && !IS_SET(EXIT(ch, WEST)->exit_info, EX_CLOSED)) {
send_to_char(ch, "The door slides shut as you approach it.\r\n");
SET_BIT(EXIT(ch, WEST)->exit_info, EX_CLOSED);
return TRUE;
}
act("$N shakes $S head at you and gestures you back with a \"Sorry, that's for employees only.\"", FALSE, ch, 0, mob, TO_CHAR);
return TRUE;
}
break;
case 101312:
if (CMD_IS("east")) {
if (EXIT(ch, EAST) && !IS_SET(EXIT(ch, EAST)->exit_info, EX_CLOSED)) {
send_to_char(ch, "The door slides shut as you approach it.\r\n");
SET_BIT(EXIT(ch, EAST)->exit_info, EX_CLOSED);
return TRUE;
}
act("$N shakes $S head at you and gestures you back with a \"Sorry, that's for employees only.\"", FALSE, ch, 0, mob, TO_CHAR);
return TRUE;
}
break;
default:
Expand Down

0 comments on commit 2779b45

Please sign in to comment.