Lore rules added to method

This commit is contained in:
2024-06-19 17:01:02 -04:00
parent 3926160ab1
commit a24c611bac
+9 -3
View File
@@ -295,14 +295,21 @@ public class City extends AbstractWorldObject {
ConcurrentHashMap<Integer, AbstractGameObject> worldCities = DbManager.getMap(mbEnums.GameObjectType.City); ConcurrentHashMap<Integer, AbstractGameObject> worldCities = DbManager.getMap(mbEnums.GameObjectType.City);
if (ConfigManager.MB_RULESET.getValue().equals("LORE")) {
//handle compiling of cities able to be teleported to for lore rule-set //handle compiling of cities able to be teleported to for lore rule-set
for (AbstractGameObject ago : worldCities.values()) { for (AbstractGameObject ago : worldCities.values()) {
City city = (City) ago; City city = (City) ago;
// Filter Lore cities
if (ConfigManager.MB_RULESET.getValue().equals("LORE")) {
if (repledge == false)
if (!city.getGuild().charter.equals(playerCharacter.guild.charter))
continue;
}
// Filter Player cities // Filter Player cities
if (city.parentZone == null) if (city.parentZone == null)
@@ -354,7 +361,6 @@ public class City extends AbstractWorldObject {
if (city.isNpc == 1 && city.isNoobIsle == 0 && playerCharacter.level >= 20) if (city.isNpc == 1 && city.isNoobIsle == 0 && playerCharacter.level >= 20)
cities.add(city); // Errants can travel everywhere off noob isle. cities.add(city); // Errants can travel everywhere off noob isle.
} }
}
return cities; return cities;
} }