fix: round base card stats up to match in-game power
Publish GitHub Pages output / publish (push) Successful in 44s
Publish GitHub Pages output / publish (push) Successful in 44s
This commit is contained in:
@@ -604,10 +604,12 @@ const cardSummary = {
|
||||
.sort(([left], [right]) => Number(card[right]) - Number(card[left]))[0][1];
|
||||
const maxLevel = cardRecord.progression.levels.at(-1);
|
||||
const parameterBaseValue = Number(maxLevel?.parameterBaseValue ?? 0);
|
||||
// Round each base stat up before applying awakening and other bonuses.
|
||||
// Verified against the in-game unit power breakdown (2026-09-06).
|
||||
const statsAtMaxLevel = {
|
||||
performance: Math.round(parameterBaseValue * Number(card.performancePermilMultiply ?? 0) / 1000),
|
||||
technique: Math.round(parameterBaseValue * Number(card.techniquePermilMultiply ?? 0) / 1000),
|
||||
sense: Math.round(parameterBaseValue * Number(card.sensePermilMultiply ?? 0) / 1000)
|
||||
performance: Math.ceil(parameterBaseValue * Number(card.performancePermilMultiply ?? 0) / 1000),
|
||||
technique: Math.ceil(parameterBaseValue * Number(card.techniquePermilMultiply ?? 0) / 1000),
|
||||
sense: Math.ceil(parameterBaseValue * Number(card.sensePermilMultiply ?? 0) / 1000)
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user