forked from phenom/healer-man
Release Healer Man 0.1.6
This commit is contained in:
1 parent
55cfd43d66
commit
b12fb84859
96 files changed
+10874
-609
No files matched your search
@@ -6,10 +6,15 @@ interface CoaAbilityRuntimeSnapshot {
|
||||
readonly schemaVersion: 1;
|
||||
readonly abilitiesByClass: Readonly<Record<CoaClassId, readonly AbilityDefinition[]>>;
|
||||
readonly resourcesByClass: Readonly<Record<CoaClassId, ClassResourceProfile>>;
|
||||
readonly triggeredAbilitiesBySpellId: Readonly<Record<number, AbilityDefinition>>;
|
||||
}
|
||||
|
||||
const snapshot = generated as unknown as CoaAbilityRuntimeSnapshot;
|
||||
|
||||
export const COA_RUNTIME_ABILITIES_BY_CLASS = snapshot.abilitiesByClass;
|
||||
export const COA_RUNTIME_CLASS_RESOURCES = snapshot.resourcesByClass;
|
||||
export const COA_RUNTIME_TRIGGERED_ABILITIES_BY_SPELL_ID = snapshot.triggeredAbilitiesBySpellId;
|
||||
|
||||
export function coaTriggeredAbilityBySpellId(spellId: number): AbilityDefinition | null {
|
||||
return COA_RUNTIME_TRIGGERED_ABILITIES_BY_SPELL_ID[spellId] ?? null;
|
||||
}
|
||||
Reference in new issue
Block a user