aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-17 15:55:59 +0900
committersyeyoung <cyong06@naver.com>2021-01-17 15:55:59 +0900
commita976ac4cfb25514d4e56310e044e64adf2f285de (patch)
treee099c924901b62e2156c7832756b29ba9d92b18a /src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
parent7c45bc056f404eb743bd97bf2c3c5900cde27083 (diff)
downloadSkyblock-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-xsrc/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java5
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();