aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_goto.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-06 12:57:23 -0400
committerhistoria <[not public]>2026-10-06 12:57:23 -0400
commit9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch)
tree0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/game/cmd_goto.go
parent4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff)
downloadthehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/game/cmd_goto.go')
-rw-r--r--internal/game/cmd_goto.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/internal/game/cmd_goto.go b/internal/game/cmd_goto.go
index 96984b9..b3b7558 100644
--- a/internal/game/cmd_goto.go
+++ b/internal/game/cmd_goto.go
@@ -31,20 +31,7 @@ func (g *Game) executeGoto(sess *net.Session, args []string, rawInput string) {
}
oldRoom := p.RoomID
- p.ClearMoveState()
- if g.Combat.Get(p.Name) != nil {
- g.stopCombat(p.Name)
- }
- p.Action = nil
- g.cancelRest(p.Name)
- g.cancelSequences(p.Name)
- if ss, ok := g.safespot.Get(p.Name); ok {
- g.forceLeaveSafespot(sess, p, &ss, "")
- }
-
- p.RoomID = roomID
- p.HazardTimer = 0
- p.Stats.RecordRoomVisit(roomID)
+ g.relocatePlayer(sess, p, roomID)
g.saveCharacter(p)
g.World.SeedGroundItems(roomID)