From 2f87fd98126677279d618432a8d84070197e5a2b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Jun 2024 19:49:41 -0500 Subject: [PATCH] r8 gains 25% resource mine production bonus --- src/engine/objects/Mine.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 33c00e89..446dedd4 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -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 currentPlayers){