feat: complete playtest parity improvements

This commit is contained in:
goose
2026-10-08 19:06:19 -04:00
parent cce25a1908
commit eca098b4b9
139 changed files with 3001 additions and 982 deletions
+2 -3
View File
@@ -55,11 +55,10 @@ static func _spawn_enemy(floor: FloorState, catalog: ContentCatalog, room: RoomS
return serial + 1
static func _spawn_chest(floor: FloorState, catalog: ContentCatalog, room: RoomState, rng: DeterministicRng, occupied: Dictionary[Vector2i, bool]) -> void:
var definitions := SpawnRulesType.loot_tables(catalog)
var definition := catalog.get_loot_table(&"floor_treasure")
var cell := _available_cell(floor, room, rng, occupied)
if definitions.is_empty() or cell == Vector2i(-1, -1):
if definition.is_empty() or cell == Vector2i(-1, -1):
return
var definition: Dictionary = definitions[rng.next_int() % definitions.size()]
floor.chests[cell] = {
"loot_table_id": definition["id"],
"opened": false,