mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 12:49:25 +08:00
fix: 伤害小数
This commit is contained in:
parent
8d8be07052
commit
ef3fbd73a9
@ -1090,7 +1090,7 @@ export function calDamageWith(
|
||||
if (damage < dm) damage = dm;
|
||||
}
|
||||
|
||||
return damage;
|
||||
return Math.floor(damage);
|
||||
}
|
||||
|
||||
export function ensureFloorDamage(floorId: FloorIds) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user