Skip to content

Commit

Permalink
show negative ap scaled values in ability descriptions (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpolletvillard authored Apr 9, 2024
1 parent fb161b2 commit d1f8aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/public/dist/client/changelog/patch-4.10.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
# Bugfix

- Fix Meteor Mash ability targeting
- Ability descriptions now show properly scaled values when AP is negative

# Misc

Expand Down
3 changes: 1 addition & 2 deletions app/public/src/pages/utils/descriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ export function addIconsToDescription(description: string, tier = 0, ap = 0) {
)}
{array.map((v, j) => {
const separator = j < array.length - 1 ? "/" : ""
const value =
ap > 0 ? Math.round(Number(v) * (1 + (scale * ap) / 100)) : v
const value = Math.round(Number(v) * (1 + (scale * ap) / 100))
const active =
tier === undefined ||
array.length === 1 ||
Expand Down

0 comments on commit d1f8aec

Please sign in to comment.