Skip to content

Commit

Permalink
More accurate circles for talent grid
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Feb 10, 2025
1 parent 545d2fc commit 4cc64ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/item-popup/ItemTalentGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { percent } from 'app/shell/formatters';
import { maxOf } from 'app/utils/collections';
import clsx from 'clsx';
import { memo } from 'react';
Expand Down Expand Up @@ -82,7 +83,7 @@ export default memo(function ItemTalentGrid({
transform="rotate(-90)"
className="talent-node-xp"
strokeWidth={node.xp ? 2 : 0}
strokeDasharray={`${(100 * node.xp) / node.xpRequired} 100`}
strokeDasharray={`${percent(node.xp / node.xpRequired)} 100`}
/>
<image
className="talent-node-img"
Expand Down

0 comments on commit 4cc64ee

Please sign in to comment.