Skip to content

Commit

Permalink
Import iceberg types from appropriate quest file
Browse files Browse the repository at this point in the history
  • Loading branch information
hymccord committed Jan 31, 2024
1 parent e9da00b commit 2f0109d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/scripts/modules/stages/environments/iceberg.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {type User} from '@scripts/types/hg';
import {type IntakeMessage} from '@scripts/types/mhct';
import {IcebergPhases, type IcebergPhase} from '@scripts/types/quests';
import {type IStager} from '../stages.types';

const ICEBERGE_PHASES = [ 'Treacherous Tunnels', 'Brutal Bulwark', 'Bombing Run', 'The Mad Depths', 'Icewing\'s Lair', 'Hidden Depths', 'The Deep Lair', 'General'] as const;
type IcebergPhase = typeof ICEBERGE_PHASES[number];

export class IcebergStager implements IStager {
readonly environment: string = 'Iceberg';

Expand Down Expand Up @@ -38,6 +36,6 @@ export class IcebergStager implements IStager {
}

private isIcebergPhase(value: string): value is IcebergPhase {
return ICEBERGE_PHASES.includes(value as IcebergPhase);
return IcebergPhases.includes(value as IcebergPhase);
}
}

0 comments on commit 2f0109d

Please sign in to comment.