diff options
| author | historia <[not public]> | 2026-06-22 04:24:11 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-22 04:24:11 -0400 |
| commit | 5b9a75a1520a198c9c6b1f1f55e05c9f4aab5629 (patch) | |
| tree | 18f500ca3492ba206a3f66e2f01146b05a1675b2 /internal/game/sys_safespot.go | |
| parent | 7f07c7236578e1a7bcef0282ff9d7f5bf8c7c045 (diff) | |
| download | thehouseoficarus-5b9a75a1520a198c9c6b1f1f55e05c9f4aab5629.tar.gz | |
feat: map now only reveals with exploration. players can set custom map symbols.
Diffstat (limited to 'internal/game/sys_safespot.go')
| -rw-r--r-- | internal/game/sys_safespot.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/internal/game/sys_safespot.go b/internal/game/sys_safespot.go index b0e94c2..da999c0 100644 --- a/internal/game/sys_safespot.go +++ b/internal/game/sys_safespot.go @@ -121,6 +121,7 @@ func (g *Game) activateSafespot(sess *net.Session, p *player.Player, ss *Safespo msg = fmt.Sprintf("You crouch behind the %s, using it as cover.", objDef.Name) } sess.WriteLine(g.colorize(sess, "combat_info", msg)) + g.writePrompt(sess) } func (g *Game) safespotMaintenance(sess *net.Session, p *player.Player, ss *SafespotState) { @@ -150,11 +151,7 @@ func (g *Game) safespotMaintenance(sess *net.Session, p *player.Player, ss *Safe } if cfg.UnsafeChance > 0 && rand.Float64() < cfg.UnsafeChance { - alert := p.OptionString("safespot_alert") g.forceLeaveSafespot(sess, p, ss, "You slip and are no longer covered!") - if alert != "" { - sess.WriteLine(color.ExpandTags(g.colorMode(sess), alert)) - } return } @@ -283,6 +280,10 @@ 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)) + } } p.ActionState = nil } |
