Browse Source

Simplify logic.

master
MagicBot 1 year ago
parent
commit
4b49777eb2
  1. 15
      src/engine/Enum.java

15
src/engine/Enum.java

@ -14,10 +14,7 @@ import engine.gameManager.PowersManager; @@ -14,10 +14,7 @@ import engine.gameManager.PowersManager;
import engine.gameManager.ZoneManager;
import engine.math.Vector2f;
import engine.math.Vector3fImmutable;
import engine.objects.AbstractCharacter;
import engine.objects.ItemBase;
import engine.objects.Shrine;
import engine.objects.Zone;
import engine.objects.*;
import engine.powers.EffectsBase;
import org.pmw.tinylog.Logger;
@ -441,14 +438,8 @@ public class Enum { @@ -441,14 +438,8 @@ public class Enum {
spawnLocation = Vector3fImmutable.getRandomPointOnCircle(ruinZone.getLoc(), 30);
} else {
ruinZone = ZoneManager.getZoneByName("sea dog's rest");
// 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)), 20);
City sdr = ZoneManager.getCityAtLocation(ruinZone.getLoc());
spawnLocation = sdr.getBindLoc();
}
return spawnLocation;

Loading…
Cancel
Save