]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/tracker.js
compact keysanity tracker
[alttp.git] / resources / js / helpers / tracker.js
index c4b685c5b9ced45af45281b71e0728bae7aac022..f3d4bb4120b92665b0716f2213d94e652fc794af 100644 (file)
@@ -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],