mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: some linting for new proto 7
This commit is contained in:
1 parent
95bb67bcf1
commit
0808bb0d9b
4 files changed
+19
-10
No files matched your search
@@ -10,7 +10,7 @@ export function availableProvisions(
|
||||
gun: GunDefinition,
|
||||
provisionDefinitions: ProvisionDefinitions,
|
||||
) {
|
||||
return Object.values(provisionDefinitions).filter((provision) =>
|
||||
return Object.values(provisionDefinitions.provisions).filter((provision) =>
|
||||
checkConsumableProvisionInclusivity(provision, tank, gun),
|
||||
);
|
||||
}
|
||||
@@ -16,7 +16,7 @@ export function ProvisionsManager({
|
||||
}: ProvisionsManagerProps) {
|
||||
return (
|
||||
<Flex wrap="wrap" gap="2">
|
||||
{provisions.map((provision, index) => {
|
||||
{provisions.map((provision) => {
|
||||
const isSelected = selected.includes(provision);
|
||||
|
||||
return (
|
||||
|
||||
+8
-7
@@ -20,13 +20,14 @@ export function Consumables() {
|
||||
const mutateDuel = Duel.useMutation();
|
||||
const protagonist = Duel.use((state) => state.protagonist);
|
||||
const consumables = Duel.use((state) => state.protagonist.consumables);
|
||||
const consumablesList = Object.values(consumableDefinitions).filter(
|
||||
(consumable) =>
|
||||
checkConsumableProvisionInclusivity(
|
||||
consumable,
|
||||
protagonist.tank,
|
||||
protagonist.gun,
|
||||
),
|
||||
const consumablesList = Object.values(
|
||||
consumableDefinitions.consumables,
|
||||
).filter((consumable) =>
|
||||
checkConsumableProvisionInclusivity(
|
||||
consumable,
|
||||
protagonist.tank,
|
||||
protagonist.gun,
|
||||
),
|
||||
);
|
||||
const cooldownBooster = Duel.use(
|
||||
(state) => state.protagonist.cooldownBooster,
|
||||
|
||||
+9
-1
@@ -42,6 +42,14 @@ interface ModuleWithUnlocks {
|
||||
unlocks: Unlock[];
|
||||
}
|
||||
|
||||
const moduleTypeTypeIconName: Record<ModuleType, string> = {
|
||||
[ModuleType.VEHICLE]: '',
|
||||
[ModuleType.ENGINE]: 'engine',
|
||||
[ModuleType.TRACKS]: 'chassis',
|
||||
[ModuleType.TURRET]: 'turret',
|
||||
[ModuleType.GUN]: 'gun',
|
||||
};
|
||||
|
||||
function ModuleButton({
|
||||
tier,
|
||||
selected,
|
||||
@@ -113,7 +121,7 @@ function ModuleButton({
|
||||
src={
|
||||
isTank
|
||||
? tankIcon(unlock.id)
|
||||
: asset(`icons/modules/${unlock.type}.webp`)
|
||||
: asset(`icons/modules/${moduleTypeTypeIconName[unlock.type]}.webp`)
|
||||
}
|
||||
style={{
|
||||
width: isTank ? 64 : 32,
|
||||
|
||||
Reference in new issue
Block a user