Skip to content

Commit

Permalink
feral: move apl to public, leave legacy as auto for now
Browse files Browse the repository at this point in the history
Signed-off-by: jarves <[email protected]>
  • Loading branch information
jarveson committed Nov 22, 2023
1 parent 081d6f4 commit f6f75d5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/core/launched_sims.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const simLaunchStatuses: Record<Spec, LaunchStatus> = {
// Alpha and Beta show an info notice at the top of the page.
export const aplLaunchStatuses: Record<Spec, LaunchStatus> = {
[Spec.SpecBalanceDruid]: LaunchStatus.Beta,
[Spec.SpecFeralDruid]: LaunchStatus.Alpha,
[Spec.SpecFeralDruid]: LaunchStatus.Beta,
[Spec.SpecFeralTankDruid]: LaunchStatus.Launched,
[Spec.SpecRestorationDruid]: LaunchStatus.Launched,
[Spec.SpecElementalShaman]: LaunchStatus.Beta,
Expand Down
2 changes: 1 addition & 1 deletion ui/core/sim_ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export abstract class SimUI extends Component {
<div class="sim-container">
<aside class="sim-sidebar">
<div class="sim-title"></div>
<div class="sim-sidebar-content">
<div class="sim-sidebar-content ${config.noticeText ? 'smaller' : ''}">
<div class="sim-sidebar-actions within-raid-sim-hide"></div>
<div class="sim-sidebar-results within-raid-sim-hide"></div>
<div class="sim-sidebar-footer"></div>
Expand Down
2 changes: 2 additions & 0 deletions ui/feral_druid/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import P1Gear from './gear_sets/p1.gear.json';
import P2Gear from './gear_sets/p2.gear.json';
import P3Gear from './gear_sets/p3.gear.json';
import P4Gear from './gear_sets/p4.gear.json';
import DefaultApl from './apls/default.apl.json';

// Preset options for this spec.
// Eventually we will import these values for the raid sim too, so its good to
Expand All @@ -35,6 +36,7 @@ export const P1_PRESET = PresetUtils.makePresetGear('P1 Preset', P1Gear);
export const P2_PRESET = PresetUtils.makePresetGear('P2 Preset', P2Gear);
export const P3_PRESET = PresetUtils.makePresetGear('P3 Preset', P3Gear);
export const P4_PRESET = PresetUtils.makePresetGear('P4 Preset', P4Gear);
export const APL_ROTATION_DEFAULT = PresetUtils.makePresetAPLRotation('APL Default', DefaultApl);

export const DefaultRotation = FeralDruidRotation.create({
rotationType: FeralDruid_Rotation_AplType.SingleTarget,
Expand Down
6 changes: 6 additions & 0 deletions ui/feral_druid/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import * as Tooltips from '../core/constants/tooltips.js';

import * as DruidInputs from './inputs.js';
import * as Presets from './presets.js';
import { APLRotation } from 'ui/core/proto/apl.js';

export class FeralDruidSimUI extends IndividualSimUI<Spec.SpecFeralDruid> {
constructor(parentElem: HTMLElement, player: Player<Spec.SpecFeralDruid>) {
Expand Down Expand Up @@ -152,6 +153,7 @@ export class FeralDruidSimUI extends IndividualSimUI<Spec.SpecFeralDruid> {
],
rotations: [
Presets.ROTATION_PRESET_LEGACY_DEFAULT,
Presets.APL_ROTATION_DEFAULT,
],
// Preset gear configurations that the user can quickly select.
gear: [
Expand All @@ -162,6 +164,10 @@ export class FeralDruidSimUI extends IndividualSimUI<Spec.SpecFeralDruid> {
Presets.P4_PRESET,
],
},

autoRotation: (player: Player<Spec.SpecFeralDruid>): APLRotation => {
return Presets.ROTATION_PRESET_LEGACY_DEFAULT.rotation.rotation!;
}
});

this.addOptimizeGemsAction();
Expand Down

0 comments on commit f6f75d5

Please sign in to comment.