defName blacklist

This commit is contained in:
Platinum 2020-04-22 17:09:24 -07:00
parent 1d8d17edbc
commit 6a1786b03f
4 changed files with 10 additions and 0 deletions

View File

@ -1974,6 +1974,9 @@
<defNames>
<li>Human</li>
</defNames>
<blacklistedRaces>
<li>Human</li>
</blacklistedRaces>
<isFucked>true</isFucked>
<initiator>true</initiator>
</li>

View File

@ -10,6 +10,7 @@ namespace Rimworld_Animations {
public List<string> defNames;
public List<string> requiredGenitals;
public List<AlienRaceOffset> raceOffsets;
public List<string> blacklistedRaces;
public bool initiator = false;
public string gender;
public bool isFucking = false;

View File

@ -31,6 +31,12 @@ namespace Rimworld_Animations {
}
for (int i = 0; i < x.actors.Count; i++) {
if((x.actors[i].blacklistedRaces != null) && x.actors[i].blacklistedRaces.Contains(localParticipants[i].def.defName)) {
if (rjw.RJWSettings.DevMode) {
Log.Message(x.defName.ToStringSafe() + " not selected -- " + localParticipants[i].def.defName.ToStringSafe() + " " + localParticipants[i].Name.ToStringSafe() + " is blacklisted");
}
return false;
}
if(x.actors[i].defNames.Contains("Human")) {
if (!rjw.xxx.is_human(localParticipants[i])) {