aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_room.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/action_room.go')
-rw-r--r--internal/game/action_room.go8
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