Skip to content

Conversation

@still222
Copy link

Syncing dev gizmo to repair breakdownables

Syncing dev gizmo to repair breakdownables
@still222
Copy link
Author

#653
tested, works in dev mode, doesn't break anything outside of the dev mode (normal repair)

@still222 still222 marked this pull request as ready for review October 22, 2025 00:28
@notfood
Copy link
Member

notfood commented Oct 22, 2025

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

@still222
Copy link
Author

still222 commented Oct 22, 2025

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 still222 changed the title Update SyncDelegates.cs Sync for the devmode repair gizmo Oct 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants