mines produce once a day, maintenance system for TOL only

This commit is contained in:
2024-06-25 20:17:16 -05:00
parent 94be3335a0
commit c0d1a4f274
5 changed files with 32 additions and 45 deletions
+3 -18
View File
@@ -780,24 +780,9 @@ public class Building extends AbstractWorldObject {
public int getMaintCost() {
int maintCost = 0;
// Add cost for building structure
maintCost += this.getBlueprint().getMaintCost(rank);
// Add costs associated with hirelings
for (AbstractCharacter npc : this.hirelings.keySet()) {
if (npc.getObjectType() != GameObjectType.NPC)
continue;
maintCost += Blueprint.getNpcMaintCost(npc.getRank());
}
return maintCost;
if(this.getBlueprint() != null && this.getBlueprint().getBuildingGroup().equals(BuildingGroup.TOL))
return 3000000;
else return 0;
}
public final void submitOpenDoorJob(int doorID) {