Simplify logic.
This commit is contained in:
+3
-12
@@ -14,10 +14,7 @@ import engine.gameManager.PowersManager;
|
|||||||
import engine.gameManager.ZoneManager;
|
import engine.gameManager.ZoneManager;
|
||||||
import engine.math.Vector2f;
|
import engine.math.Vector2f;
|
||||||
import engine.math.Vector3fImmutable;
|
import engine.math.Vector3fImmutable;
|
||||||
import engine.objects.AbstractCharacter;
|
import engine.objects.*;
|
||||||
import engine.objects.ItemBase;
|
|
||||||
import engine.objects.Shrine;
|
|
||||||
import engine.objects.Zone;
|
|
||||||
import engine.powers.EffectsBase;
|
import engine.powers.EffectsBase;
|
||||||
import org.pmw.tinylog.Logger;
|
import org.pmw.tinylog.Logger;
|
||||||
|
|
||||||
@@ -441,14 +438,8 @@ public class Enum {
|
|||||||
spawnLocation = Vector3fImmutable.getRandomPointOnCircle(ruinZone.getLoc(), 30);
|
spawnLocation = Vector3fImmutable.getRandomPointOnCircle(ruinZone.getLoc(), 30);
|
||||||
} else {
|
} else {
|
||||||
ruinZone = ZoneManager.getZoneByName("sea dog's rest");
|
ruinZone = ZoneManager.getZoneByName("sea dog's rest");
|
||||||
|
City sdr = ZoneManager.getCityAtLocation(ruinZone.getLoc());
|
||||||
// 14001 does not have a banestone to bind at
|
spawnLocation = sdr.getBindLoc();
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return spawnLocation;
|
return spawnLocation;
|
||||||
|
|||||||
Reference in New Issue
Block a user