bugfix: added jobdefs to facialanimation

This commit is contained in:
Platinum 2020-04-22 18:57:46 -07:00
parent d18563f77a
commit 416f88b874
2 changed files with 12 additions and 0 deletions

View file

@ -50,7 +50,10 @@ namespace Rimworld_Animations {
}
public static List<string> rjwLovinDefNames = new List<string>{
"Lovin",
"JoinInBed",
"JoinInBedAnimation",
"GettinLovedAnimation",
"GettinLoved",
"GettinLicked",
"GettinSucked",
@ -69,6 +72,10 @@ namespace Rimworld_Animations {
public static bool Prefix_IsSameA(JobDef job, string ___jobDef, ref bool __result) {
if(job?.defName != null) {
Log.Message("Defname: " + job.defName);
}
if(___jobDef != null && ___jobDef == "Lovin" && job?.defName != null && rjwLovinDefNames.Contains(job?.defName)) {
__result = true;
return false;
@ -79,6 +86,11 @@ namespace Rimworld_Animations {
public static bool Prefix_IsSameB(string jobName, string ___jobDef, ref bool __result) {
if (jobName != null) {
Log.Message("Defname: " + jobName);
}
if (___jobDef != null && ___jobDef == "Lovin" && jobName != null && rjwLovinDefNames.Contains(jobName)) {
__result = true;
return false;