aboutsummaryrefslogtreecommitdiff
path: root/internal/game/look_entities.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 19:41:34 -0400
committerhistoria <[not public]>2026-07-01 19:41:34 -0400
commit8eec7b75ff9c8c368b252373db45fb891732d2ca (patch)
tree528ab3f235e3082a51b8bd6c8e5ae269c41b4f2b /internal/game/look_entities.go
parent78b522d57a9ebc691e075523910d7cdaa06b6493 (diff)
downloadthehouseoficarus-8eec7b75ff9c8c368b252373db45fb891732d2ca.tar.gz
mob combat stats overhauled and standardized
Diffstat (limited to 'internal/game/look_entities.go')
-rw-r--r--internal/game/look_entities.go5
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 != "" {