aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_drop.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_drop.go
parent085e728d22a3369bd110b77409914cfbe9ebe611 (diff)
downloadthehouseoficarus-389e307f205f9b7edf604fb9f86e1038ead736ef.tar.gz
feat: major xterm256 color overhaul, see worldbuilding docs.
Diffstat (limited to 'internal/game/cmd_drop.go')
-rw-r--r--internal/game/cmd_drop.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/game/cmd_drop.go b/internal/game/cmd_drop.go
index b08eadf..702d1db 100644
--- a/internal/game/cmd_drop.go
+++ b/internal/game/cmd_drop.go
@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
- "thirdcollapse/internal/net"
- "thirdcollapse/internal/player"
+ "thehouseoficarus/internal/net"
+ "thehouseoficarus/internal/player"
)
func (g *Game) doDropAll(sess *net.Session) {
@@ -179,11 +179,11 @@ func (g *Game) doDrop(sess *net.Session, input string) {
dropped := qty - remaining
g.AccountStore.SaveCharacter(p)
if dropped == 0 {
- sess.WriteLine(fmt.Sprintf("You don't have any %s.", name))
+ sess.WriteLine(fmt.Sprintf("You don't have any %s.", g.itemColorize(sess, def, name)))
} else if dropped == 1 {
- sess.WriteLine(fmt.Sprintf("You drop a %s.", name))
+ sess.WriteLine(fmt.Sprintf("You drop a %s.", g.itemColorize(sess, def, name)))
} else {
- sess.WriteLine(fmt.Sprintf("You drop %d x %s.", dropped, name))
+ sess.WriteLine(fmt.Sprintf("You drop %d x %s.", dropped, g.itemColorize(sess, def, name)))
}
}
@@ -215,7 +215,7 @@ func (g *Game) handleDropAllConfirm(sess *net.Session, input string) {
if def != nil {
name = def.Name
}
- dropped = append(dropped, name)
+ dropped = append(dropped, g.itemColorize(sess, def, name))
p.SetInvSlot(i, nil)
}