Value is set as items as used or damaged. Not calculated on the fly.
This commit is contained in:
@@ -140,6 +140,11 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
if (!DbManager.ItemQueries.SET_DURABILITY(toRepair, max))
|
||||
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
|
||||
|
||||
toRepair.setCombat_health_current(max);
|
||||
|
||||
Reference in New Issue
Block a user