Guest User

Untitled

a guest
Feb 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. if (playerPosition.getYPos() > 0) {
  2. northRoom = game.getRoom(playerPosition.getYPos()-1, playerPosition.getXPos());
  3. if (northRoom.hasBats()) {
  4. actionLog.push("You hear the flapping of wings nearby.");
  5. }else if (northRoom.hasPit()) {
  6. actionLog.push("You feel a cool breeze nearby.");
  7. }else if (playerPosition.getYPos()+1 == rickPosition.getYPos() && playerPosition.getXPos() == rickPosition.getXPos()) {
  8. actionLog.push("You hear something near by, \"....give.....up\"");
  9. }
  10. }
Add Comment
Please, Sign In to add comment