facial animation tweaks

This commit is contained in:
Platinum 2020-08-21 17:29:28 -07:00
parent 8cbb5ef03b
commit 401c2c3866
4 changed files with 21 additions and 1 deletions

View file

@ -72,6 +72,12 @@ namespace Rimworld_Animations {
"UseFM"
};
public static List<string> rjwRapeDefNames = new List<string> {
"RapeComfortPawn",
"RandomRape",
"RapeEnemy"
};
public static bool Prefix_IsSameA(JobDef job, string ___jobDef, ref bool __result) {
@ -79,6 +85,11 @@ namespace Rimworld_Animations {
__result = true;
return false;
}
else if (___jobDef != null && ___jobDef == "WaitCombat" && job?.defName != null && rjwRapeDefNames.Contains(job?.defName)) {
__result = true;
return false;
}
return true;
}
@ -89,6 +100,10 @@ namespace Rimworld_Animations {
__result = true;
return false;
}
if (___jobDef != null && ___jobDef == "WaitCombat" && jobName != null && rjwRapeDefNames.Contains(jobName)) {
__result = true;
return false;
}
return true;
}