From 705b9f5a633e7c6d76c37d8600cd67f0756c4f23 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 4 Aug 2020 15:44:11 -0400 Subject: [PATCH] Add a test location full of connections and actions --- src/game/maps/town.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/game/maps/town.ts b/src/game/maps/town.ts index bd3f479..fdf33ad 100644 --- a/src/game/maps/town.ts +++ b/src/game/maps/town.ts @@ -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 }