|
|
|
@ -186,7 +186,7 @@ public class Mine extends AbstractGameObject {
@@ -186,7 +186,7 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
writer.putString(mine.mineType.name); |
|
|
|
|
writer.putString(mine.zoneName + " {" + mine.capSize + " Man}"); |
|
|
|
|
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(3600); //window in seconds
|
|
|
|
|
|
|
|
|
@ -336,7 +336,7 @@ public class Mine extends AbstractGameObject {
@@ -336,7 +336,7 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
if (!MineQueries.CHANGE_RESOURCE(this, resource)) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
if(this.isActive) |
|
|
|
|
if(this.isActive || this.hasProduced) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
this.production = resource; |
|
|
|
|