diff options
| author | historia <[not public]> | 2026-07-01 19:41:34 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-01 19:41:34 -0400 |
| commit | 8eec7b75ff9c8c368b252373db45fb891732d2ca (patch) | |
| tree | 528ab3f235e3082a51b8bd6c8e5ae269c41b4f2b /internal/game/look_entities.go | |
| parent | 78b522d57a9ebc691e075523910d7cdaa06b6493 (diff) | |
| download | thehouseoficarus-8eec7b75ff9c8c368b252373db45fb891732d2ca.tar.gz | |
mob combat stats overhauled and standardized
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 != "" { |
