Add isSlave filter

This commit is contained in:
amevarashi 2022-06-21 09:00:17 +05:00
parent 59ef82b764
commit 4d919c86d2

View file

@ -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;