Browse Source

mine management to show correct production amount

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
a5eb2fce75
  1. 5
      src/engine/objects/Mine.java

5
src/engine/objects/Mine.java

@ -247,8 +247,7 @@ public class Mine extends AbstractGameObject {
// Only inactive mines are returned. // Only inactive mines are returned.
for (Mine mine : Mine.mineMap.keySet()) { for (Mine mine : Mine.mineMap.keySet()) {
if (mine.owningGuild.getObjectUUID() == guildID && if (mine.owningGuild.getObjectUUID() == guildID)
mine.isActive == false)
mineList.add(mine); mineList.add(mine);
} }
return mineList; return mineList;
@ -416,7 +415,7 @@ public class Mine extends AbstractGameObject {
writer.putString(this.mineType.name); writer.putString(this.mineType.name);
writer.putString(this.zoneName); writer.putString(this.zoneName);
writer.putInt(this.production.hash); writer.putInt(this.production.hash);
writer.putInt(this.production.baseProduction); writer.putInt(this.getModifiedProductionAmount());
writer.putInt(this.getModifiedProductionAmount()); //TODO calculate range penalty here writer.putInt(this.getModifiedProductionAmount()); //TODO calculate range penalty here
writer.putInt(3600); //window in seconds writer.putInt(3600); //window in seconds
writer.putInt(this.isExpansion() ? this.mineType.xpacHash : this.mineType.hash); writer.putInt(this.isExpansion() ? this.mineType.xpacHash : this.mineType.hash);

Loading…
Cancel
Save