From 5a25958aa53ee8da53afc6d227d42fcb8cc76446 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 14 May 2024 19:35:37 -0500 Subject: [PATCH] cannot teleport od repledge to perdition or bastion --- src/engine/objects/City.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index a27b3e4f..e1b5f4a6 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -300,6 +300,8 @@ public class City extends AbstractWorldObject { //handle compiling of cities able to be teleported to for lore rule-set for (AbstractGameObject ago : worldCities.values()) { City city = (City) ago; + if(city.cityName.equals("Perdition") || city.cityName.equals("Bastion")) + continue; // cannot teleport to perdition or bastion if (city.isNpc == 1 && city.getGuild().charter.equals(pc.guild.charter)) { cities.add(city); // anyone of the same charter can teleport to a safehold of that charter continue; @@ -405,6 +407,8 @@ public class City extends AbstractWorldObject { //handle compiling of cities able to be repledged to for lore rule-set for (AbstractGameObject ago : worldCities.values()) { City city = (City) ago; + if(city.cityName.equals("Perdition") || city.cityName.equals("Bastion")) + continue; // cannot repledge to perdition or bastion if (city.isNpc == 1 && city.getGuild().charter.canJoin(playerCharacter)) { cities.add(city); // anyone of the same charter can teleport to a safehold of that charter continue;