allow BH and huntsman on all but priest
This commit is contained in:
@@ -195,7 +195,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
|
||||
}
|
||||
|
||||
hPMod = (building.getMaxHitPoints() * Realm.getRealmHealthMod(city));
|
||||
float percentOfHealth = building.getCurrentHitpoints() / building.getHealthMax();
|
||||
building.setMaxHitPoints(building.getMaxHitPoints() + hPMod);
|
||||
building.setCurrentHitPoints(building.getMaxHitPoints() * percentOfHealth);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,8 +61,6 @@ public class Mine extends AbstractGameObject {
|
||||
|
||||
public int liveTime;
|
||||
|
||||
public int liveLength = 3600;
|
||||
|
||||
public static ArrayList<Mine> ChinaMines = new ArrayList<>();
|
||||
public static ArrayList<Mine> EuroMines = new ArrayList<>();
|
||||
public static ArrayList<Mine> AmericaMines = new ArrayList<>();
|
||||
@@ -388,15 +386,15 @@ public class Mine extends AbstractGameObject {
|
||||
if (nationCapitolTOL == null)
|
||||
return false;
|
||||
|
||||
int treeRank = nationCapitolTOL.getRank();
|
||||
//int treeRank = nationCapitolTOL.getRank();
|
||||
|
||||
if (treeRank < 1)
|
||||
return false;
|
||||
//if (treeRank < 1)
|
||||
// return false;
|
||||
|
||||
if (guildUnderMineLimit(playerGuild.getNation(), treeRank) == false) {
|
||||
ErrorPopupMsg.sendErrorMsg(playerCharacter, "Your nation cannot support another mine.");
|
||||
return false;
|
||||
}
|
||||
//if (guildUnderMineLimit(playerGuild.getNation(), treeRank) == false) {
|
||||
// ErrorPopupMsg.sendErrorMsg(playerCharacter, "Your nation cannot support another mine.");
|
||||
// return false;
|
||||
//}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user