feat: add deterministic world chest loot
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user