From 9296229336858e57d37ffd74b375c10078331780 Mon Sep 17 00:00:00 2001 From: pkuzic Date: Fri, 25 Sep 2026 20:31:25 +0100 Subject: [PATCH] MONKEY (integration): order tick_shelter before the lighting resolve set It reads MonkeyFrame.wetness while update_fog_model writes MonkeyFrame; the undeclared pair put the ambiguity count one over the 5,582 ceiling. Co-Authored-By: Claude Opus 5.5 --- crates/benilla-world/src/weather/shelter.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/benilla-world/src/weather/shelter.rs b/crates/benilla-world/src/weather/shelter.rs index adef8eb7..9d0067dd 100644 --- a/crates/benilla-world/src/weather/shelter.rs +++ b/crates/benilla-world/src/weather/shelter.rs @@ -531,7 +531,14 @@ pub(super) fn register(app: &mut App) { app.init_resource::() .init_resource::() .add_plugins(ExtractResourcePlugin::::default()) - .add_systems(Update, tick_shelter.after(super::wetness::wetness_tick)); + // MONKEY (integration): it reads MonkeyFrame.wetness, which the resolve set's fog model also + // writes; run it with wetness, before that set (an undeclared order otherwise). + .add_systems( + Update, + tick_shelter + .after(super::wetness::wetness_tick) + .before(crate::lighting::LightingResolveSet), + ); if let Some(render_app) = app.get_sub_app_mut(RenderApp) { render_app.add_systems( Render,