From 8eec7b75ff9c8c368b252373db45fb891732d2ca Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 1 Jul 2026 19:41:34 -0400 Subject: mob combat stats overhauled and standardized --- internal/game/look_entities.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/game/look_entities.go') diff --git a/internal/game/look_entities.go b/internal/game/look_entities.go index 3b0758b..c1befe3 100644 --- a/internal/game/look_entities.go +++ b/internal/game/look_entities.go @@ -42,10 +42,9 @@ func (g *Game) showRoomMobs(sess *net.Session, p *player.Player, room *world.Roo } var desc string if g.Combat.IsMobInCombat(m.InstanceID) { - def, err := g.MobStore.LoadDef(m.DefID) - if err == nil && len(def.CombatDescriptions) > 0 { + if len(m.CombatDescriptions) > 0 { target := g.Combat.MobTarget(m.InstanceID) - pattern := def.CombatDescriptions[randInt(len(def.CombatDescriptions))] + pattern := m.CombatDescriptions[randInt(len(m.CombatDescriptions))] desc = " " + fmt.Sprintf(pattern, target) } } else if m.IdleDescription != "" { -- cgit v1.2.3