mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
Moved PreceptDefs into a separate class
This commit is contained in:
parent
3bedfec30e
commit
765e6c0778
9 changed files with 47 additions and 37 deletions
|
@ -83,20 +83,20 @@ namespace RJWSexperience.Ideology.Patches
|
|||
BloodRelationDegree relationDegree = RelationHelpers.GetBloodRelationDegree(one, two);
|
||||
|
||||
if (incestuousPrecept == null ||
|
||||
incestuousPrecept == VariousDefOf.Incestuos_Disapproved ||
|
||||
incestuousPrecept == VariousDefOf.Incestuos_Forbidden)
|
||||
incestuousPrecept == RsiPreceptDefOf.Incestuos_Disapproved ||
|
||||
incestuousPrecept == RsiPreceptDefOf.Incestuos_Forbidden)
|
||||
{
|
||||
return relationDegree < BloodRelationDegree.NotRelated;
|
||||
}
|
||||
else if (incestuousPrecept == VariousDefOf.Incestuos_Free)
|
||||
else if (incestuousPrecept == RsiPreceptDefOf.Incestuos_Free)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (incestuousPrecept == VariousDefOf.Incestuos_Disapproved_CloseOnly)
|
||||
else if (incestuousPrecept == RsiPreceptDefOf.Incestuos_Disapproved_CloseOnly)
|
||||
{
|
||||
return relationDegree == BloodRelationDegree.CloseRelative;
|
||||
}
|
||||
else if (incestuousPrecept == VariousDefOf.Incestuos_IncestOnly)
|
||||
else if (incestuousPrecept == RsiPreceptDefOf.Incestuos_IncestOnly)
|
||||
{
|
||||
return relationDegree == BloodRelationDegree.NotRelated;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue