export const CONFIG = {
bossShuffle: false,
checkCalculation: 'room-data',
+ compactKeysanity: true,
glitches: 'none',
mapLayout: 'horizontal',
showMap: 'situational',
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],