mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
Change VariousDefOf to RsiDefOf
This commit is contained in:
parent
f7206347da
commit
032b031123
16 changed files with 101 additions and 94 deletions
|
@ -22,7 +22,7 @@ namespace RJWSexperience.Ideology
|
|||
|
||||
if (!pawn.relations.FamilyByBlood.Contains(partner))
|
||||
{
|
||||
if (pawn.Ideo?.HasPrecept(RsiPreceptDefOf.Incestuos_IncestOnly) == true)
|
||||
if (pawn.Ideo?.HasPrecept(RsiDefOf.Precept.Incestuos_IncestOnly) == true)
|
||||
{
|
||||
return parentRomanceChanceFactor;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ namespace RJWSexperience.Ideology
|
|||
}
|
||||
}
|
||||
|
||||
PreceptDef incestuousPrecept = pawn.Ideo?.PreceptsListForReading.Select(precept => precept.def).FirstOrFallback(def => def.issue == VariousDefOf.Incestuos);
|
||||
PreceptDef incestuousPrecept = pawn.Ideo?.PreceptsListForReading.Select(precept => precept.def).FirstOrFallback(def => def.issue == RsiDefOf.Issue.Incestuos);
|
||||
IEnumerable<PawnRelationDef> relations = pawn.GetRelations(partner).Where(def => def.familyByBloodRelation);
|
||||
foreach (PawnRelationDef relationDef in relations)
|
||||
{
|
||||
|
@ -74,7 +74,7 @@ namespace RJWSexperience.Ideology
|
|||
{
|
||||
IEnumerable<PreceptDef> incestuousPrecepts = DefDatabase<PreceptDef>
|
||||
.AllDefsListForReading
|
||||
.Where(def => def.issue == VariousDefOf.Incestuos);
|
||||
.Where(def => def.issue == RsiDefOf.Issue.Incestuos);
|
||||
|
||||
IEnumerable<TableDataGetter<PawnRelationDef>> preceptGetters = incestuousPrecepts
|
||||
.Select(precept => new TableDataGetter<PawnRelationDef>(precept.defName,(PawnRelationDef rel) => GetRomanceChanceFactor(rel, precept)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue