From a19e6b6ab01670a5932308c7bd0e0e5eed8cbcad Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 12 Jun 2026 23:52:06 -0400 Subject: feat: firemaking skill implemented. overhauled how ground items and despawn are handled. --- internal/game/cmd_remove.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'internal/game/cmd_remove.go') diff --git a/internal/game/cmd_remove.go b/internal/game/cmd_remove.go index 9f0cbe8..f511ec4 100644 --- a/internal/game/cmd_remove.go +++ b/internal/game/cmd_remove.go @@ -56,7 +56,15 @@ func (g *Game) doRemove(sess *net.Session, input string) { } delete(p.Equipment, foundSlot) - p.SetInvSlot(freeSlot, &player.InventorySlot{ItemID: foundItemID, Quantity: 1}) + invSlot := &player.InventorySlot{ItemID: foundItemID, Quantity: 1} + if q, ok := p.EquipQuality[foundItemID]; ok { + invSlot.Quality = q + if def, _ := g.ItemStore.Load(foundItemID); def != nil { + invSlot.MaxQuality = def.MaxQuality + } + delete(p.EquipQuality, foundItemID) + } + p.SetInvSlot(freeSlot, invSlot) g.AccountStore.SaveCharacter(p) name := foundItemID -- cgit v1.2.3