Skip to content

Commit

Permalink
Use the same requirements type everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
robojumper committed Mar 9, 2024
1 parent 1b8bd52 commit 11a0eb1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/logic/Logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import crystalLocations from '../data/crystals.json';
import { completionRequirementToDungeon, splitLocationName } from './Locations';
import { RawLogic } from './LogicLoader';
import { applyTweaks } from './LogicTweaks';

export type Requirements = Record<string, string>;
import { Requirements } from './Requirements';

export interface Area {
locations: Record<string, ItemLocation>;
Expand Down
2 changes: 1 addition & 1 deletion src/logic/LogicParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
OptionsCommand,
} from '../permalink/SettingsTypes';
import BooleanExpression from './BooleanExpression';
import { Requirements } from './Logic';
import { Requirements } from './Requirements';

/**
* Given a requirement name, a list of macros, and the current settings,
Expand Down
2 changes: 1 addition & 1 deletion src/logic/LogicTweaks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from 'lodash';
import goddessCubes from '../data/goddessCubes.json';
import crystalMacros from '../data/gratitudeCrystalMacros.json';
import type { Settings } from '../permalink/SettingsTypes';
import { Requirements } from './Logic';
import { Requirements } from './Requirements';

export function applyTweaks(requirements: Requirements) {
tweakTMSAndRequiredDungeons(requirements);
Expand Down

0 comments on commit 11a0eb1

Please sign in to comment.