fix: 伤害小数

This commit is contained in:
unanmed 2024-10-02 22:32:40 +08:00
parent 8d8be07052
commit ef3fbd73a9
2 changed files with 1 additions and 12 deletions

View File

@ -1090,7 +1090,7 @@ export function calDamageWith(
if (damage < dm) damage = dm;
}
return damage;
return Math.floor(damage);
}
export function ensureFloorDamage(floorId: FloorIds) {

View File

@ -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,