Skip to content

Commit

Permalink
maybe fix artifact lifesteal values, well see
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisinajar committed Feb 7, 2024
1 parent f4e57bf commit e8a27ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/artifact-modifiers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ export function modifiersForArtifact(
}

function modifierText(modifier: ArtifactAttribute): string {
const percentage = `${Math.round((modifier.magnitude - 1) * 1000) / 10}%`;
const percentage =
modifier.magnitude > 1
? `${Math.round((modifier.magnitude - 1) * 1000) / 10}%`
: `${Math.round(modifier.magnitude * 1000) / 10}%`;

switch (modifier.type) {
case ArtifactAttributeType.BonusStrength:
return `${percentage} increased strength`;
Expand Down

0 comments on commit e8a27ed

Please sign in to comment.