diff options
Diffstat (limited to 'internal/game/cmd_equipment.go')
| -rw-r--r-- | internal/game/cmd_equipment.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/game/cmd_equipment.go b/internal/game/cmd_equipment.go index 7113880..b256bc3 100644 --- a/internal/game/cmd_equipment.go +++ b/internal/game/cmd_equipment.go @@ -4,6 +4,7 @@ import ( "fmt" "thehouseoficarus/internal/net" + "thehouseoficarus/internal/object" "thehouseoficarus/internal/player" ) @@ -23,6 +24,10 @@ func (g *Game) doEquipment(sess *net.Session) { if err == nil { name = def.Name } - sess.WriteLine(fmt.Sprintf(" %-12s %s", slot, g.itemColorize(sess, def, name))) + if slot == object.SlotAmmo && p.AmmoQty > 0 { + sess.WriteLine(fmt.Sprintf(" %-12s %s (x%d)", slot, g.itemColorize(sess, def, name), p.AmmoQty)) + } else { + sess.WriteLine(fmt.Sprintf(" %-12s %s", slot, g.itemColorize(sess, def, name))) + } } } |
