diff options
author | syeyoung <cyoung06@naver.com> | 2021-11-27 23:44:43 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2021-11-27 23:44:43 +0900 |
commit | 5b2be90cd5b5b7231220d44559f1002912bb29be (patch) | |
tree | 2fc2a3b77cf741e2ae3c39dff3246a9ed827a604 /src/main/java/kr/syeyoung | |
parent | ca5408d6083c700edd4cc6aa4a61068c94d28273 (diff) | |
download | Skyblock-Dungeons-Guide-5b2be90cd5b5b7231220d44559f1002912bb29be.tar.gz Skyblock-Dungeons-Guide-5b2be90cd5b5b7231220d44559f1002912bb29be.tar.bz2 Skyblock-Dungeons-Guide-5b2be90cd5b5b7231220d44559f1002912bb29be.zip |
- Suggestion 266
Diffstat (limited to 'src/main/java/kr/syeyoung')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureWarningOnPortal.java | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |