From 17a578a9c0f475981725f26120f9e12624550420 Mon Sep 17 00:00:00 2001 From: Oliver Klemenz Date: Thu, 5 May 2022 15:10:31 +0200 Subject: [PATCH] Unblock level 178 --- assets/maps/custom/level178.json | 9 ++++++--- src/Fighter.js | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/assets/maps/custom/level178.json b/assets/maps/custom/level178.json index 6d06e0f..2b151ec 100644 --- a/assets/maps/custom/level178.json +++ b/assets/maps/custom/level178.json @@ -1797,7 +1797,8 @@ "skill": 0, "colors": 2, "type": "guard", - "direction": 1 + "direction": 1, + "sneak": true }, { "room": 6, @@ -1813,7 +1814,8 @@ "skill": 4, "colors": 4, "type": "guard", - "direction": 1 + "direction": 1, + "sneak": true }, { "room": 13, @@ -1821,7 +1823,8 @@ "skill": 6, "colors": 4, "type": "guard", - "direction": 1 + "direction": 1, + "bias": 1 }, { "room": 11, diff --git a/src/Fighter.js b/src/Fighter.js index e888df1..1272203 100644 --- a/src/Fighter.js +++ b/src/Fighter.js @@ -1321,7 +1321,7 @@ PrinceJS.Fighter.prototype.moveL = function (extended = true) { }; PrinceJS.Fighter.prototype.sneaks = function () { - return ["stand", "turn"].includes(this.action) || this.action.startsWith("step"); + return ["stoop", "stand", "standup", "turn", "jumphanglong", "hang", "climbup", "climbdown"].includes(this.action) || this.action.startsWith("step"); }; PrinceJS.Fighter.prototype.getCharBounds = function () {