diff options
author | syeyoung <cyong06@naver.com> | 2021-01-17 15:55:59 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-01-17 15:55:59 +0900 |
commit | a976ac4cfb25514d4e56310e044e64adf2f285de (patch) | |
tree | e099c924901b62e2156c7832756b29ba9d92b18a /src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | |
parent | 7c45bc056f404eb743bd97bf2c3c5900cde27083 (diff) | |
download | Skyblock-Dungeons-Guide-a976ac4cfb25514d4e56310e044e64adf2f285de.tar.gz Skyblock-Dungeons-Guide-a976ac4cfb25514d4e56310e044e64adf2f285de.tar.bz2 Skyblock-Dungeons-Guide-a976ac4cfb25514d4e56310e044e64adf2f285de.zip |
score calculation a bit better and bossfights
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java index bda98879..489925b2 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java @@ -36,6 +36,10 @@ public class SkyblockStatus { private DungeonContext context; @Getter + @Setter + private int percentage; + + @Getter private String dungeonName; private final Pattern SERVER_BRAND_PATTERN = Pattern.compile("(.+) <- (?:.+)"); @@ -89,6 +93,7 @@ public class SkyblockStatus { String strippedLine = TextUtils.keepScoreboardCharacters(TextUtils.stripColor(ScorePlayerTeam.formatPlayerName(scorePlayerTeam, sc.getPlayerName()))).trim(); if (strippedLine.contains("Dungeon Cleared: ")) { foundDungeon = true; + percentage = Integer.parseInt(strippedLine.substring(17)); } if (ScorePlayerTeam.formatPlayerName(scorePlayerTeam, sc.getPlayerName()).startsWith(" §7⏣")) { dungeonName = strippedLine.trim(); |