Browse Source

Mine Changes

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
05eb8cd961
  1. 4
      src/engine/objects/Mine.java

4
src/engine/objects/Mine.java

@ -186,7 +186,7 @@ public class Mine extends AbstractGameObject {
writer.putString(mine.mineType.name); writer.putString(mine.mineType.name);
writer.putString(mine.zoneName + " {" + mine.capSize + " Man}"); writer.putString(mine.zoneName + " {" + mine.capSize + " Man}");
writer.putInt(mine.production.hash); writer.putInt(mine.production.hash);
writer.putInt(mine.production.baseProduction); writer.putInt(mine.getModifiedProductionAmount());
writer.putInt(mine.getModifiedProductionAmount()); //TODO calculate range penalty here writer.putInt(mine.getModifiedProductionAmount()); //TODO calculate range penalty here
writer.putInt(3600); //window in seconds writer.putInt(3600); //window in seconds
@ -336,7 +336,7 @@ public class Mine extends AbstractGameObject {
if (!MineQueries.CHANGE_RESOURCE(this, resource)) if (!MineQueries.CHANGE_RESOURCE(this, resource))
return false; return false;
if(this.isActive) if(this.isActive || this.hasProduced)
return false; return false;
this.production = resource; this.production = resource;

Loading…
Cancel
Save