Skip to content

Commit

Permalink
[Chore] Remove unused exports in namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Pewtro committed Apr 12, 2024
1 parent f7affbd commit ab3cda7
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 62 deletions.
3 changes: 0 additions & 3 deletions src/analysis/classic/hunter/shared/SPELLS_PET.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ export const GORE = 35298; // r9
export const SCORPID_POISON = 27060; // r5
// Serpent
export const POISON_SPIT = 35392; // r3
// Turtle
export const SHELL_SHIELD = 26064; // r1
// Warp Stalker
export const CLAW = 27049; // r9
export const WARP = 35346; // r1
// Wind Serpent
export const LIGHTNING_BREATH = 25012; // r6
// Wolf
Expand Down
34 changes: 5 additions & 29 deletions src/analysis/retail/demonhunter/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ export const SHATTERED_RESTORATION_SCALING = [0, 5, 10];

export const UNRESTRAINED_FURY_SCALING = [0, 10, 20];

export const WILL_OF_THE_ILLIDARI_SCALING = [0, 2, 4];

export const ILLIDARI_KNOWLEDGE_SCALING = [0, 2, 4];

export const SOUL_RENDING_SCALING = [0, 5, 10];

export const SOUL_RENDING_ADDITIONAL_METAMORPHOSIS_SCALING = [0, 10, 20];

export const INFERNAL_ARMOR_SCALING = [0, 10, 20];

export const ERRATIC_FELHEART_SCALING = [0, 0.1, 0.2];

export const PITCH_BLACK_SCALING = [0, 120];
Expand All @@ -27,8 +17,6 @@ export const CHAMPION_OF_THE_GLAIVE_SCALING = [0, 1];

export const RUSH_OF_CHAOS_SCALING = [0, 30, 60];

export const DEMONIC_ORIGINS_CDR_SCALING = [0, 60];

export const DEMONIC_DURATION = 6000;

export function getSigilOfFlameSpell(c: Combatant): Spell {
Expand Down Expand Up @@ -77,41 +65,29 @@ export const DEMON_SOUL_BUFF_ALLOWLIST = [
393054, 393055, 393834,
];

export const SIGIL_OF_FLAME_SPELLS: Spell[] = [
SPELLS.SIGIL_OF_FLAME,
SPELLS.SIGIL_OF_FLAME_PRECISE,
];
const SIGIL_OF_FLAME_SPELLS: Spell[] = [SPELLS.SIGIL_OF_FLAME, SPELLS.SIGIL_OF_FLAME_PRECISE];
export const SIGIL_OF_FLAME_SPELL_IDS = SIGIL_OF_FLAME_SPELLS.map((spell) => spell.id);

export const SIGIL_OF_MISERY_SPELLS: Spell[] = [
const SIGIL_OF_MISERY_SPELLS: Spell[] = [
TALENTS_DEMON_HUNTER.SIGIL_OF_MISERY_TALENT,
SPELLS.SIGIL_OF_MISERY_PRECISE,
];
export const SIGIL_OF_MISERY_SPELL_IDS = SIGIL_OF_MISERY_SPELLS.map((spell) => spell.id);

export const ELYSIAN_DECREE_SPELLS: Spell[] = [
const ELYSIAN_DECREE_SPELLS: Spell[] = [
TALENTS_DEMON_HUNTER.ELYSIAN_DECREE_TALENT,
SPELLS.ELYSIAN_DECREE_PRECISE,
];
export const ELYSIAN_DECREE_SPELL_IDS = ELYSIAN_DECREE_SPELLS.map((spell) => spell.id);

export const SIGIL_OF_SILENCE_SPELLS: Spell[] = [
const SIGIL_OF_SILENCE_SPELLS: Spell[] = [
TALENTS_DEMON_HUNTER.SIGIL_OF_SILENCE_TALENT,
SPELLS.SIGIL_OF_SILENCE_PRECISE,
];
export const SIGIL_OF_SILENCE_SPELL_IDS = SIGIL_OF_SILENCE_SPELLS.map((spell) => spell.id);

export const SIGIL_OF_CHAINS_SPELLS: Spell[] = [
const SIGIL_OF_CHAINS_SPELLS: Spell[] = [
TALENTS_DEMON_HUNTER.SIGIL_OF_CHAINS_TALENT,
SPELLS.SIGIL_OF_CHAINS_PRECISE,
];
export const SIGIL_OF_CHAINS_SPELL_IDS = SIGIL_OF_CHAINS_SPELLS.map((spell) => spell.id);

export const SIGIL_SPELLS: Spell[] = [
...SIGIL_OF_FLAME_SPELLS,
...SIGIL_OF_MISERY_SPELLS,
...ELYSIAN_DECREE_SPELLS,
...SIGIL_OF_SILENCE_SPELLS,
...SIGIL_OF_CHAINS_SPELLS,
];
export const SIGIL_SPELL_IDS = SIGIL_SPELLS.map((spell) => spell.id);
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Analyzer from 'parser/core/Analyzer';
import { Uptime } from 'parser/ui/UptimeBar';
import { DamageEvent } from 'parser/core/Events';

type TrackedHit = {
export type TrackedHit = {
mitigated: boolean;
event: DamageEvent;
};
Expand Down
14 changes: 0 additions & 14 deletions src/analysis/retail/mage/shared/constants.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import SPELLS from 'common/SPELLS';
import TALENTS from 'common/TALENTS/mage';

export const MS_BUFFER_100 = 100;
export const MS_BUFFER_250 = 250;
export const MS_BUFFER_500 = 500;
export const MS_BUFFER_1000 = 1000;

//Frost
Expand All @@ -30,23 +27,12 @@ export const FIRE_DIRECT_DAMAGE_SPELLS = [
SPELLS.SCORCH,
TALENTS.PHOENIX_FLAMES_TALENT,
];
export const HOT_STREAK_SPENDERS = [TALENTS.PYROBLAST_TALENT, SPELLS.FLAMESTRIKE];

//Arcane
export const ARCANE_CHARGE_MAX_STACKS = 4;
export const AP_MANA_THRESHOLD_PERCENT = 0.4;
export const ARCANE_HARMONY_MAX_STACKS = 18;
export const CASTS_PER_RADIANT_SPARK = 5;
export const ARCANE_BLAST_BASE_MANA_COST = 1375;
export const ARCANE_EXPLOSION_BASE_MANA_COST = 5000;
export const OVERPOWERED_COST_REDUCTION_PERCENT = 0.5;
export const ARCANE_POWER_ALLOWED_CASTS = [
SPELLS.ARCANE_BLAST,
SPELLS.ARCANE_EXPLOSION,
SPELLS.ARCANE_BARRAGE,
TALENTS.ARCANE_MISSILES_TALENT,
TALENTS.ARCANE_ORB_TALENT,
];

//Mage Generic
export const SHIFTING_POWER_MS_REDUCTION_PER_TICK = 3000;
Expand Down
1 change: 0 additions & 1 deletion src/analysis/retail/monk/shared/constants.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/analysis/retail/monk/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ export { default as MysticTouch } from './MysticTouch';
export { default as DampenHarm } from './DampenHarm';
export { default as SaveThemAll } from './SaveThemAll';
export { default as TeachingsOfTheMonestary } from './TeachingsOfTheMonestary';
export * from './constants';
2 changes: 1 addition & 1 deletion src/analysis/retail/rogue/outlaw/modules/apl/AplCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const COMMON_FINISHER: Rule[] = [
},
];

export const COMMON_BUILDER: Rule[] = [
const COMMON_BUILDER: Rule[] = [
// Commented for now as GS doesn't have an associated applyDebuff and removeDebuff event
// {
// spell: TALENTS.GHOSTLY_STRIKE_TALENT,
Expand Down
10 changes: 0 additions & 10 deletions src/analysis/retail/rogue/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,3 @@ export const OUTLAW_ABILITY_COOLDOWNS: Spell[] = [
TALENTS.ADRENALINE_RUSH_TALENT,
SPELLS.GRAPPLING_HOOK,
];

export const ASSASSINATION_BLEED_DEBUFFS = [
SPELLS.GARROTE,
SPELLS.RUPTURE,
TALENTS.CRIMSON_TEMPEST_TALENT,
SPELLS.INTERNAL_BLEEDING_DEBUFF,
];

export const NIGHTSTALKER_DAMAGE_BUFF = [0, 0.04, 0.08];
export const IMPROVED_GARROTE_DAMAGE_BUFF = [0, 0.5];
2 changes: 1 addition & 1 deletion src/analysis/retail/shaman/shared/talents/EarthShield.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Uptime } from 'parser/ui/UptimeBar';
import { RESTORATION_COLORS } from '../../restoration/constants';
import EarthenHarmony from '../../restoration/modules/talents/EarthenHarmony';

export const EARTHSHIELD_HEALING_INCREASE = 0.2;
const EARTHSHIELD_HEALING_INCREASE = 0.2;

class EarthShield extends Analyzer {
static dependencies = {
Expand Down
2 changes: 1 addition & 1 deletion src/common/WCL_TYPES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export interface WCLDamageTaken {
overheal?: number;
}

export interface HeroismEvent {
interface HeroismEvent {
startTime: number;
endTime: number;
startEvent: CastEvent;
Expand Down

0 comments on commit ab3cda7

Please sign in to comment.