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,