aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-28 12:58:12 +0900
committersyeyoung <cyoung06@naver.com>2023-02-28 12:58:12 +0900
commitde64d95fcb88ad71f43a3508728aed7d34334ffc (patch)
treefad6fbf1b0113b1edb7612706466f4f800889c19 /mod/src/main/java
parent9fd7b0965afcb7490c20d8ea71b7dcbdcbbfdb4f (diff)
downloadSkyblock-Dungeons-Guide-de64d95fcb88ad71f43a3508728aed7d34334ffc.tar.gz
Skyblock-Dungeons-Guide-de64d95fcb88ad71f43a3508728aed7d34334ffc.tar.bz2
Skyblock-Dungeons-Guide-de64d95fcb88ad71f43a3508728aed7d34334ffc.zip
- Fix score calculation failing with failed puzzle
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonScore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonScore.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonScore.java
index 7bfcd76e..f6f5121b 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonScore.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonScore.java
@@ -217,7 +217,7 @@ public class FeatureDungeonScore extends TextHUDFeature {
// bossroomIncomplete = false;
// if (dungeonRoom.getColor() == 62 && dungeonRoom.getCurrentState() != DungeonRoom.RoomState.DISCOVERED)
// traproomIncomplete = false;
- if (dungeonRoom.getCurrentState() != DungeonRoom.RoomState.DISCOVERED)
+ if (dungeonRoom.getCurrentState() != DungeonRoom.RoomState.DISCOVERED && dungeonRoom.getCurrentState() != DungeonRoom.RoomState.FAILED)
totalCompRooms += dungeonRoom.getUnitPoints().size();
if (dungeonRoom.getColor() == 66 && (dungeonRoom.getCurrentState() == DungeonRoom.RoomState.DISCOVERED || dungeonRoom.getCurrentState() == DungeonRoom.RoomState.FAILED)) // INCOMPLETE PUZZLE ON MAP
incompletePuzzles++;