aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-17 02:06:11 +0900
committersyeyoung <cyong06@naver.com>2021-02-17 02:06:11 +0900
commit85dbbd16cc89f3179eb99c70ea4e007814e7c529 (patch)
tree5d51cee6a89a77a7b0a29f05e5fc2240aab3bb28 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java
parenteb22ea41613998aecbe651e0584fc0e7958678a0 (diff)
downloadSkyblock-Dungeons-Guide-85dbbd16cc89f3179eb99c70ea4e007814e7c529.tar.gz
Skyblock-Dungeons-Guide-85dbbd16cc89f3179eb99c70ea4e007814e7c529.tar.bz2
Skyblock-Dungeons-Guide-85dbbd16cc89f3179eb99c70ea4e007814e7c529.zip
minor tweaks
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java
index b11cce84..70ec68d6 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionKill.java
@@ -4,6 +4,7 @@ import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import kr.syeyoung.dungeonsguide.dungeon.DungeonActionManager;
import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPoint;
+import kr.syeyoung.dungeonsguide.dungeon.mechanics.DungeonSecret;
import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoom;
import kr.syeyoung.dungeonsguide.utils.RenderUtils;
import lombok.Data;
@@ -34,6 +35,14 @@ public class ActionKill extends AbstractAction {
@Override
public boolean isComplete(DungeonRoom dungeonRoom) {
+ Vec3 spawn = new Vec3(target.getBlockPos(dungeonRoom));
+ for (Integer killed : DungeonActionManager.getKilleds()) {
+ if (DungeonActionManager.getSpawnLocation().get(killed) == null) continue;
+ if (DungeonActionManager.getSpawnLocation().get(killed).squareDistanceTo(spawn) < 100) {
+ return true;
+ }
+ }
+
return killed;
}