2
0
Fork 0

Carriage costs updated to 50$ per block instead of 100$

main
KeyLime17 3 months ago
parent e734edd7eb
commit 57d756de46

@ -82,11 +82,11 @@ public class CarriageUtils {
public static int calculateCost(double playerX, double playerZ, CarriageDestination dest) {
if (dest.road.equals("sea")) {
double dist = Math.sqrt(Math.pow(dest.x - playerX, 2) + Math.pow(dest.z - playerZ, 2));
int cost = 500 + Math.max(1, (int)(dist / 500)); // replace 10 with another hardcoded value
int cost = 500 + Math.max(1, (int)(dist / 50)); // 50 is the cost per block + 500 base cost
return cost;
}
double dist = Math.sqrt(Math.pow(dest.x - playerX, 2) + Math.pow(dest.z - playerZ, 2));
int cost = Math.max(1, (int)(dist / 100)); // replace 10 with another hardcoded value
int cost = Math.max(1, (int)(dist / 50)); // 50 is the cost per block, with base cost of 1
return cost;
}

@ -398,6 +398,8 @@ entity.cinder_loe.MordorOrcSmith.name=Black Uruk Smith
lotr.enchant.protectWeak1=Dented
lotr.enchant.baneNPC=Lifebane
lotr.enchant.baneNPC.desc=+4.0 melee damage vs. All NPCs
lotr.enchant.baneNPC.earn=Shinare moment, shinare moment Lifebane is obtainable!!!!!
lotr.enchant.protectWeak2=Defective
lotr.enchant.protectRangedWeak1=Punctured
lotr.enchant.protectRangedWeak2=Pierced

Loading…
Cancel
Save