From de64d95fcb88ad71f43a3508728aed7d34334ffc Mon Sep 17 00:00:00 2001 From: syeyoung Date: Tue, 28 Feb 2023 12:58:12 +0900 Subject: - Fix score calculation failing with failed puzzle Signed-off-by: syeyoung --- .../dungeonsguide/mod/features/impl/dungeon/FeatureDungeonScore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/src/main/java') 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++; -- cgit