@kar-mi/spirit-vale-tools-statuses 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @kar-mi/spirit-vale-tools-statuses
2
+
3
+ Build-scoped Spirit Vale status effect catalog utilities.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ bun add @kar-mi/spirit-vale-tools-statuses
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { resolveFishNetStatus, statusDurationSeconds } from "@kar-mi/spirit-vale-tools-statuses";
15
+
16
+ const status = resolveFishNetStatus("Burn");
17
+ if (status) {
18
+ console.log(status.displayName, status.effects);
19
+ console.log("duration:", statusDurationSeconds(status, 1));
20
+ }
21
+ ```
22
+
23
+ `resolveFishNetStatus` returns `undefined` for unknown statuses; use
24
+ `requireFishNetStatus` when a missing entry should throw instead.
25
+
26
+ See the [package guide](https://github.com/kar-mi/spirit-vale-tools/blob/main/docs/packages.md) for registry setup and usage.
@@ -0,0 +1,37 @@
1
+ export interface FishNetStatusEffect {
2
+ readonly id: string;
3
+ readonly duration: number;
4
+ readonly durationPerLevel: number;
5
+ readonly chance: number;
6
+ readonly chancePerLevel: number;
7
+ readonly stacks: number;
8
+ readonly stacksPerLevel: number;
9
+ }
10
+ export interface FishNetStatusDefinition {
11
+ readonly id: string;
12
+ readonly displayName: string;
13
+ readonly spriteId?: string;
14
+ readonly isDebuff: boolean;
15
+ readonly maxLevel: number;
16
+ readonly fixedDuration: boolean;
17
+ readonly effects: readonly FishNetStatusEffect[];
18
+ }
19
+ export interface FishNetStatusCatalog {
20
+ readonly buildFingerprint: string;
21
+ readonly statuses: readonly FishNetStatusDefinition[];
22
+ }
23
+ export declare function loadBundledStatusCatalog(buildFingerprint?: string): FishNetStatusCatalog;
24
+ export declare class FishNetStatusDirectory {
25
+ private readonly definitions;
26
+ constructor(catalog?: FishNetStatusCatalog);
27
+ resolve(statusId: string | null | undefined): FishNetStatusDefinition | undefined;
28
+ require(statusId: string): FishNetStatusDefinition;
29
+ }
30
+ export declare function resolveFishNetStatus(statusId: string | null | undefined): FishNetStatusDefinition | undefined;
31
+ export declare function requireFishNetStatus(statusId: string): FishNetStatusDefinition;
32
+ /**
33
+ * Seconds a status lasts at the given level, or `undefined` when the catalog has no
34
+ * duration data for it (many entries are permanent auras/markers with no StatusEffects row).
35
+ */
36
+ export declare function statusDurationSeconds(definition: FishNetStatusDefinition | undefined, level: number): number | undefined;
37
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;CACvD;AAID,wBAAgB,wBAAwB,CACtC,gBAAgB,SAAiC,GAChD,oBAAoB,CAKtB;AAED,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8C;IAE1E,YAAY,OAAO,GAAE,oBAAiD,EAOrE;IAED,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,uBAAuB,GAAG,SAAS,CAGhF;IAED,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,uBAAuB,CAIjD;CACF;AAID,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,uBAAuB,GAAG,SAAS,CAE7G;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,uBAAuB,CAE9E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,uBAAuB,GAAG,SAAS,EAC/C,KAAK,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,CAOpB"}
@@ -0,0 +1,8 @@
1
+ export declare class StatusCatalogDefinitions {
2
+ private constructor();
3
+ static readonly catalog: {
4
+ readonly buildFingerprint: "53305f369c4176d4b7644d06ad7f0cdc5c9bda6563144d0ce8cff3d12c520158";
5
+ readonly statuses: readonly import("../catalog.ts").FishNetStatusDefinition[];
6
+ };
7
+ }
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAIA,qBAAa,wBAAwB;IACnC,OAAO,eAAiB;IAExB,MAAM,CAAC,QAAQ,CAAC,OAAO;;;MAGmB;CAC3C"}
@@ -0,0 +1,7 @@
1
+ import type { FishNetStatusDefinition } from "../catalog.ts";
2
+ /** Hand-ported from the Spirit Vale data-mine's statuses.json. */
3
+ export declare class StatusDefinitions {
4
+ private constructor();
5
+ static readonly values: readonly FishNetStatusDefinition[];
6
+ }
7
+ //# sourceMappingURL=statuses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statuses.d.ts","sourceRoot":"","sources":["../../src/definitions/statuses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,kEAAkE;AAClE,qBAAa,iBAAiB;IAC5B,OAAO,eAAiB;IAExB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,uBAAuB,EAAE,CA0LxD;CACH"}
@@ -0,0 +1,3 @@
1
+ export { FishNetStatusDirectory, loadBundledStatusCatalog, requireFishNetStatus, resolveFishNetStatus, statusDurationSeconds, } from "./catalog.ts";
2
+ export type { FishNetStatusCatalog, FishNetStatusDefinition, FishNetStatusEffect, } from "./catalog.ts";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,267 @@
1
+ // @bun
2
+ // src/catalog.ts
3
+ import { CURRENT_GAME_BUILD_FINGERPRINT as CURRENT_GAME_BUILD_FINGERPRINT2 } from "@kar-mi/spirit-vale-tools-capture";
4
+
5
+ // src/definitions/index.ts
6
+ import { CURRENT_GAME_BUILD_FINGERPRINT } from "@kar-mi/spirit-vale-tools-capture";
7
+
8
+ // src/definitions/statuses.ts
9
+ class StatusDefinitions {
10
+ constructor() {}
11
+ static values = [
12
+ { id: "Aegis", displayName: "Aegis", spriteId: "3-Aegis", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [{ id: "Aegis", duration: 3, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
13
+ { id: "Aggressive", displayName: "Aggressive", spriteId: "Conditions_Immune_12", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Taunt", duration: 5, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
14
+ { id: "Agility", displayName: "Inner Focus", spriteId: "T_Icon_Gold_81", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Agility", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
15
+ { id: "Alacrity", displayName: "Alacrity", spriteId: "Conditions_32", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
16
+ { id: "Anathema", displayName: "Anathema", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "SacredBlast", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
17
+ { id: "AngelicBlessing", displayName: "Angelic Blessing", spriteId: "47-EnchantArmorHoly", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "AngelicBlessing", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
18
+ { id: "ArcaneSigil", displayName: "Arcane Sigil", spriteId: "T_Icon_Energy_55", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "ArcaneSigil", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
19
+ { id: "ArmorBreak", displayName: "Armor Break", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [] },
20
+ { id: "Armored", displayName: "Armored", spriteId: "Skills_247", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
21
+ { id: "Barrier", displayName: "Sacred Aegis", spriteId: "16-barrier", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Barrier", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
22
+ { id: "Berserk", displayName: "Berserk", spriteId: "Berserker11", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
23
+ { id: "BleedCoating", displayName: "Red Maw", spriteId: "Skills_339", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "BleedCoating", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
24
+ { id: "Bleeding", displayName: "Bleeding", spriteId: "Conditions_2", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "Cyclone", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "NPC_WideBleed", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "BleedCoating", duration: 5, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
25
+ { id: "Blessing", displayName: "Benediction", spriteId: "49-blessing", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Blessing", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
26
+ { id: "Blind", displayName: "Blind", spriteId: "Conditions_3", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "FlashGrenade", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "DivinePunishment", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Tempest", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0.05, stacks: 0, stacksPerLevel: 0 }, { id: "SmokeScreen", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
27
+ { id: "BlindImmunity", displayName: "Blind Immunity", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Cure", duration: 0, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "CureAll", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
28
+ { id: "BloodCrash", displayName: "Blood Crash", spriteId: "T_Icon_BloodCombat_31", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "BloodCrash", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
29
+ { id: "BloodFrenzy", displayName: "Blood Frenzy", spriteId: "Berserker16", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
30
+ { id: "BloodLust", displayName: "Blood Lust", spriteId: "T_Icon_BloodCombat_39", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
31
+ { id: "Bloodprice", displayName: "Bloodprice", spriteId: "T_Icon_BloodCombat_13", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
32
+ { id: "BoostAxeArc", displayName: "Bloodtrail", spriteId: "Barbarian18", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
33
+ { id: "BoostAxeVortex", displayName: "Warmaw", spriteId: "Barbarian13", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
34
+ { id: "BoostBash", displayName: "Breakjaw", spriteId: "Barbarian20", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
35
+ { id: "BoostSmite", displayName: "Martyr's Oath", spriteId: "50-smite", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
36
+ { id: "BoostStomp", displayName: "Gorepath", spriteId: "Skills_593", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
37
+ { id: "Burning", displayName: "Burning", spriteId: "Conditions_9", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "Fireball", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Combustion", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "FirePillar", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "FireField", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
38
+ { id: "BurningImmunity", displayName: "Burning Immunity", spriteId: "Conditions_Immune_9", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "StatusRecovery", duration: 0, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
39
+ { id: "CastReady", displayName: "Cast Ready", spriteId: "Skills_556", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [{ id: "ShadowFeint", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "ShadowSeal", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
40
+ { id: "Cloaking", displayName: "Cloaking", spriteId: "Skills_510", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Cloaking", duration: 0, durationPerLevel: 6, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "ShadowFeint", duration: 10, durationPerLevel: 4, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "SmokeScreen", duration: 0, durationPerLevel: 5, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
41
+ { id: "CombatMounted", displayName: "Combat Mounted", spriteId: "T_Icon_Nature_70", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
42
+ { id: "ComboReady", displayName: "Combo Ready", spriteId: "T_Icon_BloodCombat_16", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [{ id: "AerialShot", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Bash", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "BoneSpear", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Cloaking", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Consecration", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "FanOfKnives", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "FireRelease", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "FlashBang", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "GroundSlam", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Harvest", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "IceRelease", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "JudgementBlade", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "JumpShot", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "LightningRelease", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "PiercingShot", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "ShadowStep", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "ShieldBash", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "ShoutStun", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "ShrapnelShot", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "ShurikenFan", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "SlowTrap", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "SmokeScreen", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "SpearThrust", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Stomp", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "StrafingVolley", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "SuppressiveShot", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "TwistOfFate", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "VenomStrike", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "WildCharge", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
43
+ { id: "Conjurer", displayName: "Conjurer", spriteId: "T_Icon_Arcane_21", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
44
+ { id: "CorpseBarrier", displayName: "Corpse Barrier", spriteId: "Necromancer15", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "CorpseBarrier", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
45
+ { id: "CorpseExplosion", displayName: "Corpse Explosion", spriteId: "Necromancer14", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "CorpseExplosionEnemy", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
46
+ { id: "Counter", displayName: "Counter", spriteId: "Skills_331", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [{ id: "Counter", duration: 2, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
47
+ { id: "Curse", displayName: "Curse", spriteId: "Conditions_33", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "FieldCurse", duration: 10, durationPerLevel: 0, chance: 0.5, chancePerLevel: 0.1, stacks: 0, stacksPerLevel: 0 }, { id: "NPC_WideCurse", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
48
+ { id: "CurseImmunity", displayName: "Curse Immunity", spriteId: "Conditions_Immune_33", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Blessing", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
49
+ { id: "DeathBond", displayName: "Death Bond", spriteId: "T_Icon_Shadow_88", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "DeathBond", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
50
+ { id: "DeathBramble", displayName: "Necrotic Presence", spriteId: "48-DeathBramble", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
51
+ { id: "DeathBrambleEnemy", displayName: "Necrotic Presence Enemy", spriteId: "48-DeathBramble", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "DeathBrambleEnemy", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
52
+ { id: "Decay", displayName: "Decay", spriteId: "Conditions_5", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "CorpseExplosionEnemy", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "BoneSpear", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
53
+ { id: "DecayImmunity", displayName: "Decay Immunity", spriteId: "Conditions_Immune_5", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "StatusRecovery", duration: 0, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
54
+ { id: "Defiance", displayName: "Defiance", spriteId: "Conditions_25", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
55
+ { id: "Divinity", displayName: "Divinity", spriteId: "25-Divinity", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
56
+ { id: "EarthAttunement", displayName: "Earth Attunement", spriteId: "earth", isDebuff: false, maxLevel: 5, fixedDuration: false, effects: [] },
57
+ { id: "EarthBarrier", displayName: "Earth Barrier", spriteId: "Geomancer5", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
58
+ { id: "EarthBarrier2", displayName: "Arcane Barrier", spriteId: "Geomancer5", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
59
+ { id: "EarthExposure", displayName: "Earth Exposure", spriteId: "earth", isDebuff: true, maxLevel: 5, fixedDuration: false, effects: [{ id: "FirePillar", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
60
+ { id: "EclipsingAegis", displayName: "Eclipsing Aegis", spriteId: "42-barrier", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EclipsingAegis", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
61
+ { id: "ElementalAttunement", displayName: "Elemental Attunement", spriteId: "Enchanter20", isDebuff: false, maxLevel: 5, fixedDuration: false, effects: [] },
62
+ { id: "Elusive", displayName: "Elusive", spriteId: "T_Icon_Unholy_63", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [] },
63
+ { id: "EnchantArmorHoly", displayName: "Sanctify", spriteId: "47-EnchantArmorHoly", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantArmorHoly", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
64
+ { id: "EnchantEarth", displayName: "Enchant Earth", spriteId: "Skills_584", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantEarth", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
65
+ { id: "EnchantFire", displayName: "Enchant Fire", spriteId: "T_Icon_Fire_80", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantFire", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
66
+ { id: "EnchantHoly", displayName: "Enchant Holy", spriteId: "22-endowholy", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantHoly", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
67
+ { id: "EnchantPoison", displayName: "Enchant Poison", spriteId: "Skills_497", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantPoison", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
68
+ { id: "EnchantShadow", displayName: "Enchant Shadow", spriteId: "Skills_514", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantShadow", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
69
+ { id: "EnchantUndead", displayName: "Enchant Undead", spriteId: "T_Icon_Shadow_77", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantUndead", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
70
+ { id: "EnchantWater", displayName: "Enchant Water", spriteId: "T_Icon_Energy_43", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantWater", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
71
+ { id: "EnchantWind", displayName: "Enchant Wind", spriteId: "Skills_379", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnchantWind", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
72
+ { id: "Endure", displayName: "Endure", spriteId: "T_Icon_Energy_72", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Endure", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
73
+ { id: "EnergyShield", displayName: "Energy Shield", spriteId: "Skills_362", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "EnergyShield", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
74
+ { id: "Enrage", displayName: "Enrage", spriteId: "Berserker18", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Execute", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Cyclone", duration: 0, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
75
+ { id: "ExorcistBrand", displayName: "Exorcist's Brand", spriteId: "14-exorcism", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [] },
76
+ { id: "Fanaticism", displayName: "Fanaticism", spriteId: "T_Icon_Fire_104", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
77
+ { id: "Ferocity", displayName: "Ferocity", spriteId: "T_Icon_BloodCombat_89", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Ferocity", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
78
+ { id: "FireAttunement", displayName: "Fire Attunement", spriteId: "fire", isDebuff: false, maxLevel: 5, fixedDuration: false, effects: [] },
79
+ { id: "FireBarrier", displayName: "Fire Barrier", spriteId: "Pyromancer16", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
80
+ { id: "FireBarrier2", displayName: "Arcane Barrier", spriteId: "Pyromancer16", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
81
+ { id: "FireExposure", displayName: "Fire Exposure", spriteId: "fire", isDebuff: true, maxLevel: 5, fixedDuration: false, effects: [{ id: "EarthSpikes", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
82
+ { id: "FireRelease", displayName: "Fire Release", spriteId: "Skills_052", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "FireRelease", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
83
+ { id: "Flow", displayName: "Flow", spriteId: "22-scout-flow", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
84
+ { id: "FlowState", displayName: "Flow State", spriteId: "Skills_570", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
85
+ { id: "Focus", displayName: "Focus", spriteId: "Conditions_0", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Sacrament", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
86
+ { id: "FreezingEdge", displayName: "Frost Rounds", spriteId: "sf_s_085", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "FreezingEdge", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
87
+ { id: "Frenzy", displayName: "Frenzy", spriteId: "Conditions_11", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
88
+ { id: "Frozen", displayName: "Frozen", spriteId: "Conditions_10", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "FrostBladeExplosion", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "FreezeGrenade", duration: 10, durationPerLevel: 0, chance: 0.5, chancePerLevel: 0.1, stacks: 0, stacksPerLevel: 0 }, { id: "FreezingField", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0.05, stacks: 0, stacksPerLevel: 0 }, { id: "NPC_Freeze", duration: 3, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "FreezingEdge", duration: 5, durationPerLevel: 1, chance: 0.3, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
89
+ { id: "FrozenImmunity", displayName: "Frozen Immunity", spriteId: "Conditions_Immune_10", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "StatusRecovery", duration: 0, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
90
+ { id: "Fury", displayName: "Fury", spriteId: "Conditions_12", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
91
+ { id: "FuryBond", displayName: "Fury Bond", spriteId: "T_Icon_Fire_132", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "FuryBond", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
92
+ { id: "GameMasterCloaking", displayName: "Game Master Cloaking", spriteId: "Skills_510", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "GameMasterCloaking", duration: 1800, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
93
+ { id: "GospelOfGrace", displayName: "Gospel Of Grace", spriteId: "49-HolyLight", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
94
+ { id: "Grace", displayName: "Divine Grace", spriteId: "34-grace", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Grace", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
95
+ { id: "GraveChill", displayName: "Grave Chill", spriteId: "Necromancer3", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
96
+ { id: "GraveChillEnemy", displayName: "Grave Chill Enemy", spriteId: "Necromancer3", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "GraveChillEnemy", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
97
+ { id: "GuardianBond", displayName: "Guardian Bond", spriteId: "T_Icon_Unholy_04", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "GuardianBond", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
98
+ { id: "GuardianSpirit", displayName: "Guardian Spirit", spriteId: "49-HolyLight", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [{ id: "GuardianSpirit", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
99
+ { id: "Haste", displayName: "Haste", spriteId: "Conditions_14", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Haste", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
100
+ { id: "HighGuard", displayName: "High Guard", spriteId: "29-HighGuard", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
101
+ { id: "HolyAttunement", displayName: "Holy Attunement", spriteId: "holy", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
102
+ { id: "HolyExposure", displayName: "Consecrated", spriteId: "holy", isDebuff: true, maxLevel: 5, fixedDuration: false, effects: [] },
103
+ { id: "HolyShield", displayName: "Holy Shield", spriteId: "33-HolyShield", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "HolyShield", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
104
+ { id: "HonedTechnique", displayName: "Honed Technique", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
105
+ { id: "IceRelease", displayName: "Ice Release", spriteId: "Skills_137", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "IceRelease", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
106
+ { id: "Invoker", displayName: "Invoker", spriteId: "T_Icon_Arcane_26", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
107
+ { id: "IronResponse", displayName: "Iron Response", spriteId: "Skills_301", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
108
+ { id: "LauncherBoost", displayName: "Launcher Boost", spriteId: "sf_s_095", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "ExplosiveGrenade", duration: 3, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
109
+ { id: "LauncherPoison", displayName: "Launcher Poison", spriteId: "151", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "PoisonGrenade", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
110
+ { id: "LifeBond", displayName: "Life Bond", spriteId: "38-LifeBond", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "LifeBond", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
111
+ { id: "LightningCoat", displayName: "Lightning Coat", spriteId: "Skills_366", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
112
+ { id: "LightningReflexes", displayName: "Lightning Reflexes", spriteId: "Skills_397", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "LightningReflexes", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
113
+ { id: "LightningRelease", displayName: "Lightning Release", spriteId: "Skills_355", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "LightningRelease", duration: 4, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
114
+ { id: "LimitBreak", displayName: "Limit Break", spriteId: "T_Icon_Shadow_44", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "LimitBreak", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
115
+ { id: "Lockdown", displayName: "Lockdown", spriteId: "T_Icon_BloodCombat_06", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Lockdown", duration: 0, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
116
+ { id: "MagicExposure", displayName: "Magic Exposure", spriteId: "Conditions_28", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "Damnation", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 2 }, { id: "TetraVortex", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 4 }, { id: "HolyWrathField", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
117
+ { id: "ManaEcho", displayName: "Mana Echo", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
118
+ { id: "Marked", displayName: "Marked", spriteId: "T_Icon_BloodCombat_11", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "Marked", duration: 10, durationPerLevel: 4, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
119
+ { id: "Might", displayName: "Might", spriteId: "Conditions_18", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
120
+ { id: "MindBreak", displayName: "Mind Break", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [] },
121
+ { id: "Mounted", displayName: "Mounted", spriteId: "T_Icon_Gold_64", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
122
+ { id: "Multistrike", displayName: "Multistrike", spriteId: "Skills_307", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
123
+ { id: "NPC_Berserk", displayName: "NPC- Berserk", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_Berserk", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
124
+ { id: "NPC_Enrage", displayName: "Enrage", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_Enrage", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
125
+ { id: "NPC_Enrage_2", displayName: "Last Stand", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_Enrage_2", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
126
+ { id: "NPC_LightningReflexes", displayName: "NPC- Lightning Reflexes", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_LightningReflexes", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
127
+ { id: "NPC_Sharpen", displayName: "NPC- Sharpen", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_Sharpen", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
128
+ { id: "NPC_SpellGuard", displayName: "NPC- Spell Guard", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_SpellGuard", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
129
+ { id: "NPC_SpikedShell", displayName: "NPC- Spiked Shell", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_SpikedShell", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
130
+ { id: "NPC_SteelGuard", displayName: "NPC- Steel Guard", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_SteelGuard", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
131
+ { id: "PerfectStrike", displayName: "Perfect Strike", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
132
+ { id: "PistolBoost", displayName: "Pistol Boost", spriteId: "T_Icon_BloodCombat_04", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
133
+ { id: "Poison", displayName: "Poison", spriteId: "Conditions_20", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_Poison", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "VenomBloom", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 3, stacksPerLevel: 0 }, { id: "VenomStrike", duration: 5, durationPerLevel: 0, chance: 0.5, chancePerLevel: 0.1, stacks: 0, stacksPerLevel: 0 }, { id: "NPC_WidePoison", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "PoisonField", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "VenomCoating", duration: 5, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
134
+ { id: "PoisonExposure", displayName: "Poison Exposure", spriteId: "poison", isDebuff: true, maxLevel: 5, fixedDuration: false, effects: [] },
135
+ { id: "PoisonImmunity", displayName: "Poison Immunity", spriteId: "Conditions_Immune_20", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Cure", duration: 0, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "CureAll", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
136
+ { id: "Protection", displayName: "Protection", spriteId: "Conditions_21", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
137
+ { id: "Radiance", displayName: "Radiance", spriteId: "Priest11", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
138
+ { id: "RadiantBulwark", displayName: "Radiant Bulwark", spriteId: "Priest12", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
139
+ { id: "Rage", displayName: "Rage", spriteId: "Berserker18", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "GroundSlam", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 15, stacksPerLevel: 0 }, { id: "AxeThrow", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 5, stacksPerLevel: 0 }, { id: "Cyclone", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 20, stacksPerLevel: 0 }, { id: "Enrage", duration: 5, durationPerLevel: 0, chance: 1, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
140
+ { id: "Regeneration", displayName: "Regeneration", spriteId: "Conditions_23", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "HealAll", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 2 }, { id: "Sanctuary", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "GuardianBond", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 1 }, { id: "SanctuaryField", duration: 2, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
141
+ { id: "Revealed", displayName: "Revealed", spriteId: "Conditions_3", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "TrueSight", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
142
+ { id: "RifleBoost", displayName: "Rifle Boost", spriteId: "T_Icon_Gold_89", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "PiercingShot", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
143
+ { id: "Ruthless", displayName: "Ruthless", spriteId: "Skills_306", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
144
+ { id: "Sacrament", displayName: "Sacrament", spriteId: "T_Icon_Energy_93", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
145
+ { id: "SacredGround", displayName: "Sacred Ground", spriteId: "Priest12", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
146
+ { id: "Sacrifice", displayName: "Sacrifice", spriteId: "48-Sacrifice", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
147
+ { id: "Sanctuary", displayName: "Sanctuary", spriteId: "24-sanctuary", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
148
+ { id: "Sanctuary2", displayName: "Sanctuary Doctrine", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
149
+ { id: "ShadowMark", displayName: "Shadow Mark", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
150
+ { id: "ShockAbsorber", displayName: "Shock Absorber", spriteId: "sf_s_074", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "JumpShot", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "ShockAbsorber", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
151
+ { id: "ShotgunBoost", displayName: "Shotgun Boost", spriteId: "T_Icon_Frost_03", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "ShrapnelShot", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
152
+ { id: "Silence", displayName: "Silence", spriteId: "Conditions_26", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "HolyWrath", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "FieldSilence", duration: 5, durationPerLevel: 0, chance: 0.5, chancePerLevel: 0.1, stacks: 0, stacksPerLevel: 0 }, { id: "JumpShot", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0.2, stacks: 0, stacksPerLevel: 0 }, { id: "NPC_Silence", duration: 3, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
153
+ { id: "SilenceImmunity", displayName: "Silence Immunity", spriteId: "Conditions_Immune_26", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Cure", duration: 0, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "CureAll", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
154
+ { id: "SilentEdge", displayName: "Silent Edge", spriteId: "T_Icon_Arcane_37", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
155
+ { id: "Sitting", displayName: "Sitting", spriteId: "Skills_418", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
156
+ { id: "Slow", displayName: "Slow", spriteId: "Conditions_27", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "Frostglass", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "AxeThrow", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0.15, stacks: 0, stacksPerLevel: 0 }, { id: "EarthSpikes", duration: 5, durationPerLevel: 0, chance: 0.5, chancePerLevel: 0.1, stacks: 0, stacksPerLevel: 0 }, { id: "BoneSpikes", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "SlowTrap", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
157
+ { id: "SlowImmunity", displayName: "Slow Immunity", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Haste", duration: 0, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "HasteAll", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
158
+ { id: "SmokeScreen", displayName: "Smoke Screen", spriteId: "Skills_515", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
159
+ { id: "SniperNest", displayName: "Sniper Nest", spriteId: "T_Icon_Nature_132", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
160
+ { id: "SoulDrain", displayName: "Soul Drain", spriteId: "T_Icon_Unholy_151", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
161
+ { id: "SoulDrainEnemy", displayName: "Soul Drain Enemy", spriteId: "T_Icon_Unholy_151", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "SoulDrainEnemy", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
162
+ { id: "SpearQuicken", displayName: "Spear Quicken", spriteId: "Skills_534", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "SpearQuicken", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
163
+ { id: "SpellShield", displayName: "Arcanum Ward", spriteId: "T_Icon_Energy_35", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [{ id: "SpellShield", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
164
+ { id: "Spinning", displayName: "Spinning", spriteId: "Skills_565", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [{ id: "Cyclone", duration: 0, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
165
+ { id: "SpiritBond", displayName: "Spirit Bond", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
166
+ { id: "Stability", displayName: "Stability", spriteId: "Conditions_35", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
167
+ { id: "Stagger", displayName: "Stagger", spriteId: "Conditions_7", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "GroundSlam", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
168
+ { id: "Stamina", displayName: "Stamina", spriteId: "Conditions_17", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
169
+ { id: "Stun", displayName: "Stun", spriteId: "Conditions_31", isDebuff: true, maxLevel: 0, fixedDuration: true, effects: [{ id: "NPC_WideStun", duration: 3, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Bash", duration: 3, durationPerLevel: 0, chance: 0, chancePerLevel: 0.05, stacks: 0, stacksPerLevel: 0 }, { id: "Stomp", duration: 3, durationPerLevel: 0, chance: 0, chancePerLevel: 0.15, stacks: 0, stacksPerLevel: 0 }, { id: "Meteor", duration: 3, durationPerLevel: 0, chance: 0, chancePerLevel: 0.1, stacks: 0, stacksPerLevel: 0 }, { id: "CounterSlash", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "HolyWrathField", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0.025, stacks: 0, stacksPerLevel: 0 }, { id: "FlashGrenade", duration: 1.5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Smite", duration: 1.5, durationPerLevel: 0, chance: 0, chancePerLevel: 0.025, stacks: 0, stacksPerLevel: 0 }, { id: "NPC_Stun", duration: 2, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
170
+ { id: "StunImmunity", displayName: "Stun Immunity", spriteId: "Conditions_Immune_31", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "StatusRecovery", duration: 0, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
171
+ { id: "SummonSpeed", displayName: "Summon Speed", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
172
+ { id: "Taunt", displayName: "Taunt", spriteId: "13-taunt", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Taunt", duration: 5, durationPerLevel: 2, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
173
+ { id: "TempestEngine", displayName: "Tempest Engine", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
174
+ { id: "TriggerHappy", displayName: "Trigger Happy", spriteId: "T_Icon_BloodCombat_10", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
175
+ { id: "TwohandQuicken", displayName: "Axe Quicken", spriteId: "Skills_380", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "TwohandQuicken", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
176
+ { id: "UmbralCurse", displayName: "Umbral Curse", spriteId: "T_Icon_Shadow_04", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [] },
177
+ { id: "UmbralMark", displayName: "Umbral Mark", spriteId: "T_Icon_Shadow_63", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "UmbralExplosion", duration: 30, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
178
+ { id: "UndeadExposure", displayName: "Desecrated", spriteId: "undead", isDebuff: true, maxLevel: 5, fixedDuration: false, effects: [{ id: "BoneSpikes", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
179
+ { id: "UnholyAura", displayName: "Unholy Aura", spriteId: "T_Icon_Unholy_148", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
180
+ { id: "UnholyFrenzy", displayName: "Unholy Frenzy", spriteId: "T_Icon_BloodCombat_50", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "LifeDrainSummon", duration: 30, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
181
+ { id: "Unyielding", displayName: "Unyielding", spriteId: "Berserker8", isDebuff: false, maxLevel: 0, fixedDuration: true, effects: [{ id: "Unyielding", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
182
+ { id: "VenomCoating", displayName: "Venom Coating", spriteId: "T_Icon_Unholy_02", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "NPC_Venom", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "VenomCoating", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
183
+ { id: "VenomStep", displayName: "Venom Step", spriteId: "Skills_499", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
184
+ { id: "Vitality", displayName: "Vitality", spriteId: "Conditions_15", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
185
+ { id: "Volatile", displayName: "Volatile", spriteId: "T_Icon_Arcane_63", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "VolatileBolt", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 5, stacksPerLevel: 0 }] },
186
+ { id: "Vulnerability", displayName: "Vulnerability", spriteId: "Conditions_4", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "SpearSlice", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "Harvest", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 5, stacksPerLevel: 0 }, { id: "Damnation", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 2 }, { id: "FreezeGrenade", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 10, stacksPerLevel: 0 }, { id: "PoisonField", duration: 0, durationPerLevel: 0.5, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "SlowTrap", duration: 0, durationPerLevel: 1, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
187
+ { id: "WaterAttunement", displayName: "Water Attunement", spriteId: "water", isDebuff: false, maxLevel: 5, fixedDuration: false, effects: [{ id: "Icebolt", duration: 30, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "WaterBarrier", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
188
+ { id: "WaterBarrier", displayName: "Water Barrier", spriteId: "Skills_117", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
189
+ { id: "WaterBarrier2", displayName: "Arcane Barrier", spriteId: "Skills_117", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
190
+ { id: "WaterExposure", displayName: "Water Exposure", spriteId: "water", isDebuff: true, maxLevel: 5, fixedDuration: false, effects: [{ id: "ChainLightning", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
191
+ { id: "Weaken", displayName: "Weaken", spriteId: "Conditions_22", isDebuff: true, maxLevel: 0, fixedDuration: false, effects: [{ id: "SuppressiveShot", duration: 5, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
192
+ { id: "WindAttunement", displayName: "Wind Attunement", spriteId: "wind", isDebuff: false, maxLevel: 5, fixedDuration: false, effects: [{ id: "Thunderbolt", duration: 30, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }, { id: "WindBarrier", duration: 1, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
193
+ { id: "WindBarrier", displayName: "Wind Barrier", spriteId: "Skills_356", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
194
+ { id: "WindBarrier2", displayName: "Arcane Barrier", spriteId: "Skills_356", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [] },
195
+ { id: "WindExposure", displayName: "Wind Exposure", spriteId: "wind", isDebuff: true, maxLevel: 5, fixedDuration: false, effects: [{ id: "FreezingField", duration: 10, durationPerLevel: 0, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] },
196
+ { id: "Zeal", displayName: "Zeal", spriteId: "T_Icon_Gold_92", isDebuff: false, maxLevel: 0, fixedDuration: false, effects: [{ id: "Zeal", duration: 0, durationPerLevel: 60, chance: 0, chancePerLevel: 0, stacks: 0, stacksPerLevel: 0 }] }
197
+ ];
198
+ }
199
+
200
+ // src/definitions/index.ts
201
+ class StatusCatalogDefinitions {
202
+ constructor() {}
203
+ static catalog = {
204
+ buildFingerprint: CURRENT_GAME_BUILD_FINGERPRINT,
205
+ statuses: StatusDefinitions.values
206
+ };
207
+ }
208
+
209
+ // src/catalog.ts
210
+ var BUNDLED_CATALOG = StatusCatalogDefinitions.catalog;
211
+ function loadBundledStatusCatalog(buildFingerprint = CURRENT_GAME_BUILD_FINGERPRINT2) {
212
+ if (buildFingerprint !== BUNDLED_CATALOG.buildFingerprint) {
213
+ throw new Error(`unknown status catalog build ${JSON.stringify(buildFingerprint)}`);
214
+ }
215
+ return cloneCatalog(BUNDLED_CATALOG);
216
+ }
217
+
218
+ class FishNetStatusDirectory {
219
+ definitions = new Map;
220
+ constructor(catalog = loadBundledStatusCatalog()) {
221
+ for (const definition of catalog.statuses) {
222
+ if (this.definitions.has(definition.id)) {
223
+ throw new Error(`duplicate status definition ${JSON.stringify(definition.id)}`);
224
+ }
225
+ this.definitions.set(definition.id, cloneDefinition(definition));
226
+ }
227
+ }
228
+ resolve(statusId) {
229
+ const definition = statusId === null || statusId === undefined ? undefined : this.definitions.get(statusId);
230
+ return definition ? cloneDefinition(definition) : undefined;
231
+ }
232
+ require(statusId) {
233
+ const definition = this.resolve(statusId);
234
+ if (!definition)
235
+ throw new Error(`unknown status definition ${JSON.stringify(statusId)}`);
236
+ return definition;
237
+ }
238
+ }
239
+ var BUNDLED_DIRECTORY = new FishNetStatusDirectory(BUNDLED_CATALOG);
240
+ function resolveFishNetStatus(statusId) {
241
+ return BUNDLED_DIRECTORY.resolve(statusId);
242
+ }
243
+ function requireFishNetStatus(statusId) {
244
+ return BUNDLED_DIRECTORY.require(statusId);
245
+ }
246
+ function statusDurationSeconds(definition, level) {
247
+ const effect = definition?.effects.find((candidate) => candidate.id === definition.id) ?? definition?.effects[0];
248
+ if (!effect)
249
+ return;
250
+ if (definition.fixedDuration)
251
+ return effect.duration;
252
+ const effectiveLevel = Math.max(1, level);
253
+ return effect.duration + effectiveLevel * effect.durationPerLevel;
254
+ }
255
+ function cloneDefinition(definition) {
256
+ return { ...definition, effects: definition.effects.map((effect) => ({ ...effect })) };
257
+ }
258
+ function cloneCatalog(catalog) {
259
+ return { ...catalog, statuses: catalog.statuses.map(cloneDefinition) };
260
+ }
261
+ export {
262
+ FishNetStatusDirectory,
263
+ loadBundledStatusCatalog,
264
+ requireFishNetStatus,
265
+ resolveFishNetStatus,
266
+ statusDurationSeconds
267
+ };
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@kar-mi/spirit-vale-tools-statuses",
3
+ "version": "0.2.3",
4
+ "description": "Build-scoped Spirit Vale status effect catalog utilities.",
5
+ "license": "AGPL-3.0-only",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/kar-mi/spirit-vale-tools.git",
9
+ "directory": "packages/statuses"
10
+ },
11
+ "type": "module",
12
+ "files": [
13
+ "dist",
14
+ "README.md"
15
+ ],
16
+ "scripts": {
17
+ "build": "bun build ./src/index.ts --outdir ./dist --target bun --format esm --external @kar-mi/spirit-vale-tools-capture && bunx tsc --project ./tsconfig.build.json"
18
+ },
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.js"
23
+ }
24
+ },
25
+ "dependencies": {
26
+ "@kar-mi/spirit-vale-tools-capture": "^2.0.0"
27
+ }
28
+ }