// Equipment
+const countBottles = (config, dungeons, state) =>
+ ['bottle-1', 'bottle-2', 'bottle-3', 'bottle-4'].filter(b => !!state[b]).length;
+
const hasBig = dungeon => (config, dungeons, state) =>
!config.wildBig || !!state[`${dungeon}-big-key`];
const hasBoots = (config, dungeons, state) => !!state['boots'];
-const hasBottle = n => (config, dungeons, state) => state['bottle'] >= (n || 1);
+const hasBottle = n => (...args) => countBottles(...args) >= (n || 1);
const hasBow = (config, dungeons, state) => !!state['bow'];