aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_combine.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/act_combine.go')
-rw-r--r--internal/game/act_combine.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/act_combine.go b/internal/game/act_combine.go
index b16cf7a..014dbef 100644
--- a/internal/game/act_combine.go
+++ b/internal/game/act_combine.go
@@ -134,6 +134,10 @@ func (g *Game) advanceCombine(sess *net.Session, p *player.Player) {
for _, bp := range byproducts {
if slot := p.FirstFreeSlot(); slot >= 0 {
p.SetInvSlot(slot, &player.InventorySlot{ItemID: bp, Quantity: 1})
+ } else {
+ // Never silently delete a byproduct: drop the remainder on
+ // the ground where the player can pick it up.
+ g.World.AddGroundItem(p.RoomID, bp, 1)
}
}