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>
|
<defNames>
|
||||||
<li>Human</li>
|
<li>Human</li>
|
||||||
</defNames>
|
</defNames>
|
||||||
|
<blacklistedRaces>
|
||||||
|
<li>Human</li>
|
||||||
|
</blacklistedRaces>
|
||||||
<isFucked>true</isFucked>
|
<isFucked>true</isFucked>
|
||||||
<initiator>true</initiator>
|
<initiator>true</initiator>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -10,6 +10,7 @@ namespace Rimworld_Animations {
|
||||||
public List<string> defNames;
|
public List<string> defNames;
|
||||||
public List<string> requiredGenitals;
|
public List<string> requiredGenitals;
|
||||||
public List<AlienRaceOffset> raceOffsets;
|
public List<AlienRaceOffset> raceOffsets;
|
||||||
|
public List<string> blacklistedRaces;
|
||||||
public bool initiator = false;
|
public bool initiator = false;
|
||||||
public string gender;
|
public string gender;
|
||||||
public bool isFucking = false;
|
public bool isFucking = false;
|
||||||
|
|
|
@ -31,6 +31,12 @@ namespace Rimworld_Animations {
|
||||||
}
|
}
|
||||||
for (int i = 0; i < x.actors.Count; i++) {
|
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(x.actors[i].defNames.Contains("Human")) {
|
||||||
if (!rjw.xxx.is_human(localParticipants[i])) {
|
if (!rjw.xxx.is_human(localParticipants[i])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue