From 4dc40f4df4094978d4a01572b8a1d709292e6074 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 27 Jun 2023 18:21:26 -0400 Subject: [PATCH] Back to offset until city cleanup. --- src/engine/Enum.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index 3fe93773..e5560cd6 100644 --- a/src/engine/Enum.java +++ b/src/engine/Enum.java @@ -14,7 +14,10 @@ import engine.gameManager.PowersManager; import engine.gameManager.ZoneManager; import engine.math.Vector2f; import engine.math.Vector3fImmutable; -import engine.objects.*; +import engine.objects.AbstractCharacter; +import engine.objects.ItemBase; +import engine.objects.Shrine; +import engine.objects.Zone; import engine.powers.EffectsBase; import org.pmw.tinylog.Logger; @@ -438,10 +441,17 @@ public class Enum { spawnLocation = Vector3fImmutable.getRandomPointOnCircle(ruinZone.getLoc(), 30); } else { ruinZone = ZoneManager.getZoneByName("sea dog's rest"); - City sdr = ZoneManager.getCityAtLocation(ruinZone.getLoc()); - spawnLocation = sdr.getBindLoc(); + + // 14001 does not have a banestone to bind at + + if (ruinZone.getLoadNum() == 14001) + spawnLocation = Vector3fImmutable.getRandomPointOnCircle(ruinZone.getLoc(), 30); + else + spawnLocation = Vector3fImmutable.getRandomPointOnCircle(ruinZone.getLoc() + .add(new Vector3fImmutable(-196.016f, 2.812f, 203.621f)), 30); } + return spawnLocation; }