aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorsyeyoung <cyougn06@naver.com>2022-01-11 00:58:10 +0900
committersyeyoung <cyougn06@naver.com>2022-01-11 00:58:10 +0900
commit8e378b81fa27330b5cce4abe766248944750806f (patch)
tree1ec1c01758ffa5e0ccab52287901c1e140724e0a /src/main
parentf8cbd17a222a8b8c4b5669baadad45571d907bff (diff)
downloadSkyblock-Dungeons-Guide-8e378b81fa27330b5cce4abe766248944750806f.tar.gz
Skyblock-Dungeons-Guide-8e378b81fa27330b5cce4abe766248944750806f.tar.bz2
Skyblock-Dungeons-Guide-8e378b81fa27330b5cce4abe766248944750806f.zip
- M5 Support.
Diffstat (limited to 'src/main')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java2
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombMasterDataProvider.java3
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java7
3 files changed, 9 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java
index 92bfd218..0b3d33e8 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java
@@ -102,7 +102,7 @@ public class CatacombDataProvider implements DungeonSpecificDataProvider {
} else if (floor.equals("F4")) {
return new BossfightProcessorThorn();
} else if (floor.equals("F5")) {
- return new BossfightProcessorLivid();
+ return new BossfightProcessorLivid(false);
} else if (floor.equals("F6")) {
return new BossfightProcessorSadan();
} else if (floor.equals("F7")) {
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombMasterDataProvider.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombMasterDataProvider.java
index 4e535246..43d74079 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombMasterDataProvider.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombMasterDataProvider.java
@@ -93,6 +93,9 @@ public class CatacombMasterDataProvider implements DungeonSpecificDataProvider {
public BossfightProcessor createBossfightProcessor(World w, String dungeonName) {
String floor = dungeonName.substring(14).trim();
DungeonsGuide.sendDebugChat(new ChatComponentText("Floor: Master mode "+floor+ " Building bossfight processor"));
+ if (floor.equals("F5")) {
+ return new BossfightProcessorLivid(true);
+ }
return null;
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java
index 0ecae36b..ace0fd67 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java
@@ -34,8 +34,11 @@ public class BossfightProcessorLivid extends GeneralBossfightProcessor {
private final Set<String> knownLivids = new HashSet<String>();
- public BossfightProcessorLivid() {
+ private boolean isMasterMode;
+
+ public BossfightProcessorLivid(boolean isMasterMode) {
addPhase(PhaseData.builder().phase("start").build());
+ this.isMasterMode = isMasterMode;
}
private static final Map<String, String> lividColorPrefix = new HashMap<String, String>() {{
put("Vendetta", "§f");
@@ -76,7 +79,7 @@ public class BossfightProcessorLivid extends GeneralBossfightProcessor {
health = TextUtils.reverseFormat(healthPart.substring(0, healthPart.length() - 1));
} catch (Exception e) {e.printStackTrace();}
}
- healths.add(new HealthData(realLividName == null ? "unknown" : realLividName, (int) health,7000000 , true));
+ healths.add(new HealthData(realLividName == null ? "unknown" : realLividName, (int) health,isMasterMode ? 600000000 : 7000000 , true));
return healths;
}