reverted to original method of finding animation

This commit is contained in:
Platinum 2020-06-04 14:31:34 -07:00
parent 4adc4a6906
commit 81fd210b9a
4 changed files with 4 additions and 147 deletions

View file

@ -81,10 +81,10 @@ namespace Rimworld_Animations {
//TESTING ANIMATIONS ONLY REMEMBER TO COMMENT OUT BEFORE PUSH
/*
if (x.defName != "Missionary")
if (x.defName != "Doggystyle")
return false;
*/
if (x.actors[i].isFucking && !rjw.xxx.can_fuck(localParticipants[i])) {
Log.Message(x.defName.ToStringSafe() + " not selected -- " + localParticipants[i].def.defName.ToStringSafe() + " " + localParticipants[i].Name.ToStringSafe() + " can't fuck");

View file

@ -104,6 +104,8 @@ namespace Rimworld_Animations {
}
public void StartAnimation(AnimationDef anim, int actor, bool mirror = false, bool shiver = false, bool fastAnimForQuickie = false) {
isAnimating = true;
AlienRaceOffset raceOffset = anim?.actors[actor]?.raceOffsets?.Find(x => x.defName == pawn.def.defName);
if (raceOffset != null) {
@ -154,8 +156,6 @@ namespace Rimworld_Animations {
//tick once for initialization
tickAnim();
isAnimating = true;
}
public override void CompTick() {