From 78b522d57a9ebc691e075523910d7cdaa06b6493 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 1 Jul 2026 18:36:21 -0400 Subject: feat: shop system removed from talk system, added per-item restock and variable pricing --- internal/game/combat_mob.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/game') diff --git a/internal/game/combat_mob.go b/internal/game/combat_mob.go index 4cdd27b..c64e393 100644 --- a/internal/game/combat_mob.go +++ b/internal/game/combat_mob.go @@ -192,8 +192,10 @@ func (g *Game) endCombat(sess *net.Session, p *player.Player, mob *world.MobInst } if len(mob.Drops.Loot) > 0 { - entry := behavior.ResolveDrop(g.DataDir, mob.Drops.Loot) - if entry != nil && entry.ItemID != "" { + for _, entry := range behavior.ResolveDropList(g.DataDir, mob.Drops.Loot) { + if entry.ItemID == "" { + continue + } qty := entry.Quantity if qty <= 0 { qty = 1 -- cgit v1.2.3