Add unattended campfire risk state

This commit is contained in:
2026-05-19 12:10:48 -07:00
parent 280fa76af2
commit 14cd8234e6
5 changed files with 237 additions and 1 deletions
+8
View File
@@ -337,6 +337,14 @@ or stop the loop on clients, while the authoritative server multicasts ignition
and extinguish events so the audio follows the same state changes as light,
smoke, warmth, fuel, and persistence.
Campfires now track unattended and poorly maintained fire risk on the server.
`AAgrarianCampfire` records lit duration, seconds since maintenance, whether the
area has been cleared, whether the fire is contained, and a replicated
`FireRiskScore`. Risk grows after a fire has been left unattended, grows faster
when excessive fuel is burning, and is reduced by maintenance, cleared area,
containment, and wet weather. This first risk layer does not yet ignite nearby
vegetation or structures; later 0.1.P items consume the replicated risk score.
Campfires expose native extinguish logic through `AAgrarianCampfire::Extinguish`.
Extinguishing clears remaining fuel, turns off replicated lit state, and reuses
the same visual update path as natural fuel depletion.