From 0ea4eec5dd2122c6704216971eb1249276297867 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 19 Jun 2026 18:20:26 -0400 Subject: shop fixes, 'toggle' completely removed, movement speed increased --- internal/game/action_room.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/game/action_room.go') diff --git a/internal/game/action_room.go b/internal/game/action_room.go index 603ac7e..b997352 100644 --- a/internal/game/action_room.go +++ b/internal/game/action_room.go @@ -7,7 +7,7 @@ import ( "thehouseoficarus/internal/net" ) -func (g *Game) RunEnterSteps(sess *net.Session, roomID int) { +func (g *Game) runEnterSteps(sess *net.Session, roomID int) { room, err := g.World.LoadRoom(roomID) if err != nil || len(room.OnEnter) == 0 { return @@ -26,11 +26,11 @@ func (g *Game) BroadcastRespawns() { respawns := g.World.FlushObjRespawns() for _, st := range respawns { def, err := g.ObjectStore.Load(st.DefID) - if err != nil || def.BehaviorID == "" { + if err != nil || !def.IsGatherable() { continue } - cfg, err := g.BehaviorStore.LoadGather(def.BehaviorID) - if err != nil || cfg.RespawnBroadcast == "" { + cfg := def.Gather + if cfg.RespawnBroadcast == "" { continue } name := def.Name -- cgit v1.2.3