forked from MagicBane/Server
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));
|
hPMod = (building.getMaxHitPoints() * Realm.getRealmHealthMod(city));
|
||||||
|
float percentOfHealth = building.getCurrentHitpoints() / building.getHealthMax();
|
||||||
building.setMaxHitPoints(building.getMaxHitPoints() + hPMod);
|
building.setMaxHitPoints(building.getMaxHitPoints() + hPMod);
|
||||||
|
building.setCurrentHitPoints(building.getMaxHitPoints() * percentOfHealth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,8 +61,6 @@ public class Mine extends AbstractGameObject {
|
|||||||
|
|
||||||
public int liveTime;
|
public int liveTime;
|
||||||
|
|
||||||
public int liveLength = 3600;
|
|
||||||
|
|
||||||
public static ArrayList<Mine> ChinaMines = new ArrayList<>();
|
public static ArrayList<Mine> ChinaMines = new ArrayList<>();
|
||||||
public static ArrayList<Mine> EuroMines = new ArrayList<>();
|
public static ArrayList<Mine> EuroMines = new ArrayList<>();
|
||||||
public static ArrayList<Mine> AmericaMines = new ArrayList<>();
|
public static ArrayList<Mine> AmericaMines = new ArrayList<>();
|
||||||
@@ -388,15 +386,15 @@ public class Mine extends AbstractGameObject {
|
|||||||
if (nationCapitolTOL == null)
|
if (nationCapitolTOL == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int treeRank = nationCapitolTOL.getRank();
|
//int treeRank = nationCapitolTOL.getRank();
|
||||||
|
|
||||||
if (treeRank < 1)
|
//if (treeRank < 1)
|
||||||
return false;
|
// return false;
|
||||||
|
|
||||||
if (guildUnderMineLimit(playerGuild.getNation(), treeRank) == false) {
|
//if (guildUnderMineLimit(playerGuild.getNation(), treeRank) == false) {
|
||||||
ErrorPopupMsg.sendErrorMsg(playerCharacter, "Your nation cannot support another mine.");
|
// ErrorPopupMsg.sendErrorMsg(playerCharacter, "Your nation cannot support another mine.");
|
||||||
return false;
|
// return false;
|
||||||
}
|
//}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user