134 lines
2.8 KiB
JSON
134 lines
2.8 KiB
JSON
|
|
{
|
||
|
|
"format_version": 1,
|
||
|
|
"fixture_id": "service-trigger-kind-effects-smoke",
|
||
|
|
"source": {
|
||
|
|
"kind": "synthetic",
|
||
|
|
"description": "Synthetic normalized event-service fixture covering direct trigger dispatch, targeted company mutation, and one-shot behavior."
|
||
|
|
},
|
||
|
|
"state": {
|
||
|
|
"calendar": {
|
||
|
|
"year": 1830,
|
||
|
|
"month_slot": 0,
|
||
|
|
"phase_slot": 0,
|
||
|
|
"tick_slot": 0
|
||
|
|
},
|
||
|
|
"world_flags": {
|
||
|
|
"sandbox": false
|
||
|
|
},
|
||
|
|
"companies": [
|
||
|
|
{
|
||
|
|
"company_id": 1,
|
||
|
|
"current_cash": 10,
|
||
|
|
"debt": 5
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"company_id": 2,
|
||
|
|
"current_cash": 20,
|
||
|
|
"debt": 8
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"event_runtime_records": [
|
||
|
|
{
|
||
|
|
"record_id": 10,
|
||
|
|
"trigger_kind": 7,
|
||
|
|
"active": true,
|
||
|
|
"effects": [
|
||
|
|
{
|
||
|
|
"kind": "set_candidate_availability",
|
||
|
|
"name": "Steel Mill",
|
||
|
|
"value": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "adjust_company_cash",
|
||
|
|
"target": {
|
||
|
|
"kind": "ids",
|
||
|
|
"ids": [2]
|
||
|
|
},
|
||
|
|
"delta": 4
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "adjust_company_debt",
|
||
|
|
"target": {
|
||
|
|
"kind": "ids",
|
||
|
|
"ids": [2]
|
||
|
|
},
|
||
|
|
"delta": -3
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"record_id": 11,
|
||
|
|
"trigger_kind": 7,
|
||
|
|
"active": true,
|
||
|
|
"one_shot": true,
|
||
|
|
"effects": [
|
||
|
|
{
|
||
|
|
"kind": "set_special_condition",
|
||
|
|
"label": "One Shot Trigger",
|
||
|
|
"value": 1
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"commands": [
|
||
|
|
{
|
||
|
|
"kind": "service_trigger_kind",
|
||
|
|
"trigger_kind": 7
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "service_trigger_kind",
|
||
|
|
"trigger_kind": 7
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"expected_summary": {
|
||
|
|
"calendar": {
|
||
|
|
"year": 1830,
|
||
|
|
"month_slot": 0,
|
||
|
|
"phase_slot": 0,
|
||
|
|
"tick_slot": 0
|
||
|
|
},
|
||
|
|
"world_flag_count": 1,
|
||
|
|
"company_count": 2,
|
||
|
|
"event_runtime_record_count": 2,
|
||
|
|
"candidate_availability_count": 1,
|
||
|
|
"special_condition_count": 1,
|
||
|
|
"enabled_special_condition_count": 1,
|
||
|
|
"total_event_record_service_count": 3,
|
||
|
|
"periodic_boundary_call_count": 0,
|
||
|
|
"total_trigger_dispatch_count": 2,
|
||
|
|
"dirty_rerun_count": 0,
|
||
|
|
"total_company_cash": 38
|
||
|
|
},
|
||
|
|
"expected_state_fragment": {
|
||
|
|
"candidate_availability": {
|
||
|
|
"Steel Mill": 1
|
||
|
|
},
|
||
|
|
"special_conditions": {
|
||
|
|
"One Shot Trigger": 1
|
||
|
|
},
|
||
|
|
"companies": [
|
||
|
|
{
|
||
|
|
"company_id": 1,
|
||
|
|
"current_cash": 10,
|
||
|
|
"debt": 5
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"company_id": 2,
|
||
|
|
"current_cash": 28,
|
||
|
|
"debt": 2
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"event_runtime_records": [
|
||
|
|
{
|
||
|
|
"record_id": 10,
|
||
|
|
"service_count": 2
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"record_id": 11,
|
||
|
|
"service_count": 1,
|
||
|
|
"has_fired": true
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|