From de772237c9d9cfe3bed3a5c08d0d1660466a2b25 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 11 Feb 2024 18:39:31 -0600 Subject: [PATCH] 5 minute upgrades for NPCs --- src/engine/objects/Mob.java | 3 ++- src/engine/objects/NPC.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 00bdfb28..6efc6119 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1885,7 +1885,8 @@ public class Mob extends AbstractIntelligenceAgent { if (!building.transferGold(-rankCost, false)) return; - DateTime dateToUpgrade = DateTime.now().plusHours(Mob.getUpgradeTime(this)); + //DateTime dateToUpgrade = DateTime.now().plusHours(Mob.getUpgradeTime(this)); + DateTime dateToUpgrade = DateTime.now().plusMinutes(5); Mob.setUpgradeDateTime(this, dateToUpgrade); // Schedule upgrade job diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 07775e33..82adb937 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -1325,7 +1325,8 @@ public class NPC extends AbstractCharacter { if (!building.transferGold(-rankCost, false)) return; - dateToUpgrade = DateTime.now().plusHours(this.getUpgradeTime()); + //dateToUpgrade = DateTime.now().plusHours(this.getUpgradeTime()); + dateToUpgrade = DateTime.now().plusMinutes(5); this.setUpgradeDateTime(dateToUpgrade);