Browse Source

NPC 5 minute upgrades

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
c5376d24a5
  1. 3
      src/engine/objects/Mob.java
  2. 4
      src/engine/objects/NPC.java

3
src/engine/objects/Mob.java

@ -1885,7 +1885,8 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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

4
src/engine/objects/NPC.java

@ -1325,8 +1325,8 @@ public class NPC extends AbstractCharacter { @@ -1325,8 +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);
// Schedule upgrade job

Loading…
Cancel
Save