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
|
@ -23,7 +23,7 @@ namespace RJWSexperience.Ideology
|
|||
|
||||
if (!relations.Any())
|
||||
{
|
||||
if (incestuousPrecept == VariousDefOf.Incestuos_IncestOnly)
|
||||
if (incestuousPrecept == RsiPreceptDefOf.Incestuos_IncestOnly)
|
||||
{
|
||||
return parentRomanceChanceFactor;
|
||||
}
|
||||
|
@ -46,16 +46,16 @@ namespace RJWSexperience.Ideology
|
|||
/// </summary>
|
||||
public static float GetRomanceChanceFactor(PawnRelationDef relationDef, PreceptDef incestuousPrecept)
|
||||
{
|
||||
if (incestuousPrecept == null || incestuousPrecept == VariousDefOf.Incestuos_Disapproved) // Default game setup
|
||||
if (incestuousPrecept == null || incestuousPrecept == RsiPreceptDefOf.Incestuos_Disapproved) // Default game setup
|
||||
{
|
||||
return relationDef.romanceChanceFactor;
|
||||
}
|
||||
|
||||
if (incestuousPrecept == VariousDefOf.Incestuos_Free)
|
||||
if (incestuousPrecept == RsiPreceptDefOf.Incestuos_Free)
|
||||
{
|
||||
return 1f;
|
||||
}
|
||||
else if (incestuousPrecept == VariousDefOf.Incestuos_Disapproved_CloseOnly)
|
||||
else if (incestuousPrecept == RsiPreceptDefOf.Incestuos_Disapproved_CloseOnly)
|
||||
{
|
||||
if (relationDef.familyByBloodRelation && relationDef.importance > PawnRelationDefOf.Cousin.importance)
|
||||
{
|
||||
|
@ -66,14 +66,14 @@ namespace RJWSexperience.Ideology
|
|||
return 1f;
|
||||
}
|
||||
}
|
||||
else if (incestuousPrecept == VariousDefOf.Incestuos_Forbidden)
|
||||
else if (incestuousPrecept == RsiPreceptDefOf.Incestuos_Forbidden)
|
||||
{
|
||||
if (relationDef.familyByBloodRelation)
|
||||
{
|
||||
return parentRomanceChanceFactor;
|
||||
}
|
||||
}
|
||||
else if (incestuousPrecept == VariousDefOf.Incestuos_IncestOnly)
|
||||
else if (incestuousPrecept == RsiPreceptDefOf.Incestuos_IncestOnly)
|
||||
{
|
||||
if (!relationDef.familyByBloodRelation)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue