Browse Source

remove distance reduction for mine production

mixbane
FatBoy-DOTC 1 month ago
parent
commit
68d525f91c
  1. 16
      src/engine/objects/Mine.java

16
src/engine/objects/Mine.java

@ -570,22 +570,6 @@ public class Mine extends AbstractGameObject {
} }
//add base production on top; //add base production on top;
totalModded += baseProduction; totalModded += baseProduction;
//skip distance check for expansion.
if (this.isExpansion())
return (int) totalModded;
if (this.owningGuild.isEmptyGuild() == false) {
if (this.owningGuild.getOwnedCity() != null) {
float distanceSquared = this.owningGuild.getOwnedCity().getLoc().distanceSquared2D(mineBuilding.getLoc());
if (distanceSquared > sqr(10000 * 3))
totalModded *= .25f;
else if (distanceSquared > sqr(10000 * 2))
totalModded *= .50f;
else if (distanceSquared > sqr(10000))
totalModded *= .75f;
}
}
return (int) totalModded; return (int) totalModded;
} }

Loading…
Cancel
Save