Multiplayer icon indicating copy to clipboard operation
Multiplayer copied to clipboard

Sync for the devmode repair gizmo

Open still222 opened this issue 3 months ago • 3 comments

Syncing dev gizmo to repair breakdownables

still222 avatar Oct 22 '25 00:10 still222

https://github.com/rwmt/Multiplayer/issues/653 tested, works in dev mode, doesn't break anything outside of the dev mode (normal repair)

still222 avatar Oct 22 '25 00:10 still222

Notify_Repaired is called from AI too. Isn't there a lamda for the gizmo or does it call Notify_Repaired directly?

notfood avatar Oct 22 '25 05:10 notfood

gizmo calls Notify_Repaired directly.

public override IEnumerable<Gizmo> CompGetGizmosExtra()
{
	if (DebugSettings.ShowDevGizmos && BrokenDown)
	{
		yield return new Command_Action
		{
			defaultLabel = "DEV: Fix breakdown",
			action = Notify_Repaired
		};
	}
}

Its also called from the the FixBroken job driver toils, but i don't think it causes any issues (did a test with pawn fixing things normally)

still222 avatar Oct 22 '25 06:10 still222