| @@ -281,6 +281,22 @@ export const Town = (): Place => { | |||||
| ) | ) | ||||
| }) | }) | ||||
| debug.choices.push( | |||||
| new Choice( | |||||
| "Cut stats", | |||||
| "Make your stats less good-er", | |||||
| (world, executor) => { | |||||
| Object.keys(Stat).forEach(stat => { | |||||
| executor.baseStats[stat as Stat] -= 5 | |||||
| executor.takeDamage(new Damage( | |||||
| { amount: 5, target: (stat as Stat), type: DamageType.Pure } | |||||
| )) | |||||
| }) | |||||
| return new LogLine(`You're weaker now`) | |||||
| } | |||||
| ) | |||||
| ) | |||||
| debug.choices.push( | debug.choices.push( | ||||
| new Choice( | new Choice( | ||||
| "Boost stats", | "Boost stats", | ||||
| @@ -319,6 +335,22 @@ export const Town = (): Place => { | |||||
| ) | ) | ||||
| ) | ) | ||||
| debug.choices.push( | |||||
| new Choice( | |||||
| "Set Name", | |||||
| "Set your name", | |||||
| (world, executor) => { | |||||
| const input = prompt("Enter a name") | |||||
| if (input !== null) { | |||||
| executor.baseName = new ProperNoun(input) | |||||
| return new LogLine(`Your new name is ${executor.baseName}.`) | |||||
| } else { | |||||
| return new LogLine(`nvm`) | |||||
| } | |||||
| } | |||||
| ) | |||||
| ) | |||||
| home.biconnect(Direction.South, debug) | home.biconnect(Direction.South, debug) | ||||
| home.biconnect(Direction.North, westAve) | home.biconnect(Direction.North, westAve) | ||||
| westAve.biconnect(Direction.West, westRoad) | westAve.biconnect(Direction.West, westRoad) | ||||