Browse Source

trainer upgrade cost reduced to 25%

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
f885560e52
  1. 8
      src/engine/objects/NPC.java

8
src/engine/objects/NPC.java

@ -1100,7 +1100,7 @@ public class NPC extends AbstractCharacter { @@ -1100,7 +1100,7 @@ public class NPC extends AbstractCharacter {
return 600;
float rank = this.building.getRank() - 1;
float rate = (float) (2.5 * rank);
float rate = (float) (Float.parseFloat(ConfigManager.MB_PRODUCTION_RATE.getValue()) * rank);
time = (20 - rate);
time *= 60;
return (int) time;
@ -1139,8 +1139,12 @@ public class NPC extends AbstractCharacter { @@ -1139,8 +1139,12 @@ public class NPC extends AbstractCharacter {
upgradeCost = Integer.MAX_VALUE;
if (this.getRank() < 7)
if (this.getRank() < 7) {
if(this.contract.isTrainer()){
return (this.getRank() * 25162) + 5362;
}
return (this.getRank() * 100650) + 21450;
}
return upgradeCost;
}

Loading…
Cancel
Save