From 1d9265f0e211c173740db5bf66c7ea70a2f652fa Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 29 Jan 2021 22:27:44 +0900 Subject: thorn maybe done --- .../dungeon/doorfinder/CatacombDataProvider.java | 8 ++----- .../bossfight/BossfightProcessorThorn.java | 25 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorThorn.java (limited to 'src/main/java/kr/syeyoung/dungeonsguide') 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 c2cb430c..09a70892 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/doorfinder/CatacombDataProvider.java @@ -81,12 +81,8 @@ public class CatacombDataProvider implements DungeonSpecificDataProvider { return new BossfightProcessorBonzo(); } else if (floor.equals("F3")) { return new BossfightProcessorProf(); -// } else if (floor.equals("F4")) { -// GeneralBossfightProcessor bossfightProcessor = new GeneralBossfightProcessor(); -// bossfightProcessor.addPhase(GeneralBossfightProcessor.PhaseData.builder() -// .phase("fight").build() -// ); -// return bossfightProcessor; + } else if (floor.equals("F4")) { + return new BossfightProcessorThorn(); } else if (floor.equals("F5")) { return new BossfightProcessorLivid(); } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorThorn.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorThorn.java new file mode 100644 index 00000000..ec37d65a --- /dev/null +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorThorn.java @@ -0,0 +1,25 @@ +package kr.syeyoung.dungeonsguide.roomprocessor.bossfight; + +import kr.syeyoung.dungeonsguide.utils.TextUtils; +import net.minecraft.entity.boss.BossStatus; +import net.minecraft.entity.item.EntityArmorStand; +import net.minecraftforge.event.entity.living.LivingEvent; + +import java.util.ArrayList; +import java.util.List; + +public class BossfightProcessorThorn extends GeneralBossfightProcessor { + public BossfightProcessorThorn() { + addPhase(GeneralBossfightProcessor.PhaseData.builder() + .phase("fight").build() + ); + } + + + @Override + public List getHealths() { + List healths = new ArrayList(); + healths.add(new HealthData("Thorn", (int) Math.round(BossStatus.healthScale * 4),4, true)); + return healths; + } +} -- cgit