repair cost formula fixed

This commit is contained in:
FatBoy committed 2025-01-05 20:05:41 -06:00
1 parent f73ed17c05
commit 76eed79b0a
2 files changed
+10 -18

No files matched your search

+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() {