rrt/fixtures/runtime/packed-event-world-scalar-condition-save-slice-fixture.json

109 lines
3 KiB
JSON
Raw Normal View History

{
"format_version": 1,
"fixture_id": "packed-event-world-scalar-condition-save-slice-fixture",
"source": {
"kind": "captured-runtime",
"description": "Fixture proving grounded world-scalar ordinary conditions gate an imported whole-game effect."
},
"state_save_slice_path": "packed-event-world-scalar-condition-save-slice.json",
"commands": [
{
"kind": "service_trigger_kind",
"trigger_kind": 6
},
{
"kind": "service_trigger_kind",
"trigger_kind": 7
}
],
"expected_summary": {
"packed_event_collection_present": true,
"packed_event_record_count": 2,
"packed_event_decoded_record_count": 2,
"packed_event_imported_runtime_record_count": 2,
"event_runtime_record_count": 2,
"named_locomotive_availability_count": 1,
"zero_named_locomotive_availability_count": 0,
"named_locomotive_cost_count": 1,
"cargo_production_override_count": 1,
"world_restore_limited_track_building_amount": 18,
"world_restore_territory_access_cost": 750000,
"world_flag_count": 8,
"total_event_record_service_count": 2,
"total_trigger_dispatch_count": 2
},
"expected_state_fragment": {
"world_flags": {
"world.disable_stock_buying_and_selling": true
},
"world_restore": {
"limited_track_building_amount": 18,
"territory_access_cost": 750000
},
"named_locomotive_availability": {
"Big Boy": 42
},
"named_locomotive_cost": {
"Locomotive 1": 250000
},
"cargo_production_overrides": {
"1": 125
},
"packed_event_collection": {
"records": [
{
"import_outcome": "imported"
},
{
"import_outcome": "imported",
"decoded_conditions": [
{
"kind": "named_locomotive_availability_threshold",
"name": "Big Boy",
"comparator": "eq",
"value": 42
},
{
"kind": "named_locomotive_cost_threshold",
"name": "Locomotive 1",
"comparator": "eq",
"value": 250000
},
{
"kind": "cargo_production_slot_threshold",
"slot": 1,
"label": "Cargo Production Slot 1",
"comparator": "eq",
"value": 125
},
{
"kind": "cargo_production_total_threshold",
"comparator": "eq",
"value": 125
},
{
"kind": "limited_track_building_amount_threshold",
"comparator": "eq",
"value": 18
},
{
"kind": "territory_access_cost_threshold",
"comparator": "eq",
"value": 750000
}
]
}
]
},
"event_runtime_records": [
{
"record_id": 41,
"service_count": 1
},
{
"record_id": 45,
"service_count": 1
}
]
}
}