fix: correct player level

This commit is contained in:
2026-03-20 13:20:41 +07:00 Unverified
parent 4d8639b2e4
commit 1a265bf76e
+5 -1
View File
@@ -188,9 +188,13 @@ export function card(app: App) {
);
const charLvl = char.propMap?.[4001].val ?? 1;
const ascension = char.propMap?.[1002].val ?? 1;
const promoteMaxLevelMap = [20, 40, 50, 60, 70, 80, 90, 100];
const charLvlMax =
promoteMaxLevelMap[char.propMap?.[1002].val ?? 1];
ascension * 10 +
(ascension > 0 ? 10 : 0) +
20 +
(charLvl > 90 ? 10 : 0);
const statRows = buildDisplayRows(char, locs);