From c36c1dc0c65e65b4d6ee53df6bbcc3a860eb6e4b Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 21 Jun 2026 01:05:35 -0400 Subject: Added %i, %n, %b to production skill messages to consistent color inputs, item names, and byproducts --- internal/game/cmd_stats.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/game/cmd_stats.go') diff --git a/internal/game/cmd_stats.go b/internal/game/cmd_stats.go index 906abf2..333d535 100644 --- a/internal/game/cmd_stats.go +++ b/internal/game/cmd_stats.go @@ -20,8 +20,10 @@ func (g *Game) doStats(sess *net.Session) { attackType := "crush" weaponName := "unarmed" var weaponType object.WeaponType + var weaponDef *object.ItemDef if itemID, ok := p.Equipment[object.SlotMainHand]; ok { if def, err := g.ItemStore.Load(itemID); err == nil { + weaponDef = def weaponName = def.Name weaponType = def.WeaponType if def.AttackType != "" { @@ -34,6 +36,9 @@ func (g *Game) doStats(sess *net.Session) { } } + if weaponDef != nil { + weaponName = g.itemColorize(sess, weaponDef, weaponName) + } sess.WriteLines( "", fmt.Sprintf("Weapon: %s (attack type: %s)", weaponName, attackType), -- cgit v1.2.3