diff options
Diffstat (limited to 'internal/game/look_entities.go')
| -rw-r--r-- | internal/game/look_entities.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 != "" { |
