feat: port item instances and inventory

This commit is contained in:
goose
2026-10-03 13:16:00 -04:00
parent 391e95f6f4
commit f9e68e6110
16 changed files with 417 additions and 7 deletions
+2
View File
@@ -12,6 +12,8 @@ var floors: Dictionary[int, FloorState] = {}
var floor_deadlines: Dictionary[int, FloorDeadline] = {}
var current_turn := 0
var log: Array[GameEvent] = []
# D1 owns inventory at run scope so it persists while the player changes floors.
var inventory: InventoryState = InventoryState.new()
func _init(new_seed: String, new_settings: RunSettings = null) -> void:
settings = new_settings if new_settings != null else RunSettings.new(new_seed)