diff options
author | syeyoung <cyong06@naver.com> | 2021-01-27 19:01:40 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-01-27 19:01:40 +0900 |
commit | 4dc9da6c2b23d145583ef528260cc7023a60bdfa (patch) | |
tree | 2916b02e3866b03a98092fd38406e3954b552b7c /src/main/java/kr/syeyoung/dungeonsguide/dungeon | |
parent | b5cbefcccf5ae5b7d156b181c5cefdcee3861ab8 (diff) | |
download | Skyblock-Dungeons-Guide-4dc9da6c2b23d145583ef528260cc7023a60bdfa.tar.gz Skyblock-Dungeons-Guide-4dc9da6c2b23d145583ef528260cc7023a60bdfa.tar.bz2 Skyblock-Dungeons-Guide-4dc9da6c2b23d145583ef528260cc7023a60bdfa.zip |
BONZO
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon')
3 files changed, 80 insertions, 98 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java index ed66ab00..025ae7fa 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java @@ -214,6 +214,8 @@ public class MapProcessor { } } if (dungeonRoom.getTotalSecrets() == -1) { + if (dungeonRoom.getColor() == 82) dungeonRoom.setTotalSecrets(0); + else if (dungeonRoom.getColor() == 74) dungeonRoom.setTotalSecrets(0); MapUtils.record(mapData, mapPoint.x, mapPoint.y +1, new Color(0,255,0,80)); } continue; @@ -226,11 +228,11 @@ public class MapProcessor { e.sendDebugChat(new ChatComponentText("New Map discovered! mapMin: "+rooms.getMin())); StringBuilder builder = new StringBuilder(); for (int dy =0;dy<4;dy++) { + builder.append("\n"); for (int dx = 0; dx < 4; dx ++) { boolean isSet = ((rooms.getShape() >> (dy * 4 + dx)) & 0x1) != 0; builder.append(isSet ? "O" : "X"); } - builder.append("\n"); } e.sendDebugChat(new ChatComponentText("Shape visual: "+builder.toString())); 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 ce2f6039..daff59d0 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java @@ -4,6 +4,7 @@ import com.google.common.base.Predicate; import com.google.common.collect.Sets; import kr.syeyoung.dungeonsguide.e; import kr.syeyoung.dungeonsguide.roomprocessor.bossfight.BossfightProcessor; +import kr.syeyoung.dungeonsguide.roomprocessor.bossfight.BossfightProcessorBonzo; import kr.syeyoung.dungeonsguide.roomprocessor.bossfight.BossfightProcessorLivid; import kr.syeyoung.dungeonsguide.roomprocessor.bossfight.GeneralBossfightProcessor; import net.minecraft.entity.item.EntityArmorStand; @@ -77,104 +78,80 @@ public class CatacombDataProvider implements DungeonSpecificDataProvider { public BossfightProcessor createBossfightProcessor(World w, String dungeonName) { String floor = dungeonName.substring(14).trim(); e.sendDebugChat(new ChatComponentText("Floor: "+floor+ " Building bossfight processor")); - if (floor.equals("F2")) { - GeneralBossfightProcessor bossfightProcessor = new GeneralBossfightProcessor(); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("start") - .signatureMsg("§r§c[BOSS] Scarf§r§f: This is where the journey ends for you, Adventurers.§r") - .nextPhase("fight-1").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("fight-1") - .signatureMsg("§r§c[BOSS] Scarf§r§f: ARISE, MY CREATIONS!§r") - .nextPhase("first-defeat").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("first-defeat") - .signatureMsg("§r§c[BOSS] Scarf§r§f: Those toys are not strong enough I see.§r") - .nextPhase("fight-2").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("fight-2") - .signatureMsg("§r§c[BOSS] Scarf§r§f: Did you forget? I was taught by the best! Let's dance.§r") - .nextPhase("final-defeat").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("final-defeat") - .signatureMsg("§r§c[BOSS] Scarf§r§f: Whatever...§r").build() - ); - return bossfightProcessor; +// if (floor.equals("F2")) { +// GeneralBossfightProcessor bossfightProcessor = new GeneralBossfightProcessor(); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("start") +// .signatureMsg("§r§c[BOSS] Scarf§r§f: This is where the journey ends for you, Adventurers.§r") +// .nextPhase("fight-1").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("fight-1") +// .signatureMsg("§r§c[BOSS] Scarf§r§f: ARISE, MY CREATIONS!§r") +// .nextPhase("first-defeat").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("first-defeat") +// .signatureMsg("§r§c[BOSS] Scarf§r§f: Those toys are not strong enough I see.§r") +// .nextPhase("fight-2").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("fight-2") +// .signatureMsg("§r§c[BOSS] Scarf§r§f: Did you forget? I was taught by the best! Let's dance.§r") +// .nextPhase("final-defeat").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("final-defeat") +// .signatureMsg("§r§c[BOSS] Scarf§r§f: Whatever...§r").build() +// ); +// return bossfightProcessor; + if (false) { } else if (floor.equals("F1")) { - GeneralBossfightProcessor bossfightProcessor = new GeneralBossfightProcessor(); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("start") - .signatureMsg("§r§c[BOSS] Bonzo§r§f: Gratz for making it this far, but I’m basically unbeatable.§r") - .nextPhase("fight-1").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("fight-1") - .signatureMsg("§r§c[BOSS] Bonzo§r§f: I can summon lots of undead! Check this out.§r") - .nextPhase("first-defeat").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("first-defeat") - .signatureMsg("§r§c[BOSS] Bonzo§r§f: Oh I'm dead!§r").signatureMsg("§r§c[BOSS] Bonzo§r§f: Hoho, looks like you killed me!§r") - .nextPhase("fight-2").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("fight-2") - .signatureMsg("§r§c[BOSS] Bonzo§r§f: Sike§r").signatureMsg("§r§c[BOSS] Bonzo§r§f: I can revive myself and become much stronger!§r") - .nextPhase("final-defeat").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("final-defeat") - .signatureMsg("§r§c[BOSS] Bonzo§r§f: Alright, maybe I'm just weak after all..§r").build() - ); - bossfightProcessor.setBossMaxHealth(250000); - return bossfightProcessor; - } else if (floor.equals("F3")) { - GeneralBossfightProcessor bossfightProcessor = new GeneralBossfightProcessor(); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("start") - .signatureMsg("§r§c[BOSS] The Professor§r§f: I was burdened with terrible news recently...§r") - .nextPhase("fight-1").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("fight-1") - .signatureMsg("§r§c[BOSS] The Professor§r§f: I'll show you real power!§r") - .nextPhase("first-defeat").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("first-defeat") - .signatureMsg("§r§c[BOSS] The Professor§r§f: Oh? You found my Guardians one weakness?§r") - .nextPhase("fight-2").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("fight-2") - .signatureMsg("§r§c[BOSS] The Professor§r§f: This time I'll be your opponent!§r") - .nextPhase("second-defeat").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("second-defeat") - .signatureMsg("§r§c[BOSS] The Professor§r§f: I see. You have forced me to use my ultimate technique.§r") - .nextPhase("fight-3").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("fight-3") - .signatureMsg("§r§c[BOSS] The Professor§r§f: The process is irreversible, but I'll be stronger than a Wither now!§r") - .nextPhase("final-defeat").build() - ); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("final-defeat") - .signatureMsg("§r§c[BOSS] The Professor§r§f: What?! My Guardian power is unbeatable!§r").build() - ); - return bossfightProcessor; - } else if (floor.equals("F4")) { - GeneralBossfightProcessor bossfightProcessor = new GeneralBossfightProcessor(); - bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() - .phase("fight").build() - ); + GeneralBossfightProcessor bossfightProcessor = new BossfightProcessorBonzo(); return bossfightProcessor; +// } else if (floor.equals("F3")) { +// GeneralBossfightProcessor bossfightProcessor = new GeneralBossfightProcessor(); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("start") +// .signatureMsg("§r§c[BOSS] The Professor§r§f: I was burdened with terrible news recently...§r") +// .nextPhase("fight-1").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("fight-1") +// .signatureMsg("§r§c[BOSS] The Professor§r§f: I'll show you real power!§r") +// .nextPhase("first-defeat").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("first-defeat") +// .signatureMsg("§r§c[BOSS] The Professor§r§f: Oh? You found my Guardians one weakness?§r") +// .nextPhase("fight-2").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("fight-2") +// .signatureMsg("§r§c[BOSS] The Professor§r§f: This time I'll be your opponent!§r") +// .nextPhase("second-defeat").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("second-defeat") +// .signatureMsg("§r§c[BOSS] The Professor§r§f: I see. You have forced me to use my ultimate technique.§r") +// .nextPhase("fight-3").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("fight-3") +// .signatureMsg("§r§c[BOSS] The Professor§r§f: The process is irreversible, but I'll be stronger than a Wither now!§r") +// .nextPhase("final-defeat").build() +// ); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("final-defeat") +// .signatureMsg("§r§c[BOSS] The Professor§r§f: What?! My Guardian power is unbeatable!§r").build() +// ); +// return bossfightProcessor; +// } else if (floor.equals("F4")) { +// GeneralBossfightProcessor bossfightProcessor = new GeneralBossfightProcessor(); +// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() +// .phase("fight").build() +// ); +// return bossfightProcessor; } else if (floor.equals("F5")) { return new BossfightProcessorLivid(); } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java index 4a4def5d..e014d721 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java @@ -2,6 +2,7 @@ package kr.syeyoung.dungeonsguide.dungeon.roomfinder; import kr.syeyoung.dungeonsguide.e; import kr.syeyoung.dungeonsguide.dungeon.data.DungeonRoomInfo; +import net.minecraft.client.Minecraft; import org.apache.commons.io.IOUtils; import javax.crypto.BadPaddingException; @@ -51,9 +52,11 @@ public class DungeonRoomInfoRegistry { public static void saveAll(File dir) { dir.mkdirs(); + boolean isDev = Minecraft.getMinecraft().getSession().getPlayerID().replace("-","").equals("e686fe0aab804a71ac7011dc8c2b534c"); + System.out.println(isDev); for (DungeonRoomInfo dungeonRoomInfo : registered) { try { - if (!dungeonRoomInfo.isUserMade()) continue; + if (!dungeonRoomInfo.isUserMade() && !isDev) continue; FileOutputStream fos = new FileOutputStream(new File(dir, dungeonRoomInfo.getUuid().toString() + ".roomdata")); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(dungeonRoomInfo); |