fixed some things
This commit is contained in:
@@ -164,7 +164,7 @@ Locked: false
|
|||||||
Boarded: false
|
Boarded: false
|
||||||
Items:
|
Items:
|
||||||
Riddler:
|
Riddler:
|
||||||
Exit Rooms: S-Apsen Bedroom, E-Willow Bedroom
|
Exit Rooms: S-Aspen Bedroom, E-Willow Bedroom
|
||||||
|
|
||||||
Room name: Guest Bedroom
|
Room name: Guest Bedroom
|
||||||
Room Description: Welcome to the guest bedroom, where guests like yourself stay for the night. There is another tailored<br>man in the corner. He seems to have something he would like to tell you.
|
Room Description: Welcome to the guest bedroom, where guests like yourself stay for the night. There is another tailored<br>man in the corner. He seems to have something he would like to tell you.
|
||||||
|
|||||||
@@ -219,6 +219,10 @@ class Game {
|
|||||||
System.out.print(currentRoom.longDescription());
|
System.out.print(currentRoom.longDescription());
|
||||||
System.out.println(currentRoom.itemString());
|
System.out.println(currentRoom.itemString());
|
||||||
System.out.println(currentRoom.exitString());
|
System.out.println(currentRoom.exitString());
|
||||||
|
player.addToInventory(new Lockpick());
|
||||||
|
player.addToInventory(new Crowbar());
|
||||||
|
player.addToInventory(new Key());
|
||||||
|
player.addToInventory(new Batteringram());
|
||||||
boolean finished = false;
|
boolean finished = false;
|
||||||
while (!finished) {
|
while (!finished) {
|
||||||
if (currentCombat != null) {
|
if (currentCombat != null) {
|
||||||
@@ -276,7 +280,7 @@ class Game {
|
|||||||
if (command.hasDirection() && hasLockPick) {
|
if (command.hasDirection() && hasLockPick) {
|
||||||
Room nextRoom = currentRoom.nextRoom(command.getDirection());
|
Room nextRoom = currentRoom.nextRoom(command.getDirection());
|
||||||
try {
|
try {
|
||||||
if(nextRoom.getLocked()) {
|
if(nextRoom.getLocked()) {
|
||||||
nextRoom.setLocked(false);
|
nextRoom.setLocked(false);
|
||||||
player.removeFromInventory(new Lockpick());
|
player.removeFromInventory(new Lockpick());
|
||||||
System.out.println("After a little bit of picking, a click is heard and the door opens slightly!");
|
System.out.println("After a little bit of picking, a click is heard and the door opens slightly!");
|
||||||
|
|||||||
Reference in New Issue
Block a user