Skip to content

Commit

Permalink
#19 special ladder descends into dungeon
Browse files Browse the repository at this point in the history
  • Loading branch information
maglob committed Jan 4, 2012
1 parent 304d53f commit 20d5abb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions javascript/src/ultima4.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,14 @@ ultima4.main = (function() {

function commandDescend() {
if (getTileAt(state.pos.x, state.pos.y, state.town) == tileType.ladderDown) {
console.write("Descend to\nfirst floor!\n\n");
state.town = 0;
initInhabitants(state.town);
if (state.town==0 && state.pos.x==7 && state.pos.y==2) {
console.write("Descend into\nthe depths!\n\n");
// Enter dungeon
} else {
console.write("Descend to\nfirst floor!\n\n");
state.town = 0;
initInhabitants(state.town);
}
} else
console.write("Descend WHAT?\n\n");
return true;
Expand Down

0 comments on commit 20d5abb

Please sign in to comment.