X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fhelpers%2Ftracker.js;h=e4b0ebe9f765a33d497ff2d994537a64168860ae;hb=249e06be11d0f7778d99956c87d4f0a8ac7e69f7;hp=2bc477bff1b632813829f7d4a3ee944d62e6fb57;hpb=4a9ad147aedfae6d5488a7121cacf9a18775ff21;p=alttp.git diff --git a/resources/js/helpers/tracker.js b/resources/js/helpers/tracker.js index 2bc477b..e4b0ebe 100644 --- a/resources/js/helpers/tracker.js +++ b/resources/js/helpers/tracker.js @@ -68,6 +68,10 @@ export const BOSSES = [ ]; export const CONFIG = { + showMap: 'situational', + showCompass: 'situational', + showSmall: 'always', + showBig: 'always', wildMap: false, wildCompass: false, wildSmall: false, @@ -1552,6 +1556,20 @@ export const UNDERWORLD_LOCATIONS = [ }, ]; +export const shouldShowDungeonItem = (config, which) => { + const show = config[`show${which}`] || 'always'; + const wild = config[`wild${which}`] || false; + switch (show) { + default: + case 'always': + return true; + case 'situational': + return wild; + case 'never': + return false; + } +}; + export const toggleBoolean = name => state => ({ ...state, [name]: !state[name],