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:
Steven Wroblewski
2026-05-09 01:16:15 +02:00
parent 87db92955a
commit a877d8f5fe
6 changed files with 83 additions and 5 deletions
+1 -1
View File
@@ -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: