aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_hide.go
diff options
context:
space:
mode:
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