aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_look.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 02:18:53 -0400
committerhistoria <[not public]>2026-06-19 02:18:53 -0400
commit86aec0e14eb6fec0a39d742bab1761dad8d7012c (patch)
treeaa0d9511c73ed86ffebc5de5ab862a62afd730f8 /internal/game/cmd_look.go
parent458916fb78dcef3ff77cb29b7ba98d9f646819fc (diff)
downloadthehouseoficarus-86aec0e14eb6fec0a39d742bab1761dad8d7012c.tar.gz
feat: hostile mobs, equipment prereqs
Diffstat (limited to 'internal/game/cmd_look.go')
-rw-r--r--internal/game/cmd_look.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/game/cmd_look.go b/internal/game/cmd_look.go
index 1c9eb9c..14bac11 100644
--- a/internal/game/cmd_look.go
+++ b/internal/game/cmd_look.go
@@ -770,4 +770,11 @@ func (g *Game) showItemStats(sess *net.Session, def *object.ItemDef) {
if def.Speed > 0 {
sess.WriteLine(fmt.Sprintf(" Speed: %.0f", def.Speed))
}
+ if len(def.Requirements) > 0 {
+ sess.WriteLine("")
+ sess.WriteLine(" Requirements:")
+ for skill, level := range def.Requirements {
+ sess.WriteLine(fmt.Sprintf(" %s: %d", skill, level))
+ }
+ }
}