|
|
|
@@ -57,7 +57,7 @@ function moveToRoom(src, exit, dest, state) { |
|
|
|
state.world[dest].move(state.world[dest], state); |
|
|
|
state.player.location = dest; |
|
|
|
|
|
|
|
updateRoom(state); |
|
|
|
refresh(); |
|
|
|
} |
|
|
|
|
|
|
|
function goToRoom(dest, state) { |
|
|
|
@@ -72,7 +72,8 @@ function goToRoom(dest, state) { |
|
|
|
} |
|
|
|
|
|
|
|
state.player.location = dest; |
|
|
|
updateRoom(state); |
|
|
|
|
|
|
|
refresh(); |
|
|
|
} |
|
|
|
|
|
|
|
function updateRoom(state) { |
|
|
|
|