|
|
@ -140,11 +140,6 @@ public class RepairMsgHandler extends AbstractClientMsgHandler { |
|
|
|
if (!DbManager.ItemQueries.SET_DURABILITY(toRepair, max)) |
|
|
|
if (!DbManager.ItemQueries.SET_DURABILITY(toRepair, max)) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
toRepair.value = (int) (toRepair.template.item_value * (toRepair.combat_health_current / toRepair.template.combat_health_full)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!DbManager.ItemQueries.UPDATE_VALUE(toRepair, toRepair.value)) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//repair the item
|
|
|
|
//repair the item
|
|
|
|
|
|
|
|
|
|
|
|
toRepair.setCombat_health_current(max); |
|
|
|
toRepair.setCombat_health_current(max); |
|
|
|