aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_undig.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 15:00:46 -0400
committerhistoria <[not public]>2026-09-16 15:00:46 -0400
commita6cf03a6ae98e4fb675da25046d148e92bcf7206 (patch)
tree194499fe9e696be8c31cd915b7ad92678f9f95e0 /internal/game/cmd_undig.go
parent9192d94dea6be5498ab080f3e2df5667af871d7a (diff)
downloadthehouseoficarus-a6cf03a6ae98e4fb675da25046d148e92bcf7206.tar.gz
chore: staticcheck and gofmt cleanups
Diffstat (limited to 'internal/game/cmd_undig.go')
-rw-r--r--internal/game/cmd_undig.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_undig.go b/internal/game/cmd_undig.go
index a41cb08..c24b299 100644
--- a/internal/game/cmd_undig.go
+++ b/internal/game/cmd_undig.go
@@ -110,7 +110,7 @@ func (g *Game) listUndigOrphans(sess *net.Session, targetID int) {
if len(orphans) > 0 {
sess.WriteLine(g.colorize(sess, "warning",
- fmt.Sprintf("WARNING: The following rooms will become unreachable after deletion:")))
+ "WARNING: The following rooms will become unreachable after deletion:"))
for _, rid := range orphans {
room, err := g.World.LoadRoom(rid)
name := fmt.Sprintf("#%d", rid)
@@ -154,7 +154,7 @@ func (g *Game) handleUndigConfirm(sess *net.Session, input string) {
func (g *Game) performUndig(sess *net.Session, p *player.Player, targetID int) {
targetRoom, err := g.World.LoadRoom(targetID)
- roomName := fmt.Sprintf("#%d", targetID)
+ var roomName string
if err == nil {
roomName = fmt.Sprintf("#%d (%s)", targetID, targetRoom.Name)
} else {
@@ -234,7 +234,7 @@ func (g *Game) performUndig(sess *net.Session, p *player.Player, targetID int) {
if g.Hub != nil {
g.Hub.EnterRoom(other, p.RoomID)
}
- other.WriteLine(fmt.Sprintf("The room around you dissolves. You find yourself elsewhere."))
+ other.WriteLine("The room around you dissolves. You find yourself elsewhere.")
g.doLook(other)
}
}