repair cost formula fixed

This commit is contained in:
2025-01-05 20:05:41 -06:00
parent f73ed17c05
commit 76eed79b0a
2 changed files with 10 additions and 18 deletions
+4 -1
View File
@@ -1227,7 +1227,10 @@ public class Item extends AbstractWorldObject {
}
public final int getMagicValue() {
return this.magicValue;
int val = this.calcMagicValue();
if(val == 0)
val = 1;
return val + this.getItemBase().getMagicValue();
}
public int getBaseValue() {