feat: add deterministic world chest loot

This commit is contained in:
goose
2026-10-03 13:34:12 -04:00
parent 795d25fb4a
commit a251359885
19 changed files with 423 additions and 7 deletions
+5 -1
View File
@@ -41,7 +41,11 @@ func test_opening_chest_replaces_it_with_floor_refreshes_fov_and_gets_one_enemy_
enemy_response_count += 1
assert_eq(results[0].kind, &"chest_opened")
assert_eq(results[0].message, "You open the chest.")
assert_string_contains(results[0].message, "Coffre ouvert :")
assert_true(results[0].payload.has("items"))
assert_true(results[0].payload.has("gold"))
assert_true(results[0].payload.has("empty"))
assert_true(results[0].payload.has("trap"))
assert_eq(results[0].to_cell, chest)
assert_eq(state.map.get_cell(chest), GridMapState.CellKind.FLOOR)
assert_true(state.map.is_walkable(chest))