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
|
@ -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…
Add table
Add a link
Reference in a new issue