From 6a92641d577c451b136b25e74e7719a7fecda2bb Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Mon, 22 Apr 2024 10:21:31 -0600 Subject: [PATCH] Add get_terrain() and get_actor() to StoredCell --- js/format-base.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/format-base.js b/js/format-base.js index f60717e..a7a91d5 100644 --- a/js/format-base.js +++ b/js/format-base.js @@ -5,6 +5,14 @@ export class StoredCell extends Array { constructor() { super(LAYERS.MAX); } + + get_terrain() { + return this[LAYERS.terrain] ?? null; + } + + get_actor() { + return this[LAYERS.actor] ?? null; + } } export class Replay {