Removed GetGizmos patch. CompGetGizmosExtra now works for non-colonists!

This commit is contained in:
amevarashi 2023-03-24 23:06:24 +05:00
parent 9e0a461db3
commit f363ed6c49
4 changed files with 17 additions and 44 deletions

View file

@ -424,6 +424,20 @@ namespace RJWSexperience.SexHistory
return pawn?.IsVirgin() == true;
}
public override IEnumerable<Gizmo> CompGetGizmosExtra()
{
if (SexperienceMod.Settings.HideGizmoWhenDrafted && (parent as Pawn)?.Drafted == true)
yield break;
if (Find.Selector.NumSelected > 1)
yield break;
if (SexperienceMod.Settings.HideGizmoWithRJW && !RJWSettings.show_RJW_designation_box)
yield break;
yield return Gizmo;
}
public override void Initialize(CompProperties props)
{
base.Initialize(props);