aboutsummaryrefslogtreecommitdiff
path: root/internal/game
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game')
-rw-r--r--internal/game/combat_mob.go6
1 files changed, 4 insertions, 2 deletions
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