From 71ce47ca37566be8dc390434df4cd01422298094 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 29 Jun 2026 04:41:40 -0400 Subject: fix: long fields truncated better in tables --- internal/game/sys_safespot.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'internal/game/sys_safespot.go') diff --git a/internal/game/sys_safespot.go b/internal/game/sys_safespot.go index 5544667..cdb954b 100644 --- a/internal/game/sys_safespot.go +++ b/internal/game/sys_safespot.go @@ -191,12 +191,7 @@ func (g *Game) degradeSafespot(st *world.ObjState, objDef *object.ObjectDef, cfg if occSess := g.sessionInRoom(name, roomSessions); occSess != nil { occSess.WriteLine(color.ExpandTags(g.colorMode(occSess), fmt.Sprintf("The %s crumbles away!", objDef.Name))) - if occSess.Player != nil { - alert := occSess.Player.OptionString("safespot_alert") - if alert != "" { - occSess.WriteLine(color.ExpandTags(g.colorMode(occSess), alert)) - } - } + occSess.WriteLine(g.colorize(occSess, "safespot_alert", "Your safespot has been compromised!")) g.writePrompt(occSess) } } @@ -265,10 +260,7 @@ func (g *Game) forceLeaveSafespot(sess *net.Session, p *player.Player, ss *Safes if reason != "" { sess.WriteLine(reason) - alert := p.OptionString("safespot_alert") - if alert != "" { - sess.WriteLine(color.ExpandTags(g.colorMode(sess), alert)) - } + sess.WriteLine(g.colorize(sess, "safespot_alert", "Your safespot has been compromised!")) } } -- cgit v1.2.3