X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Ftracker%2FMap.js;fp=resources%2Fjs%2Fcomponents%2Ftracker%2FMap.js;h=b2685f873d6776814e00db66ff2cc6c225d51b03;hb=4e24f36eb5d6907697c106ca15c2c405728d78a8;hp=9c27a3476ff938d7ce4a56be9ae642d67e00c7df;hpb=4af150221093a2f88e42f86ab4a505d329759b68;p=alttp.git diff --git a/resources/js/components/tracker/Map.js b/resources/js/components/tracker/Map.js index 9c27a34..b2685f8 100644 --- a/resources/js/components/tracker/Map.js +++ b/resources/js/components/tracker/Map.js @@ -7,6 +7,7 @@ import { decrement, hasDungeonBoss, increment, + isDungeonCleared, toggleBoolean, unclearAll, } from '../../helpers/tracker'; @@ -684,14 +685,8 @@ const Map = () => { const cleared = state[`${dungeon.id}-checks`] || 0; const total = definition.items; let status = 'available'; - if (cleared === total) { - if (['ct', 'gt'].includes(dungeon.id)) { - if (hasDungeonBoss(state, dungeon)) { - status = 'cleared'; - } - } else { - status = 'cleared'; - } + if (isDungeonCleared(state, definition)) { + status = 'cleared'; } return { ...dungeon,