Browse Source

magicvalue update

combat-2
MagicBot 6 months ago
parent
commit
ff17cacda7
  1. 6
      src/engine/objects/Item.java

6
src/engine/objects/Item.java

@ -172,7 +172,6 @@ public class Item extends AbstractWorldObject { @@ -172,7 +172,6 @@ public class Item extends AbstractWorldObject {
} else
this.magicValue = this.value; // Value was overridden in vendor inventory
}
public static void _serializeForClientMsg(Item item, ByteBufferWriter writer)
@ -972,7 +971,10 @@ public class Item extends AbstractWorldObject { @@ -972,7 +971,10 @@ public class Item extends AbstractWorldObject {
}
}
this.magicValue = this.template.item_value + calcMagicValue();
// Value is overridden the db
if (this.value == this.template.item_value)
this.magicValue = this.template.item_value + calcMagicValue();
}
public void addPermanentEnchantment(String enchantID, int rank) {

Loading…
Cancel
Save