diff options
| author | historia <[not public]> | 2026-06-19 18:20:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 18:20:26 -0400 |
| commit | 0ea4eec5dd2122c6704216971eb1249276297867 (patch) | |
| tree | 430fbbef04e837820f1d031c190f52ecd6112e25 /internal/game/action_room.go | |
| parent | 3a58125d14bb307f861b38c6c5b0a63babde7e08 (diff) | |
| download | thehouseoficarus-0ea4eec5dd2122c6704216971eb1249276297867.tar.gz | |
shop fixes, 'toggle' completely removed, movement speed increased
Diffstat (limited to 'internal/game/action_room.go')
| -rw-r--r-- | internal/game/action_room.go | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
