mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
defName blacklist
This commit is contained in:
parent
1d8d17edbc
commit
6a1786b03f
4 changed files with 10 additions and 0 deletions
Binary file not shown.
|
@ -1974,6 +1974,9 @@
|
|||
<defNames>
|
||||
<li>Human</li>
|
||||
</defNames>
|
||||
<blacklistedRaces>
|
||||
<li>Human</li>
|
||||
</blacklistedRaces>
|
||||
<isFucked>true</isFucked>
|
||||
<initiator>true</initiator>
|
||||
</li>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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])) {
|
||||
|
|
Loading…
Reference in a new issue