mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
ideology compatibility
This commit is contained in:
parent
bc23c0d62f
commit
61fa2feb26
6 changed files with 51 additions and 1 deletions
|
@ -52,6 +52,16 @@ namespace RJW_Events
|
|||
{
|
||||
if (!CasualSex_Helper.CanHaveSex(p)) return 0;
|
||||
|
||||
if (ModLister.IdeologyInstalled)
|
||||
{
|
||||
var ideo = p.ideo.Ideo;
|
||||
if (!ideo.HasPrecept(DefDatabase<PreceptDef>.GetNamed("Lovin_FreeApproved", true)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return base.VoluntaryJoinPriorityFor(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue