Broaden cargo packed event condition coverage

This commit is contained in:
Jan Petykiewicz 2026-04-16 14:23:43 -07:00
commit 0c4a90c16c
11 changed files with 434 additions and 23 deletions

View file

@ -81,6 +81,8 @@
"row_shape": "scalar_assignment",
"semantic_family": "scalar_assignment",
"semantic_preview": "Set Cargo Production Slot 1 to 125",
"recovered_cargo_slot": 1,
"recovered_cargo_class": null,
"recovered_locomotive_id": null,
"locomotive_name": null,
"notes": []

View file

@ -69,6 +69,13 @@
"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",

View file

@ -5,10 +5,10 @@
"description": "Tracked save-slice document proving grounded world-scalar ordinary conditions gate a whole-game effect.",
"original_save_filename": "captured-world-scalar-condition.gms",
"original_save_sha256": "world-scalar-condition-sample-sha256",
"notes": [
"tracked as JSON save-slice document rather than raw .smp",
"uses checked-in RT3.lng condition ids for named locomotive availability, named locomotive cost, aggregate cargo production, limited track building amount, and access rights cost"
]
"notes": [
"tracked as JSON save-slice document rather than raw .smp",
"uses checked-in RT3.lng condition ids for named locomotive availability, named locomotive cost, named cargo-production slot, aggregate cargo production, limited track building amount, and access rights cost"
]
},
"save_slice": {
"file_extension_hint": "gms",
@ -130,6 +130,8 @@
"row_shape": "scalar_assignment",
"semantic_family": "scalar_assignment",
"semantic_preview": "Set Cargo Production Slot 1 to 125",
"recovered_cargo_slot": 1,
"recovered_cargo_class": null,
"recovered_locomotive_id": null,
"locomotive_name": null,
"notes": []
@ -232,7 +234,7 @@
"grouped_territory_selectors_0x80f": [-1, -1, -1, -1]
},
"text_bands": [],
"standalone_condition_row_count": 5,
"standalone_condition_row_count": 6,
"standalone_condition_rows": [
{
"row_index": 0,
@ -266,6 +268,23 @@
},
{
"row_index": 2,
"raw_condition_id": 200,
"subtype": 4,
"flag_bytes": [125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"candidate_name": "Cargo Production Slot 1",
"comparator": "eq",
"metric": "Cargo Production: Cargo Production Slot 1",
"semantic_family": "world_scalar_threshold",
"semantic_preview": "Test Cargo Production: Cargo Production Slot 1 == 125",
"recovered_cargo_slot": 1,
"recovered_cargo_class": null,
"requires_candidate_name_binding": false,
"notes": [
"checked-in world-scalar condition metadata sample"
]
},
{
"row_index": 3,
"raw_condition_id": 2418,
"subtype": 4,
"flag_bytes": [125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
@ -280,7 +299,7 @@
]
},
{
"row_index": 3,
"row_index": 4,
"raw_condition_id": 2547,
"subtype": 4,
"flag_bytes": [18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
@ -295,7 +314,7 @@
]
},
{
"row_index": 4,
"row_index": 5,
"raw_condition_id": 1516,
"subtype": 4,
"flag_bytes": [176, 113, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
@ -349,6 +368,13 @@
"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",
@ -374,7 +400,7 @@
],
"executable_import_ready": true,
"notes": [
"world-scalar conditions gate a whole-game effect"
"world-scalar conditions gate a whole-game effect, including a checked-in named cargo-production slot threshold"
]
}
]

View file

@ -81,6 +81,8 @@
"row_shape": "scalar_assignment",
"semantic_family": "scalar_assignment",
"semantic_preview": "Set Cargo Production Slot 1 to 125",
"recovered_cargo_slot": 1,
"recovered_cargo_class": null,
"recovered_locomotive_id": null,
"locomotive_name": null,
"notes": []