mine tower health scales with cap size

This commit is contained in:
2024-06-12 18:35:22 -05:00
parent aeb21c328e
commit fc7e6735a1
+5 -1
View File
@@ -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) {