From 5b2be90cd5b5b7231220d44559f1002912bb29be Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 27 Nov 2021 23:44:43 +0900 Subject: - Suggestion 266 --- .../dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java index 373220c5..4edd5cf1 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java @@ -27,6 +27,7 @@ import kr.syeyoung.dungeonsguide.config.guiconfig.MParameterEdit; import kr.syeyoung.dungeonsguide.config.guiconfig.RootConfigPanel; import kr.syeyoung.dungeonsguide.config.types.AColor; import kr.syeyoung.dungeonsguide.dungeon.DungeonContext; +import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoom; import kr.syeyoung.dungeonsguide.features.FeatureParameter; import kr.syeyoung.dungeonsguide.features.FeatureRegistry; import kr.syeyoung.dungeonsguide.features.SimpleFeature; @@ -105,8 +106,11 @@ public class FeatureWarningOnPortal extends SimpleFeature implements StyledTextP DungeonContext context = skyblockStatus.getContext(); FeatureDungeonScore.ScoreCalculation scoreCalculation = FeatureRegistry.DUNGEON_SCORE.calculateScore(); + boolean failed = context.getDungeonRoomList().stream().anyMatch(a -> a.getCurrentState() == DungeonRoom.RoomState.FAILED); if (context.getMapProcessor().getUndiscoveredRoom() > 0) { texts.add(new StyledText("There are at least "+context.getMapProcessor().getUndiscoveredRoom()+" undiscovered rooms!\n", "warning")); + } else if (failed) { + texts.add(new StyledText("There is a failed puzzle room! Yikes!\n", "warning")); } else if (!scoreCalculation.isFullyCleared()) { texts.add(new StyledText("Some rooms are not fully cleared!\n", "warning")); } else if (scoreCalculation.getTombs() < 5) { -- cgit