mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
facial anim patch
This commit is contained in:
parent
f293a09f58
commit
2c6732310c
4 changed files with 90 additions and 12 deletions
|
@ -242,7 +242,7 @@ namespace Rimworld_Animations {
|
|||
if (optionsWithSexTypeAndInitiator.Any()) {
|
||||
if (AnimationSettings.debugMode)
|
||||
Log.Message("Selecting animation for rjwSexType " + sexType.ToStringSafe() + " and initiators...");
|
||||
return optionsWithSexType.RandomElement();
|
||||
return optionsWithSexTypeAndInitiator.RandomElement();
|
||||
}
|
||||
|
||||
if (optionsWithSexType.Any()) {
|
||||
|
|
|
@ -20,13 +20,6 @@ namespace Rimworld_Animations {
|
|||
if (LoadedModManager.RunningModsListForReading.Any(x => x.Name == "[NL] Facial Animation - WIP")) {
|
||||
(new Harmony("rjw")).Patch(AccessTools.Method(AccessTools.TypeByName("FacialAnimation.DrawFaceGraphicsComp"), "DrawGraphics"),
|
||||
prefix: new HarmonyMethod(AccessTools.Method(typeof(Patch_FacialAnimation), "Prefix")));
|
||||
|
||||
|
||||
(new Harmony("rjw")).Patch(AccessTools.Method(AccessTools.TypeByName("FacialAnimation.FaceAnimationDef"), "IsSame", new Type[] { typeof(JobDef) }),
|
||||
prefix: new HarmonyMethod(AccessTools.Method(typeof(Patch_FacialAnimation), "Prefix_IsSameA")));
|
||||
|
||||
(new Harmony("rjw")).Patch(AccessTools.Method(AccessTools.TypeByName("FacialAnimation.FaceAnimationDef"), "IsSame", new Type[] { typeof(string) }),
|
||||
prefix: new HarmonyMethod(AccessTools.Method(typeof(Patch_FacialAnimation), "Prefix_IsSameB")));
|
||||
}
|
||||
}))();
|
||||
}
|
||||
|
@ -48,7 +41,7 @@ namespace Rimworld_Animations {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
public static List<string> rjwLovinDefNames = new List<string>{
|
||||
"Lovin",
|
||||
"Quickie",
|
||||
|
@ -78,7 +71,6 @@ namespace Rimworld_Animations {
|
|||
"RapeEnemy"
|
||||
};
|
||||
|
||||
|
||||
public static bool Prefix_IsSameA(JobDef job, string ___jobDef, ref bool __result) {
|
||||
|
||||
if(___jobDef != null && ___jobDef == "Lovin" && job?.defName != null && rjwLovinDefNames.Contains(job?.defName)) {
|
||||
|
@ -107,5 +99,6 @@ namespace Rimworld_Animations {
|
|||
|
||||
return true;
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue