debug: OMNI-GATES one-line un-gated status banner per mission (class/companion/skull/mode/toggles/debug as the mod actually reads them) — settles 'was debug really on / did the class gates open' without any debug requirement

This commit is contained in:
2026-10-04 09:28:46 -04:00
parent 30d18e2762
commit 3dcb228387
@@ -710,6 +710,11 @@ mod:hook_safe(CLASS.PlayerUnitSmartTargetingExtension, "fixed_update",
return
end
if not mod.omni_gates_banner_done then
mod.omni_gates_banner_done = true
local game_mode_manager = Managers.state.game_mode
mod:diag(string.format("OMNI-GATES class=%s companion=%s skull=%s mode=%s valid=%s toggle=%s debug=%s", tostring(context.class_name), tostring(context.has_companion), tostring(context.has_servo_skull), game_mode_manager and tostring(game_mode_manager:game_mode_name()) or "nil", tostring(context.game_mode_valid), tostring(mod_settings.toggle_mod), tostring(mod_settings.debug_mode)))
end
if mod_settings.toggle_mod and context.game_mode_valid then
mod.num_visibility_checks_this_frame = 0
clean_expired_units(t)