r8 gains 25% resource mine production bonus

This commit is contained in:
2024-06-06 19:49:41 -05:00
parent c696bd368e
commit 2f87fd9812
+13
View File
@@ -578,6 +578,19 @@ public class Mine extends AbstractGameObject {
if(this.production.UUID != 7)
amount = amount / value;
Guild owner = this.owningGuild;
City city;
if(owner != null) {
city = owner.getOwnedCity();
Building tol = null;
if (city != null)
tol = city.getTOL();
if (tol != null && tol.getRank() == 8)
return (int) (amount * 1.25f);
}
return amount;
}
public Boolean onExit(HashSet<AbstractWorldObject> currentPlayers){