mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-02 00:14:30 +08:00
第二章一区
This commit is contained in:
1 parent
33c147421e
commit
98123bede8
43 files changed
+1834
-698
No files matched your search
@@ -23,7 +23,9 @@ export function getAddStatus(equip: Equip) {
|
||||
{keys.map(v => {
|
||||
const value =
|
||||
(equip.value[v] ?? 0) +
|
||||
core.status.hero[v] * (equip.percentage[v] ?? 0);
|
||||
Math.floor(
|
||||
(core.status.hero[v] * (equip.percentage[v] ?? 0)) / 100
|
||||
);
|
||||
|
||||
return (
|
||||
<span style="display: flex">
|
||||
@@ -71,7 +73,9 @@ export function getNowStatus(nowEquip?: Equip, onCol: boolean = false) {
|
||||
let add = 0;
|
||||
if (has(nowEquip)) {
|
||||
add += nowEquip.value[v] ?? 0;
|
||||
const per = nowEquip.percentage[v] * core.getStatus(v);
|
||||
const per = Math.floor(
|
||||
(nowEquip.percentage[v] * core.getStatus(v)) / 100
|
||||
);
|
||||
add += isNaN(per) ? 0 : per;
|
||||
}
|
||||
if (onCol) add = -add;
|
||||
|
||||
@@ -44,7 +44,7 @@ export function splitArea() {
|
||||
if (used.includes(id) || core.status.maps[id].deleted) continue;
|
||||
const data = getMapData(id, true);
|
||||
used.push(...data.maps);
|
||||
if (data.maps.length > 0) {
|
||||
if (data.maps.length > 1) {
|
||||
const title = core.status.maps[id].title;
|
||||
area[title] = data.maps;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user