mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-01 15:00:36 +01:00
feat: ea and cs
This commit is contained in:
1 parent
a0c9895122
commit
9488602f5b
17 files changed
+134
-43
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { EquipmentPreset } from '../core/blitzkrieg/equipmentDefinitions';
|
||||
import { EquipmentMatrix } from '../stores/tankopedia';
|
||||
|
||||
export function useAppliedEquipments(
|
||||
matrix: EquipmentMatrix,
|
||||
preset: EquipmentPreset,
|
||||
) {
|
||||
const flatMatrix = matrix.flat();
|
||||
return preset.flat().map((options, index) => options[flatMatrix[index]]);
|
||||
}
|
||||
Reference in new issue
Block a user