random vorg droppers, max durability repairable

This commit is contained in:
2024-07-04 19:49:24 -05:00
parent b30f04046d
commit ab8fc8e0a0
3 changed files with 130 additions and 28 deletions
@@ -1644,6 +1644,8 @@ public class ClientMessagePump implements NetMsgHandler {
max *= (1 + (durMod * 0.01f));
if (dur >= max || dur < 1) {
//redundancy message to clear item from window in client
if (!DbManager.ItemQueries.SET_DURABILITY(toRepair, dur))
return;
toRepair.setDurabilityCurrent(max);
msg.setupRepairAck(max - dur);
dispatch = Dispatch.borrow(player, msg);