From 8a5fc9c8206d666267a5ca4b872118c77b47abff Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 3 Feb 2023 18:01:34 -0800 Subject: [PATCH] Add some methods to Cell to turn the Cell into a real Cell --- assets/scripts/nethack/dungeon.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/scripts/nethack/dungeon.js b/assets/scripts/nethack/dungeon.js index c8eaa37..0886cd2 100644 --- a/assets/scripts/nethack/dungeon.js +++ b/assets/scripts/nethack/dungeon.js @@ -6,6 +6,11 @@ class Cell { constructor(char, charColor) { this.character = char; } + + floor() { this.character = "."; } + upStair() { this.character = "<"; } + downStair() { this.character = ">"; } + cooridor() { this.character = "#"; } } class Point {