第二章一区

This commit is contained in:
AncTe committed 2023-01-05 22:21:40 +08:00
1 parent 33c147421e
commit 98123bede8
43 files changed
+1834 -698

No files matched your search

+6 -2
View File
@@ -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;
+1 -1
View File
@@ -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;
}