Browse Source

mine tower health scales with cap size

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
fc7e6735a1
  1. 6
      src/engine/objects/Mine.java

6
src/engine/objects/Mine.java

@ -99,7 +99,11 @@ public class Mine extends AbstractGameObject { @@ -99,7 +99,11 @@ public class Mine extends AbstractGameObject {
this.openMinute = rs.getInt("mineLiveMinute");
this.capSize = rs.getInt("capSize");
this.liveTime = LocalDateTime.now().withHour(this.openHour).withMinute(this.openMinute);
Building tower = BuildingManager.getBuildingFromCache(this.buildingID);
if(tower != null){
tower.setMaxHitPoints(5000f * this.capSize);
tower.setCurrentHitPoints(tower.healthMax);
}
}
public static void releaseMineClaims(PlayerCharacter playerCharacter) {

Loading…
Cancel
Save