From f798bd2c9ce655a9acf90d441d290775b99079a0 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 27 Dec 2020 06:17:52 -0700 Subject: [PATCH] Move blobs' slime-spreading to happen instantly, not on arrival (and fix some typos) --- js/tiletypes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tiletypes.js b/js/tiletypes.js index 197b8e9..67dc2dd 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -138,10 +138,10 @@ const TILE_TYPES = { // Floors and walls floor: { draw_layer: DRAW_LAYERS.terrain, - on_arrive(me, level, other) { + on_approach(me, level, other) { if (other.type.name === 'blob') { // Blobs spread slime onto floor - if (me.previous_cell && me.previous_cell.has('slime')) { + if (other.previous_cell && other.previous_cell.has('slime')) { level.transmute_tile(me, 'slime'); } }