|
|
|
@ -463,26 +463,8 @@ public enum BuildingManager {
@@ -463,26 +463,8 @@ public enum BuildingManager {
|
|
|
|
|
return GuildStatusController.isGuildLeader(player.getGuildStatus()) || GuildStatusController.isInnerCouncil(player.getGuildStatus()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static int GetAvailableGold(Building building) { |
|
|
|
|
|
|
|
|
|
if (building.getStrongboxValue() == 0) |
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
if (building.getStrongboxValue() < building.reserve) |
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
return building.getStrongboxValue() - building.reserve; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static boolean IsPlayerHostile(Building building, PlayerCharacter player) { |
|
|
|
|
|
|
|
|
|
//Nation Members and Guild members are not hostile.
|
|
|
|
|
// if (building.getGuild() != null){
|
|
|
|
|
// if (pc.getGuild() != null)
|
|
|
|
|
// if (building.getGuild().getObjectUUID() == pc.getGuildUUID()
|
|
|
|
|
// || pc.getGuild().getNation().getObjectUUID() == building.getGuild().getNation().getObjectUUID())
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
if (Guild.sameNationExcludeErrant(building.getGuild(), player.getGuild())) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|