Browse Source

5 minute upgrades for NPCs

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

3
src/engine/objects/Mob.java

@ -1885,7 +1885,8 @@ public class Mob extends AbstractIntelligenceAgent {
if (!building.transferGold(-rankCost, false)) if (!building.transferGold(-rankCost, false))
return; 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); Mob.setUpgradeDateTime(this, dateToUpgrade);
// Schedule upgrade job // Schedule upgrade job

3
src/engine/objects/NPC.java

@ -1325,7 +1325,8 @@ public class NPC extends AbstractCharacter {
if (!building.transferGold(-rankCost, false)) if (!building.transferGold(-rankCost, false))
return; return;
dateToUpgrade = DateTime.now().plusHours(this.getUpgradeTime()); //dateToUpgrade = DateTime.now().plusHours(this.getUpgradeTime());
dateToUpgrade = DateTime.now().plusMinutes(5);
this.setUpgradeDateTime(dateToUpgrade); this.setUpgradeDateTime(dateToUpgrade);

Loading…
Cancel
Save