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_get.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/game/cmd_get.go') diff --git a/internal/game/cmd_get.go b/internal/game/cmd_get.go index 70b458e..f4c7426 100644 --- a/internal/game/cmd_get.go +++ b/internal/game/cmd_get.go @@ -96,7 +96,7 @@ func (g *Game) doGet(sess *net.Session, input string) { return } _ = removed - p.SetInvSlot(freeSlot, &player.InventorySlot{ItemID: itemID, Quantity: qty}) + p.SetInvSlot(freeSlot, g.newInvSlot(itemID, qty)) g.AccountStore.SaveCharacter(p) if qty == 1 { sess.WriteLine(fmt.Sprintf("You pick up a %s.", def.Name)) @@ -329,7 +329,7 @@ func (g *Game) doGetAll(sess *net.Session) { if !ok { break } - p.SetInvSlot(freeSlot, &player.InventorySlot{ItemID: itemID, Quantity: qty}) + p.SetInvSlot(freeSlot, g.newInvSlot(itemID, qty)) name := itemID if def != nil { name = def.Name -- cgit v1.2.3