|
|
|
@@ -84,6 +84,11 @@ export const Town = (): Place => { |
|
|
|
"Extra scary" |
|
|
|
) |
|
|
|
|
|
|
|
const loop = new Place( |
|
|
|
new ProperNoun("Loop"), |
|
|
|
"This place is a loop" |
|
|
|
) |
|
|
|
|
|
|
|
woods.choices.push( |
|
|
|
new Choice( |
|
|
|
"Fight a wolf", |
|
|
|
@@ -167,10 +172,30 @@ export const Town = (): Place => { |
|
|
|
) |
|
|
|
}) |
|
|
|
|
|
|
|
for (let i = 0; i < 10; i++) { |
|
|
|
loop.choices.push( |
|
|
|
new Choice( |
|
|
|
"A choice", |
|
|
|
"This is a choice", |
|
|
|
(world, executor) => { |
|
|
|
return new LogLine(`This does not do anything.`) |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
home.biconnect(Direction.North, westAve) |
|
|
|
westAve.biconnect(Direction.West, westRoad) |
|
|
|
westRoad.biconnect(Direction.South, woods) |
|
|
|
westRoad.biconnect(Direction.North, bosses) |
|
|
|
westAve.biconnect(Direction.East, loop) |
|
|
|
loop.connect(Direction.North, loop) |
|
|
|
loop.connect(Direction.South, loop) |
|
|
|
loop.connect(Direction.East, loop) |
|
|
|
loop.connect(Direction.Northwest, loop) |
|
|
|
loop.connect(Direction.Northeast, loop) |
|
|
|
loop.connect(Direction.Southwest, loop) |
|
|
|
loop.connect(Direction.Southeast, loop) |
|
|
|
|
|
|
|
return home |
|
|
|
} |