mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
facial animation tweaks
This commit is contained in:
parent
8cbb5ef03b
commit
401c2c3866
4 changed files with 21 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue