return null;
};
+export const clearAll = names => state => {
+ const changes = names.reduce((acc, cur) => ({ ...acc, [cur]: true }), {});
+ return { ...state, ...changes };
+};
+
+export const unclearAll = names => state => {
+ const changes = names.reduce((acc, cur) => ({ ...acc, [cur]: false }), {});
+ return { ...state, ...changes };
+};
+
export const hasDungeonBoss = (state, dungeon) => !!state[`${dungeon.id}-boss-defeated`];
export const getDungeonBoss = (state, dungeon) =>
state[`${dungeon.id}-prize-acquired`] = false;
}
});
+ OVERWORLD_LOCATIONS.forEach(location => {
+ state[location.id] = false;
+ });
+ UNDERWORLD_LOCATIONS.forEach(location => {
+ state[location.id] = false;
+ });
+ state['mm-medallion'] = null;
+ state['tr-medallion'] = null;
return state;
};