random vorg droppers, max durability repairable

This commit is contained in:
FatBoy committed 2024-07-04 19:49:24 -05:00
1 parent b30f04046d
commit ab8fc8e0a0
3 files changed
+130 -28

No files matched your search

@@ -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);