Browse Source

magicvalue update

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

4
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,6 +971,9 @@ public class Item extends AbstractWorldObject { @@ -972,6 +971,9 @@ public class Item extends AbstractWorldObject {
}
}
// Value is overridden the db
if (this.value == this.template.item_value)
this.magicValue = this.template.item_value + calcMagicValue();
}

Loading…
Cancel
Save