Skip to content

Commit

Permalink
Merge pull request #109 from wowsims/shaman
Browse files Browse the repository at this point in the history
allow ele to toggle strength of earth + battle shout
  • Loading branch information
kayla-glick authored Feb 7, 2024
2 parents 366de41 + d7e3e7e commit bcd61aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/core/components/inputs/consumables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function makeConsumeInputFactory<T extends number>(args: ConsumeInputFactoryArgs
})),
equals: (a: T, b: T) => a == b,
zeroValue: 0 as T,
changedEvent: (player: Player<any>) => TypedEvent.onAny([player.consumesChangeEmitter, player.levelChangeEmitter, player.gearChangeEmitter]),
changedEvent: (player: Player<any>) => TypedEvent.onAny([player.consumesChangeEmitter, player.levelChangeEmitter, player.gearChangeEmitter, player.professionChangeEmitter]),
showWhen: (player: Player<any>) => !args.showWhen || args.showWhen(player),
getValue: (player: Player<any>) => player.getConsumes()[args.consumesFieldName] as T,
setValue: (eventID: EventID, player: Player<any>, newValue: number) => {
Expand Down Expand Up @@ -119,7 +119,7 @@ export const EnchantedSigilInnovation: ConsumableInputConfig<EnchantedSigil> = {
};

export const ENCHANTEDSIGILCONFIG: ConsumableStatOption<EnchantedSigil>[] = [
{ config: EnchantedSigilInnovation, stats: [] },
{ config: EnchantedSigilInnovation, stats: [] },
];

export const makeEncanthedSigilInput = makeConsumeInputFactory({
Expand Down
3 changes: 3 additions & 0 deletions ui/elemental_shaman/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { Stats } from '../core/proto_utils/stats.js';
import { getSpecIcon, specNames } from '../core/proto_utils/utils.js';
import { IndividualSimUI, registerSpecConfig } from '../core/individual_sim_ui.js';

import * as BuffDebuffInputs from '../core/components/inputs/buffs_debuffs';
import * as OtherInputs from '../core/components/other_inputs.js';
import * as Mechanics from '../core/constants/mechanics.js';
// import * as ShamanInputs from './inputs.js';
Expand Down Expand Up @@ -99,6 +100,8 @@ const SPEC_CONFIG = registerSpecConfig(Spec.SpecElementalShaman, {
],
// Buff and Debuff inputs to include/exclude, overriding the EP-based defaults.
includeBuffDebuffInputs: [
BuffDebuffInputs.BattleShoutBuff,
BuffDebuffInputs.StrengthBuffHorde,
],
excludeBuffDebuffInputs: [
],
Expand Down

0 comments on commit bcd61aa

Please sign in to comment.