Add unattended campfire risk state
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user