From ef3fbd73a9295cc1b3101a3ef8124928fc706af7 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 2 Oct 2024 22:32:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=A4=E5=AE=B3=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/game/enemy/damage.ts | 2 +- src/game/mechanism/misc.ts | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/game/enemy/damage.ts b/src/game/enemy/damage.ts index 067e7fc..7edcdfe 100644 --- a/src/game/enemy/damage.ts +++ b/src/game/enemy/damage.ts @@ -1090,7 +1090,7 @@ export function calDamageWith( if (damage < dm) damage = dm; } - return damage; + return Math.floor(damage); } export function ensureFloorDamage(floorId: FloorIds) { diff --git a/src/game/mechanism/misc.ts b/src/game/mechanism/misc.ts index af1377b..94b58bb 100644 --- a/src/game/mechanism/misc.ts +++ b/src/game/mechanism/misc.ts @@ -7,17 +7,6 @@ export namespace BluePalace { // ---------- 黄蓝门转换 - function drawDoors( - ctx: CanvasRenderingContext2D, - convert: DoorConvertInfo[], - frame: number - ) { - ctx.clearRect(0, 0, 480, 480); - convert.forEach(v => { - core.drawIcon(ctx, v[0], v[1] * 32, v[2] * 32, 32, 32, frame); - }); - } - export function doorConvert( x?: number, y?: number,