aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_remove.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-16 23:37:50 -0400
committerhistoria <[not public]>2026-06-16 23:37:50 -0400
commit389e307f205f9b7edf604fb9f86e1038ead736ef (patch)
tree595095b5877cc2b0513d31fb126303d8796cc311 /internal/game/cmd_remove.go
parent085e728d22a3369bd110b77409914cfbe9ebe611 (diff)
downloadthehouseoficarus-389e307f205f9b7edf604fb9f86e1038ead736ef.tar.gz
feat: major xterm256 color overhaul, see worldbuilding docs.
Diffstat (limited to 'internal/game/cmd_remove.go')
-rw-r--r--internal/game/cmd_remove.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/game/cmd_remove.go b/internal/game/cmd_remove.go
index f511ec4..61fdc29 100644
--- a/internal/game/cmd_remove.go
+++ b/internal/game/cmd_remove.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) doRemove(sess *net.Session, input string) {
@@ -68,8 +68,9 @@ func (g *Game) doRemove(sess *net.Session, input string) {
g.AccountStore.SaveCharacter(p)
name := foundItemID
- if def, err := g.ItemStore.Load(foundItemID); err == nil {
+ def, _ := g.ItemStore.Load(foundItemID)
+ if def != nil {
name = def.Name
}
- sess.WriteLine(fmt.Sprintf("You remove %s.", name))
+ sess.WriteLine(fmt.Sprintf("You remove %s.", g.itemColorize(sess, def, name)))
}