mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
fix: some filtering
This commit is contained in:
1 parent
532d677491
commit
a8cdc96382
2 files changed
+36
-12
No files matched your search
@@ -70,6 +70,30 @@ export async function filterTank(
|
||||
)
|
||||
)
|
||||
)
|
||||
)) &&
|
||||
(filters.abilities.length === 0 ||
|
||||
filters.abilities.every((ability) =>
|
||||
tank.turrets.some((turret) =>
|
||||
turret.guns.some((gun) =>
|
||||
checkConsumableProvisionInclusivity(
|
||||
consumableDefinitions.consumables[ability],
|
||||
tank,
|
||||
gun
|
||||
)
|
||||
)
|
||||
)
|
||||
)) &&
|
||||
(filters.powers.length === 0 ||
|
||||
filters.powers.every((power) =>
|
||||
tank.turrets.some((turret) =>
|
||||
turret.guns.some((gun) =>
|
||||
checkConsumableProvisionInclusivity(
|
||||
provisionDefinitions.provisions[power],
|
||||
tank,
|
||||
gun
|
||||
)
|
||||
)
|
||||
)
|
||||
))
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user