diff options
| author | historia <[not public]> | 2026-06-16 01:59:27 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-16 01:59:27 -0400 |
| commit | 43f21aabae8924f35c12c8485e690aeefe0089fb (patch) | |
| tree | b5fbadb89df3cf4ffec86503bb8e2d7e52b27454 /internal/game/cmd_inventory.go | |
| parent | 4cc1ddcd185509080b4b3e15d1646567edd51c9d (diff) | |
| download | thehouseoficarus-43f21aabae8924f35c12c8485e690aeefe0089fb.tar.gz | |
feat: overhauled ansi color, added prompt options
Diffstat (limited to 'internal/game/cmd_inventory.go')
| -rw-r--r-- | internal/game/cmd_inventory.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/game/cmd_inventory.go b/internal/game/cmd_inventory.go index 9cc4ac6..7017b18 100644 --- a/internal/game/cmd_inventory.go +++ b/internal/game/cmd_inventory.go @@ -26,10 +26,11 @@ func (g *Game) doInventory(sess *net.Session) { if err == nil { name = def.Name } + coloredName := g.itemColorize(sess, def, name) if slot.Quantity > 1 { - sess.WriteLine(fmt.Sprintf(" %2d) %d x %s", num, slot.Quantity, name)) + sess.WriteLine(fmt.Sprintf(" %2d) %d x %s", num, slot.Quantity, coloredName)) } else { - sess.WriteLine(fmt.Sprintf(" %2d) %s", num, name)) + sess.WriteLine(fmt.Sprintf(" %2d) %s", num, coloredName)) } } sess.WriteLine(fmt.Sprintf(" (%d empty slots)", empty)) |
