mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: tankopedia compare acknoledge selected equipment
This commit is contained in:
1 parent
fcd084a86f
commit
0e6b0087ce
1 file changed
+5
-2
+5
-2
@@ -70,6 +70,9 @@ export function InfoWithDelta({
|
|||||||
state.protagonist.shell,
|
state.protagonist.shell,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
const equipmentMatrix = Duel.use(
|
||||||
|
(state) => state.protagonist.equipmentMatrix,
|
||||||
|
);
|
||||||
const others = useMemo(() => {
|
const others = useMemo(() => {
|
||||||
const defaultSkills = createDefaultSkills(skillDefinitions);
|
const defaultSkills = createDefaultSkills(skillDefinitions);
|
||||||
|
|
||||||
@@ -106,7 +109,7 @@ export function InfoWithDelta({
|
|||||||
provisions: member.provisions,
|
provisions: member.provisions,
|
||||||
engine: member.engine,
|
engine: member.engine,
|
||||||
gun: member.gun,
|
gun: member.gun,
|
||||||
equipmentMatrix: member.equipmentMatrix,
|
equipmentMatrix: equipmentMatrix,
|
||||||
shell: member.gun.gun_type!.value.base.shells[shellIndex],
|
shell: member.gun.gun_type!.value.base.shells[shellIndex],
|
||||||
stockEngine: tank.engines[0],
|
stockEngine: tank.engines[0],
|
||||||
stockGun: tank.turrets[0].guns[0],
|
stockGun: tank.turrets[0].guns[0],
|
||||||
@@ -133,7 +136,7 @@ export function InfoWithDelta({
|
|||||||
|
|
||||||
return othersValue !== undefined;
|
return othersValue !== undefined;
|
||||||
}) as TankCharacteristics[];
|
}) as TankCharacteristics[];
|
||||||
}, [relativeAgainst, shellIndex]);
|
}, [relativeAgainst, shellIndex, equipmentMatrix]);
|
||||||
const betterTanks = others.filter((tank) => {
|
const betterTanks = others.filter((tank) => {
|
||||||
const othersValue =
|
const othersValue =
|
||||||
typeof props.value === 'function'
|
typeof props.value === 'function'
|
||||||
|
|||||||
Reference in new issue
Block a user