diff options
author | syeyoung <cyong06@naver.com> | 2021-05-03 16:35:20 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-05-03 16:35:20 +0900 |
commit | 6eefa1e31ab1e3cabb6964f183bfdbced53017aa (patch) | |
tree | 5210d9ea1186b77cf74c14309e2b05394ab49211 /src/main/java/kr | |
parent | b7be6de48a1d9d6b04645c3b8321da6ee5df7a51 (diff) | |
download | Skyblock-Dungeons-Guide-6eefa1e31ab1e3cabb6964f183bfdbced53017aa.tar.gz Skyblock-Dungeons-Guide-6eefa1e31ab1e3cabb6964f183bfdbced53017aa.tar.bz2 Skyblock-Dungeons-Guide-6eefa1e31ab1e3cabb6964f183bfdbced53017aa.zip |
better score prediction
Diffstat (limited to 'src/main/java/kr')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java index 6bee931d..c5b9618e 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonScore.java @@ -228,6 +228,7 @@ public class FeatureDungeonScore extends TextHUDFeature implements StompConnecte int totalCompRooms= 0; boolean bossroomFound = false; boolean traproomFound = false; + int roomCnt = 0; for (DungeonRoom dungeonRoom : context.getDungeonRoomList()) { if (dungeonRoom.getColor() == 74) bossroomFound = true; if (dungeonRoom.getColor() == 62) traproomFound = true; @@ -241,11 +242,17 @@ public class FeatureDungeonScore extends TextHUDFeature implements StompConnecte skill += 1; skill += dungeonRoom.getCurrentState().getScoreModifier(); + + roomCnt += dungeonRoom.getUnitPoints().size(); } if (!bossroomFound) skill += 1; if (!traproomFound && context.isTrapRoomGen()) skill += 1; skill -= getUndiscoveredPuzzles() * 10; - skill -= Math.max(0, (getTotalRooms() - totalCompRooms) * 4); + if (context.getMapProcessor().getUndiscoveredRoom() == 0) { + skill -= Math.max(0, (roomCnt - totalCompRooms) * 4); + } else { + skill -= Math.max(0, (getTotalRooms() - totalCompRooms) * 4); + } skill = MathHelper.clamp_int(skill, 0, 100); } int explorer = 0; |