X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fhelpers%2Ftracker.js;h=f3d4bb4120b92665b0716f2213d94e652fc794af;hb=HEAD;hp=06513cc8cbbde446bcac77f1da3650e603a8d086;hpb=103371b7fdc3b11e1a937d46474819ab0a5425fb;p=alttp.git diff --git a/resources/js/helpers/tracker.js b/resources/js/helpers/tracker.js index 06513cc..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', @@ -1619,12 +1620,21 @@ export const shouldShowDungeonItem = (config, which) => { case 'always': return true; case 'situational': - return wild; + return wild || (which === 'Compass' && config.bossShuffle); case 'never': return false; } }; +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],