trainer upgrade cost reduced to 25%

This commit is contained in:
2024-05-12 20:23:30 -05:00
parent a8a9cdb0f1
commit f885560e52
+6 -2
View File
@@ -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 {
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;
}