|
|
|
@ -1483,11 +1483,10 @@ public class CharacterItemManager {
@@ -1483,11 +1483,10 @@ public class CharacterItemManager {
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
// Reset value
|
|
|
|
|
|
|
|
|
|
purchasedItem.value = (int) (purchasedItem.template.item_value * (purchasedItem.combat_health_current / purchasedItem.template.combat_health_full)); |
|
|
|
|
purchasedItem.value = purchasedItem.value * (purchasedItem.chargesRemaining / purchasedItem.template.item_initial_charges); |
|
|
|
|
DbManager.ItemQueries.UPDATE_VALUE(purchasedItem, purchasedItem.value); |
|
|
|
|
|
|
|
|
|
// db transfer successfull, remove from this character
|
|
|
|
|
// db transfer successfully, remove from this character
|
|
|
|
|
// skip this check if this is a mobLoot item (which is not in any inventory)
|
|
|
|
|
if (!itemMan.removeItemFromInventory(purchasedItem)) |
|
|
|
|
return false; |
|
|
|
|