aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_hide.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-22 01:54:28 -0400
committerhistoria <[not public]>2026-06-22 01:54:28 -0400
commit7f07c7236578e1a7bcef0282ff9d7f5bf8c7c045 (patch)
tree7f9182f6fc9ed44d4738bfc6758660d741ba88e7 /internal/game/cmd_hide.go
parenta3ae1e6aad696f584d138d9363c05dedff136a65 (diff)
downloadthehouseoficarus-7f07c7236578e1a7bcef0282ff9d7f5bf8c7c045.tar.gz
fix: safespot fixes
Diffstat (limited to 'internal/game/cmd_hide.go')
-rw-r--r--internal/game/cmd_hide.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_hide.go b/internal/game/cmd_hide.go
index 9445949..2dca478 100644
--- a/internal/game/cmd_hide.go
+++ b/internal/game/cmd_hide.go
@@ -87,10 +87,10 @@ func (g *Game) executeHide(sess *net.Session, args []string, rawInput string) {
if st.SafespotLevel <= 0 {
if cfg.RespawnTicks > 0 {
sess.WriteLine(fmt.Sprintf("The %s has been destroyed and hasn't reformed yet.", objDef.Name))
- } else {
- sess.WriteLine(fmt.Sprintf("The %s has been completely destroyed.", objDef.Name))
+ return
}
- return
+ st.SafespotLevel = len(cfg.Levels)
+ st.SafespotTicksAtLevel = 0
}
inCombat := combat.GetCombat(p.Name) != nil