diff options
author | Jed Barber <jjbarber@y7mail.com> | 2014-03-31 16:26:09 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2014-03-31 16:26:09 +1100 |
commit | af78c32c6a2e181f2e7765cdda07af7ae6a187e2 (patch) | |
tree | c7a4c582034a2c4602d64d6a4b910b1bf3b23408 | |
parent | dddc09e4d4aa6157240827630d8f5fdb0ab9f07e (diff) |
Bats now drop you completely randomly, not just in safe rooms
-rw-r--r-- | agent.prolog | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/agent.prolog b/agent.prolog index a575b2f..d936d3f 100644 --- a/agent.prolog +++ b/agent.prolog @@ -192,10 +192,10 @@ checkBats :- batsAt(Location), write('A giant bat swoops down, picks you up, and deposits you elsewhere in the cave.\n\n'), roomList(Rooms), - filter(Rooms, somethingAt, emptyRooms), - random_member(NewLocation, emptyRooms), + random_member(NewLocation, Rooms), retract(here(Location)), - asserta(here(NewLocation)). + asserta(here(NewLocation)), + checkHazards. checkBats :- true. |