fix: 装备栏

This commit is contained in:
unanmed 2025-10-14 14:06:42 +08:00
parent 6ef75b99c2
commit ce1435be3a
2 changed files with 3 additions and 22 deletions

View File

@ -25,7 +25,7 @@ export function getAddStatus(equip: Equip) {
const value = Math.floor(
(equip.value[v] ?? 0) * core.getBuff(v) +
(core.status.hero[v as keyof HeroStatus] *
(equip.percentage[v] ?? 0)) /
(equip.percentage?.[v] ?? 0)) /
100
);
@ -77,7 +77,8 @@ export function getNowStatus(nowEquip?: Equip, onCol: boolean = false) {
(nowEquip.value[v] ?? 0) * core.getBuff(v)
);
const per = Math.floor(
(nowEquip.percentage[v] * core.getStatus(v)) / 100
((nowEquip.percentage?.[v] ?? 0) * core.getStatus(v)) /
100
);
add += isNaN(per) ? 0 : per;
}

View File

@ -865,26 +865,6 @@ main.floors.sample1=
"icon": "man",
"text": "试着给我添加一个隐藏事件让我消失吧!"
}
],
"5,9": [
{
"type": "choices",
"text": "选择剑或者盾 11111111111111111111 111111111111111",
"choices": [
{
"text": "剑",
"action": [
{
"type": "openDoor",
"loc": [
3,
3
]
}
]
}
]
}
]
},
"changeFloor": {