mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
imports
This commit is contained in:
1 parent
1a7a1223d5
commit
33ebbbeb65
39 files changed
+153
-208
No files matched your search
@@ -1,3 +0,0 @@
|
||||
import { fetchEquipmentDefinitions } from '@blitzkit/core';
|
||||
|
||||
export const awaitableEquipmentDefinitions = fetchEquipmentDefinitions();
|
||||
@@ -1,3 +0,0 @@
|
||||
import { fetchSkillDefinitions } from '@blitzkit/core';
|
||||
|
||||
export const awaitableSkillDefinitions = fetchSkillDefinitions();
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { EquipmentMatrix } from '../../stores/duel';
|
||||
import { awaitableEquipmentDefinitions } from '../awaitables/equipmentDefinitions';
|
||||
import type { EquipmentMatrix } from "../../stores/duel";
|
||||
import { api } from "./api";
|
||||
|
||||
const equipmentDefinitions = await awaitableEquipmentDefinitions;
|
||||
const equipmentDefinitions = await api.equipmentDefinitions();
|
||||
|
||||
export function hasEquipment(
|
||||
id: number,
|
||||
@@ -16,7 +16,7 @@ export function hasEquipment(
|
||||
|
||||
if (choice === 0) return false;
|
||||
|
||||
const equipped = slot[choice === -1 ? 'left' : 'right'];
|
||||
const equipped = slot[choice === -1 ? "left" : "right"];
|
||||
|
||||
return equipped === id;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user