Files
Cataclysm-DDA/data/json/post_process_generators.json
dumb-kevin 4ffb9673e0 Consume persisted PP decisions at mapgen
- Extracted apply_pre_burn_tiles() and pre_burn_percent_chance() helpers
- Added find_decision() and resolve_pp_decision() for lazy gate eval
- execute() maps decision semantics per sub-generator type
- pre_burn: applied runs without gate, skipped is noop, null is fresh roll
- execute_aftershock_ruin() takes decision pointer for applied/skipped mapping
- Dispatch in map::generate fetches decisions and passes to execute()
- Added scope overmap_special on pre_burn in riot_damage and test_pp_riot
- Added test_pp_field_building_upper oter and test_pp_multi_z_special
- Tests for null fallback, skipped noop, applied unconditional apply
- Integration test verifying multi-z OMTs share one decisions slot
2026-04-19 13:34:08 +04:00

40 lines
1.6 KiB
JSON

[
{
"type": "pp_generator",
"id": "riot_damage",
"//": "Applied to city buildings via post_process_generators field on oter_type_t.",
"sub_generators": [
{ "type": "bash_damage", "attempts": 250, "chance": 10, "min_intensity": 6, "max_intensity": 60 },
{ "type": "move_items", "attempts": 250, "chance": 10, "max_intensity": 3 },
{ "type": "add_fire", "attempts": 2, "min_intensity": 1, "max_intensity": 3, "scaling_days_end": 14 },
{
"type": "pre_burn",
"scope": "overmap_special",
"attempts": 1,
"min_intensity": 6,
"max_intensity": 28,
"scaling_days_start": 3,
"scaling_days_end": 14
},
{ "type": "place_blood", "attempts": 576, "chance": 15 }
]
},
{
"type": "pp_generator",
"id": "riot_damage_road",
"//": "Applied to city roads. Same as riot_damage but without pre_burn.",
"sub_generators": [
{ "type": "bash_damage", "attempts": 250, "chance": 10, "min_intensity": 6, "max_intensity": 60 },
{ "type": "move_items", "attempts": 250, "chance": 10, "max_intensity": 3 },
{ "type": "add_fire", "attempts": 2, "min_intensity": 1, "max_intensity": 3, "scaling_days_end": 14 },
{ "type": "place_blood", "attempts": 576, "chance": 15 }
]
},
{
"type": "pp_generator",
"id": "aftershock_ruin",
"//": "Applied to Aftershock ruined buildings with PP_GENERATE_RUINED flag. All sub-generator parameters are ignored; the C++ implementation runs directly.",
"sub_generators": [ { "type": "aftershock_ruin" } ]
}
]