Skip to content

Commit f00afb1

Browse files
committed
eggsss
1 parent 56f9547 commit f00afb1

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/utils/statNames.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ export function formatStatValue(value: number, statId?: string): string {
110110

111111
// Special handling for HealthRegen and LifeSteal which are often small "Point" values (e.g. 1.32%)
112112
// If we multiply 1.32 * 100 we get 132%, which is wrong.
113-
// So for these, we treat anything > 0.05 as a Point (Keep).
113+
// So for these, we treat anything > 0.5 as a Point (Keep).
114114
if (statId && ['HealthRegen', 'LifeSteal', 'BlockChance'].includes(statId)) {
115-
val = value > 0.05 ? value : value * 100;
115+
val = value > 0.5 ? value : value * 100;
116116
} else {
117117
// Standard Heuristic
118118
val = value > 2 ? value : value * 100;

src/utils/statsCalculator.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,17 @@ export function getMountStats(
410410
});
411411
}
412412

413+
// Include manual passive stats
414+
if (mount.secondaryStats) {
415+
for (const secondary of mount.secondaryStats) {
416+
stats.push({
417+
statType: secondary.statId,
418+
statNature: 'Multiplier',
419+
value: secondary.value,
420+
});
421+
}
422+
}
423+
413424
return stats;
414425
}
415426

0 commit comments

Comments
 (0)