diff options
| author | historia <[not public]> | 2026-06-21 01:05:35 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-21 01:05:35 -0400 |
| commit | c36c1dc0c65e65b4d6ee53df6bbcc3a860eb6e4b (patch) | |
| tree | ea5b796d7b8ce6ae422b30542e0da97e818207e8 /internal/game/cmd_stats.go | |
| parent | 470bc5bd99b793e46305310b5fbeb3068eba45f1 (diff) | |
| download | thehouseoficarus-c36c1dc0c65e65b4d6ee53df6bbcc3a860eb6e4b.tar.gz | |
Added %i, %n, %b to production skill messages to consistent color inputs, item names, and byproducts
Diffstat (limited to 'internal/game/cmd_stats.go')
| -rw-r--r-- | internal/game/cmd_stats.go | 5 |
1 files changed, 5 insertions, 0 deletions
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), |
