export const CONFIG = {
bossShuffle: false,
+ checkCalculation: 'room-data',
glitches: 'none',
mapLayout: 'horizontal',
showMap: 'situational',
state[`${dungeon.id}-compass`] = !!(compass & dungeon.mask);
state[`${dungeon.id}-small-key`] = data[INV_ADDR.RANDO_KEY_START + dungeon.offset];
state[`${dungeon.id}-big-key`] = !!(bigKey & dungeon.mask);
+ state[`${dungeon.id}-checks-collected`] =
+ data[INV_ADDR.RANDO_CHECKS_START + dungeon.offset];
if (dungeon.prize) {
const isCrystal = prizeMap[dungeon.offset].isCrystal;
const prizeFlags = data[isCrystal ? INV_ADDR.CRYSTALS : INV_ADDR.PENDANTS];
DUNGEONS.forEach(dungeon => {
let amount = 0;
let total = dungeon.checks.length;
- dungeon.checks.forEach(check => {
- if (state[check]) {
- ++amount;
- }
- });
+ if (config.checkCalculation === 'inventory') {
+ amount = state[`${dungeon.id}-checks-collected`];
+ } else {
+ dungeon.checks.forEach(check => {
+ if (state[check]) {
+ ++amount;
+ }
+ });
+ }
if (!config.wildMap && state[`${dungeon.id}-map`]) {
--amount;
--total;