mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Removed GetGizmos patch. CompGetGizmosExtra now works for non-colonists!
This commit is contained in:
parent
9e0a461db3
commit
f363ed6c49
4 changed files with 17 additions and 44 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue