Move blobs' slime-spreading to happen instantly, not on arrival (and fix some typos)

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-27 06:17:52 -07:00
parent effc709a01
commit f798bd2c9c

View File

@ -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');
}
}