From 296d1a356b06fea4782c3106f7be838b07870cd0 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sat, 19 Dec 2020 19:17:14 -0700 Subject: [PATCH] Fix wired cloner rotation to be permanent --- js/tiletypes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/tiletypes.js b/js/tiletypes.js index ec35b5e..b30c35c 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -1030,7 +1030,6 @@ const TILE_TYPES = { // Copy this stuff in case the movement changes it // TODO should anything else be preserved? let type = actor.type; - let original_direction = actor.direction; let direction = actor.direction; // Unstick and try to move the actor; if it's blocked, abort the clone. @@ -1041,7 +1040,7 @@ const TILE_TYPES = { for (let i = 0; i < (aggressive ? 4 : 1); i++) { if (level.attempt_out_of_turn_step(actor, direction)) { // FIXME add this underneath, just above the cloner, so the new actor is on top - let new_template = new actor.constructor(type, original_direction); + let new_template = new actor.constructor(type, direction); // TODO maybe make a type method for this if (type.on_clone) { type.on_clone(new_template, actor);