diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-25 20:46:12 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-25 20:46:12 +0900 |
commit | 2592718d6241b88192d58c48d94904efa46b18fe (patch) | |
tree | e18e6db455bcfe93324bbf2ae02a39af1a9435e6 | |
parent | e133944b0760bd0eb2616b740f440aa8ae26b0ed (diff) | |
download | Skyblock-Dungeons-Guide-2592718d6241b88192d58c48d94904efa46b18fe.tar.gz Skyblock-Dungeons-Guide-2592718d6241b88192d58c48d94904efa46b18fe.tar.bz2 Skyblock-Dungeons-Guide-2592718d6241b88192d58c48d94904efa46b18fe.zip |
- Fix boss health not working
Signed-off-by: syeyoung <cyoung06@naver.com>
4 files changed, 16 insertions, 16 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorBonzo.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorBonzo.java index 4a17e6d7..0a2a746d 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorBonzo.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorBonzo.java @@ -84,7 +84,7 @@ public class BossfightProcessorBonzo extends GeneralBossfightProcessor { // §e﴾ §c§lBonzo§r §a250k§c❤ §e﴿ // Now I'm convinced name format is always the same public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { - if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lBonzo§r ") && updateEvent.entityLiving instanceof EntityArmorStand) { + if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lBonzo§r") && updateEvent.entityLiving instanceof EntityArmorStand) { bonzoStand = (EntityArmorStand) updateEvent.entityLiving; } } diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorProf.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorProf.java index 7800135c..8757a1a6 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorProf.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorProf.java @@ -131,15 +131,15 @@ public class BossfightProcessorProf extends GeneralBossfightProcessor { @Override public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving instanceof EntityArmorStand) { - if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lThe Professor§r ")) + if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lThe Professor§r")) profStand = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§cHealthy Guardian ")) + else if (updateEvent.entityLiving.getName().startsWith("§cHealthy Guardian")) healthyGuard = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§cChaos Guardian ")) + else if (updateEvent.entityLiving.getName().startsWith("§cChaos Guardian")) chaosGuard = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§cLaser Guardian ")) + else if (updateEvent.entityLiving.getName().startsWith("§cLaser Guardian")) laserGuard = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§cReinforced Guardian ")) + else if (updateEvent.entityLiving.getName().startsWith("§cReinforced Guardian")) reinforcedGuard = (EntityArmorStand) updateEvent.entityLiving; } } diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorSadan.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorSadan.java index e34a78da..1b60c0aa 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorSadan.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorSadan.java @@ -129,15 +129,15 @@ public class BossfightProcessorSadan extends GeneralBossfightProcessor { @Override public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving instanceof EntityArmorStand) { - if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lSadan§r ")) + if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lSadan§r")) sadanStand = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§c§d§lJolly Pink Giant ")) + else if (updateEvent.entityLiving.getName().startsWith("§c§d§lJolly Pink Giant")) boulderGiant = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§c§4§lL.A.S.R. ")) + else if (updateEvent.entityLiving.getName().startsWith("§c§4§lL.A.S.R.")) laserGiant = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§c§3§lThe Diamond Giant ")) + else if (updateEvent.entityLiving.getName().startsWith("§c§3§lThe Diamond Giant")) diamondGiant = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§c§c§lBigfoot ")) + else if (updateEvent.entityLiving.getName().startsWith("§c§c§lBigfoot")) bigfootGiant = (EntityArmorStand) updateEvent.entityLiving; } } diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorScarf.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorScarf.java index f94407fc..e01d6f9e 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorScarf.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/bossfight/BossfightProcessorScarf.java @@ -122,15 +122,15 @@ public class BossfightProcessorScarf extends GeneralBossfightProcessor { @Override public void onEntityUpdate(LivingEvent.LivingUpdateEvent updateEvent) { if (updateEvent.entityLiving instanceof EntityArmorStand) { - if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lScarf§r ")) + if (updateEvent.entityLiving.getName().startsWith("§e﴾ §c§lScarf§r")) scarfStand = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§6§4§lUndead Archer ")) + else if (updateEvent.entityLiving.getName().contains("§6§4§lUndead Archer")) archerStand = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§6§4§lUndead Mage ")) + else if (updateEvent.entityLiving.getName().contains("§6§4§lUndead Mage")) mageStand = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§6§4§lUndead Priest ")) + else if (updateEvent.entityLiving.getName().contains("§6§4§lUndead Priest")) priestStand = (EntityArmorStand) updateEvent.entityLiving; - else if (updateEvent.entityLiving.getName().startsWith("§6§4§lUndead Warrior ")) + else if (updateEvent.entityLiving.getName().contains("§6§4§lUndead Warrior")) berserkStand = (EntityArmorStand) updateEvent.entityLiving; } } |