mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: >1 factor
This commit is contained in:
1 parent
3c51f4f94a
commit
19a2492555
3 files changed
+10
-2
No files matched your search
@@ -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
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "blitzkit",
|
||||
"private": true,
|
||||
"version": "1.27.14",
|
||||
"version": "1.27.15",
|
||||
"description": "🎉 Tools for everything World of Tanks Blitz",
|
||||
"type": "module",
|
||||
"types": "./types.d.ts",
|
||||
|
||||
+2
-1
@@ -21,6 +21,7 @@ export function AssaultRangesVisualizer({ ranges: _ranges, stats }: Props) {
|
||||
fakeDistance: fakeLog(range.distance / maxDistance, 2),
|
||||
}));
|
||||
const maxFakeDistance = ranges.at(-1)!.fakeDistance;
|
||||
const maxFactor = ranges[0].factor;
|
||||
|
||||
const { strings } = useLocale();
|
||||
|
||||
@@ -81,7 +82,7 @@ export function AssaultRangesVisualizer({ ranges: _ranges, stats }: Props) {
|
||||
return (
|
||||
<Box
|
||||
width={`${fraction * 100}%`}
|
||||
height={`${range.factor * 100}%`}
|
||||
height={`${(range.factor / maxFactor) * 100}%`}
|
||||
style={{
|
||||
background: `linear-gradient(45deg, ${color1}, ${color0})`,
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user