mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-16 12:48:07 +01:00
Added diagonal directions, hidden exits flag and bug fixes
This commit is contained in:
parent
7531e92f64
commit
5acbfd29eb
33 changed files with 378 additions and 130 deletions
|
|
@ -238,7 +238,7 @@ ACMD(do_flee)
|
|||
}
|
||||
|
||||
for (i = 0; i < 6; i++) {
|
||||
attempt = rand_number(0, NUM_OF_DIRS - 1); /* Select a random direction */
|
||||
attempt = rand_number(0, DIR_COUNT - 1); /* Select a random direction */
|
||||
if (CAN_GO(ch, attempt) &&
|
||||
!ROOM_FLAGGED(EXIT(ch, attempt)->to_room, ROOM_DEATH)) {
|
||||
act("$n panics, and attempts to flee!", TRUE, ch, 0, 0, TO_ROOM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue