aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_wear.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_wear.go')
-rw-r--r--internal/game/cmd_wear.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/game/cmd_wear.go b/internal/game/cmd_wear.go
index 7c3515f..cbc2ff3 100644
--- a/internal/game/cmd_wear.go
+++ b/internal/game/cmd_wear.go
@@ -4,9 +4,9 @@ import (
"fmt"
"strings"
- "thirdcollapse/internal/net"
- "thirdcollapse/internal/object"
- "thirdcollapse/internal/player"
+ "thehouseoficarus/internal/net"
+ "thehouseoficarus/internal/object"
+ "thehouseoficarus/internal/player"
)
func (g *Game) doWear(sess *net.Session, input string) {
@@ -39,7 +39,7 @@ func (g *Game) doWear(sess *net.Session, input string) {
def, err := g.ItemStore.Load(slot.ItemID)
if err != nil || def.EquipSlot == "" {
- sess.WriteLine(fmt.Sprintf("You can't wear %s.", match.Name))
+ sess.WriteLine(fmt.Sprintf("You can't wear %s.", g.itemColorize(sess, def, match.Name)))
return
}
@@ -76,7 +76,7 @@ func (g *Game) doWear(sess *net.Session, input string) {
if def.WeaponType != "" {
verb = "wield"
}
- sess.WriteLine(fmt.Sprintf("You %s %s.", verb, match.Name))
+ sess.WriteLine(fmt.Sprintf("You %s %s.", verb, g.itemColorize(sess, def, match.Name)))
}
func (g *Game) doWearAll(sess *net.Session) {
@@ -147,7 +147,7 @@ func (g *Game) doWearAll(sess *net.Session) {
if def != nil {
name = def.Name
}
- equipped = append(equipped, name)
+ equipped = append(equipped, g.itemColorize(sess, def, name))
}
if len(equipped) == 0 {