Skip to content

Commit

Permalink
Remove unused imports and fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
1337LutZ committed Sep 28, 2023
1 parent 503d6ee commit 8dc1ff4
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions ui/warrior/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@ import { TristateEffect } from '../core/proto/common.js'
import { Stats } from '../core/proto_utils/stats.js';
import { Player } from '../core/player.js';
import { IndividualSimUI } from '../core/individual_sim_ui.js';
import { EventID, TypedEvent } from '../core/typed_event.js';
import { TypedEvent } from '../core/typed_event.js';
import { Gear } from '../core/proto_utils/gear.js';
import { ItemSlot } from '../core/proto/common.js';
import { GemColor } from '../core/proto/common.js';
import { Profession } from '../core/proto/common.js';

import { Warrior, Warrior_Rotation as WarriorRotation, WarriorTalents as WarriorTalents, Warrior_Options as WarriorOptions } from '../core/proto/warrior.js';

import * as IconInputs from '../core/components/icon_inputs.js';
import * as OtherInputs from '../core/components/other_inputs.js';
import * as Mechanics from '../core/constants/mechanics.js';
import * as Tooltips from '../core/constants/tooltips.js';

import * as WarriorInputs from './inputs.js';
import * as Presets from './presets.js';
Expand Down Expand Up @@ -214,7 +211,7 @@ export class WarriorSimUI extends IndividualSimUI<Spec.SpecWarrior> {
const redGemCaps = new Array<[number, Stats]>();
redGemCaps.push([40117, this.calcArpCap(optimizedGear)]);
const expCap = this.calcExpCap();
redGemCaps.push([40118, expCap]);
redGemCaps.push([40118, expCap]);
const critCap = this.calcCritCap(optimizedGear);
redGemCaps.push([40111, new Stats()]);

Expand All @@ -241,17 +238,17 @@ export class WarriorSimUI extends IndividualSimUI<Spec.SpecWarrior> {
}

calcExpCap(): Stats {
let expCap = 6.5 * 32.79 + 4;
const weaponMastery = this.player.getTalents().weaponMastery;
const hasWeaponMasteryTalent = !!weaponMastery;
let expCap = 6.5 * 32.79 + 4;
const weaponMastery = this.player.getTalents().weaponMastery;
const hasWeaponMasteryTalent = !!weaponMastery;
if (hasWeaponMasteryTalent) {
expCap -=
weaponMastery * 4 * Mechanics.EXPERTISE_PER_QUARTER_PERCENT_REDUCTION;
}
expCap -=
weaponMastery * 4 * Mechanics.EXPERTISE_PER_QUARTER_PERCENT_REDUCTION;
}

return new Stats().withStat(Stat.StatExpertise, expCap);
}
return new Stats().withStat(Stat.StatExpertise, expCap);
}

calcArpCap(gear: Gear): Stats {
let arpCap = 1404;
Expand Down

0 comments on commit 8dc1ff4

Please sign in to comment.