Browse Source

Update to player city filter

weekend-fixings
MagicBot 4 months ago
parent
commit
dfa646d828
  1. 15
      src/engine/objects/City.java

15
src/engine/objects/City.java

@ -308,6 +308,21 @@ public class City extends AbstractWorldObject {
if (city.parentZone == null) if (city.parentZone == null)
continue; continue;
// Can't teleport to something without a tree
if (city.getTOL() == null)
continue;
// No abandoned cities
if (city.getTOL().getGuild().isEmptyGuild())
continue;
// No destroyed cities
if (city.getTOL().getRank() == -1)
continue;
//can't repledge to a guild you're already part of //can't repledge to a guild you're already part of
if (repledge && city.getGuild().equals(playerCharacter.guild)) if (repledge && city.getGuild().equals(playerCharacter.guild))

Loading…
Cancel
Save