From 33a369821afaaefb19669309df95a832f81fceb6 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 22 Feb 2024 20:49:08 -0600 Subject: [PATCH] Mine Changes --- src/engine/objects/Mine.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 2313286a..0f6e388d 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -346,15 +346,20 @@ public class Mine extends AbstractGameObject { int amount = 0; switch(this.capSize){ case 5: - amount = (int)(3000000/value); + amount = 3000000; break; case 10: - amount = (int)(6000000/value); + amount = 6000000; break; case 20: - amount = (int)(9000000/value); + amount = 9000000; break; } + if(this.production.UUID == 7) + amount *= 0.5f; + else + amount = amount / value; + return this.owningGuild.getOwnedCity().getWarehouse().depositFromMine(this, resourceIB, amount); }