From 94a06fbbe682701ca4d4bd2a70cd74d8df29c932 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 00:44:47 -0400 Subject: refactor: replaced map[string]any with typed structs for Data --- internal/game/sys_safespot.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/game/sys_safespot.go') diff --git a/internal/game/sys_safespot.go b/internal/game/sys_safespot.go index 28f08d9..5544667 100644 --- a/internal/game/sys_safespot.go +++ b/internal/game/sys_safespot.go @@ -107,7 +107,6 @@ func (g *Game) activateSafespot(sess *net.Session, p *player.Player, ss *Safespo } st.SafespotOccupants = append(st.SafespotOccupants, p.Name) - p.ActionState = nil var msg string levelIdx := st.SafespotLevel - 1 @@ -258,7 +257,6 @@ func (g *Game) leaveSafespot(sess *net.Session, p *player.Player) { objName = objDef.Name } sess.WriteLine(fmt.Sprintf("You step out from behind the %s.", objName)) - p.ActionState = nil } func (g *Game) forceLeaveSafespot(sess *net.Session, p *player.Player, ss *SafespotState, reason string) { @@ -272,7 +270,6 @@ func (g *Game) forceLeaveSafespot(sess *net.Session, p *player.Player, ss *Safes sess.WriteLine(color.ExpandTags(g.colorMode(sess), alert)) } } - p.ActionState = nil } func (g *Game) removeSafespotOccupant(playerName string, ss *SafespotState) { -- cgit v1.2.3