X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fhelpers%2Ftracker.js;h=f3d4bb4120b92665b0716f2213d94e652fc794af;hb=HEAD;hp=c4b685c5b9ced45af45281b71e0728bae7aac022;hpb=90922f8595a8d4fd7780a0b137eed66eaf7d6c49;p=alttp.git diff --git a/resources/js/helpers/tracker.js b/resources/js/helpers/tracker.js index c4b685c..f3d4bb4 100644 --- a/resources/js/helpers/tracker.js +++ b/resources/js/helpers/tracker.js @@ -85,6 +85,7 @@ export const BOSSES = [ export const CONFIG = { bossShuffle: false, checkCalculation: 'room-data', + compactKeysanity: true, glitches: 'none', mapLayout: 'horizontal', showMap: 'situational', @@ -1625,6 +1626,15 @@ export const shouldShowDungeonItem = (config, which) => { } }; +export const showsFullKeysanity = (config) => + shouldShowDungeonItem(config, 'Map') && + shouldShowDungeonItem(config, 'Compass') && + shouldShowDungeonItem(config, 'Small') && + shouldShowDungeonItem(config, 'Big'); + +export const shouldCompactKeysanity = (config) => + config.compactKeysanity && showsFullKeysanity(config); + export const toggleBoolean = name => state => ({ ...state, [name]: !state[name],