fix: >1 factor

This commit is contained in:
TrèsAbhi committed 2025-08-07 11:39:28 -05:00
1 parent 3c51f4f94a
commit 19a2492555
3 files changed
+10 -2

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# BlitzKit 1.27.15
I did not see this coming
## Fixes
- The Assault Shell graph now supports damage factors of above 100% now
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "blitzkit", "name": "blitzkit",
"private": true, "private": true,
"version": "1.27.14", "version": "1.27.15",
"description": "🎉 Tools for everything World of Tanks Blitz", "description": "🎉 Tools for everything World of Tanks Blitz",
"type": "module", "type": "module",
"types": "./types.d.ts", "types": "./types.d.ts",
@@ -21,6 +21,7 @@ export function AssaultRangesVisualizer({ ranges: _ranges, stats }: Props) {
fakeDistance: fakeLog(range.distance / maxDistance, 2), fakeDistance: fakeLog(range.distance / maxDistance, 2),
})); }));
const maxFakeDistance = ranges.at(-1)!.fakeDistance; const maxFakeDistance = ranges.at(-1)!.fakeDistance;
const maxFactor = ranges[0].factor;
const { strings } = useLocale(); const { strings } = useLocale();
@@ -81,7 +82,7 @@ export function AssaultRangesVisualizer({ ranges: _ranges, stats }: Props) {
return ( return (
<Box <Box
width={`${fraction * 100}%`} width={`${fraction * 100}%`}
height={`${range.factor * 100}%`} height={`${(range.factor / maxFactor) * 100}%`}
style={{ style={{
background: `linear-gradient(45deg, ${color1}, ${color0})`, background: `linear-gradient(45deg, ${color1}, ${color0})`,
}} }}