mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-10-14 15:42:59 +08:00
fix: 装备栏
This commit is contained in:
parent
6ef75b99c2
commit
ce1435be3a
@ -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;
|
||||
}
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user