mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Add isSlave filter
This commit is contained in:
parent
59ef82b764
commit
4d919c86d2
1 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,12 @@ namespace RJWSexperience.Ideology.Precepts
|
|||
if (filter.isVeneratedAnimal != null && filter.isVeneratedAnimal != pawn.Ideo.IsVeneratedAnimal(partner))
|
||||
return false;
|
||||
|
||||
if (filter.isSlave != null && filter.isSlave != partner.IsSlave)
|
||||
return false;
|
||||
|
||||
//if (filter.isAlien != null && filter.isAlien != partner)
|
||||
// return false;
|
||||
|
||||
if (!filter.hasOneOfRelations.NullOrEmpty())
|
||||
{
|
||||
if (pawn.relations == null)
|
||||
|
@ -76,6 +82,10 @@ namespace RJWSexperience.Ideology.Precepts
|
|||
[SuppressMessage("Minor Code Smell", "S1104:Fields should not have public accessibility", Justification = "Field value loaded from XML")]
|
||||
public bool? isVeneratedAnimal;
|
||||
[SuppressMessage("Minor Code Smell", "S1104:Fields should not have public accessibility", Justification = "Field value loaded from XML")]
|
||||
public bool? isSlave;
|
||||
[SuppressMessage("Minor Code Smell", "S1104:Fields should not have public accessibility", Justification = "Field value loaded from XML")]
|
||||
public bool? isAlien;
|
||||
[SuppressMessage("Minor Code Smell", "S1104:Fields should not have public accessibility", Justification = "Field value loaded from XML")]
|
||||
public List<PawnRelationDef> hasOneOfRelations;
|
||||
[SuppressMessage("Minor Code Smell", "S1104:Fields should not have public accessibility", Justification = "Field value loaded from XML")]
|
||||
public List<PawnRelationDef> hasNoneOfRelations;
|
||||
|
|
Loading…
Reference in a new issue