feat(rooms): add RoomChest nodes to Floor 0 rooms
ReceptionDesk, GiftShopShelf, RestaurantCounter, EmergencyCabinet added to their respective tscn files. Fixes spawn_items deferred call to avoid add_child race during _ready tree setup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ func _ready() -> void:
|
||||
_item_configs = RoomChestConfig.get_items(chest_id)
|
||||
if not chest_id.is_empty() and GameState.has_method("get_chest_state"):
|
||||
if not GameState.get_chest_state(chest_id).is_empty():
|
||||
spawn_items()
|
||||
call_deferred("spawn_items")
|
||||
|
||||
|
||||
func spawn_items() -> void:
|
||||
|
||||
Reference in New Issue
Block a user