Compare commits

...

4 commits

Author SHA1 Message Date
Salacian
4b1e268df3 Merge branch 'loading_map_fix' into 'master'
Added persistance to animations, to keep them playing after a reload

See merge request c0ffeeeeeeee/rimworld-animations!8
2023-06-22 19:44:25 +00:00
c0ffeeeeeeee
5ef758c294 Merge branch 'gc-fix-orgasm-progress' into 'master'
Fix orgasm progress

See merge request c0ffeeeeeeee/rimworld-animations!13
2023-06-21 20:10:05 +00:00
ghostclinic3YTB
3a0b9deb11 Fix orgasm progress 2023-06-21 20:10:05 +00:00
Salacian
82fb2d6c6c Added persistance to animations, to keep them playing after a reload 2023-02-20 23:32:15 +01:00
3 changed files with 5 additions and 1 deletions

View file

@ -465,7 +465,9 @@ namespace Rimworld_Animations {
Scribe_Values.Look(ref headFacing, "RJWAnimations-headFacing");
Scribe_Values.Look(ref headFacing, "RJWAnimations-bodyFacing");
Scribe_Values.Look(ref quiver, "RJWAnimations-orgasmQuiver");
Scribe_Values.Look(ref quiver, "RJWAnimations-orgasmQuiver");
Scribe_Values.Look(ref Animating, "RJWAnimations-Animating");
}
public void shiftActorPositionAndRestartAnimation() {

View file

@ -109,6 +109,7 @@ namespace Rimworld_Animations {
int animTicks = anim.animationTimeTicks - (fastAnimForQuickie ? anim.animationStages[0].playTimeTicks : 0);
(pawnsToAnimate[i].jobs.curDriver as JobDriver_Sex).ticks_left = animTicks;
(pawnsToAnimate[i].jobs.curDriver as JobDriver_Sex).sex_ticks = animTicks;
(pawnsToAnimate[i].jobs.curDriver as JobDriver_Sex).orgasmStartTick = animTicks;
(pawnsToAnimate[i].jobs.curDriver as JobDriver_Sex).duration = animTicks;

View file

@ -59,6 +59,7 @@ namespace Patch_SexToysMasturbation
(pawn.jobs.curDriver as JobDriver_Sex).ticks_left = anim.animationTimeTicks;
(pawn.jobs.curDriver as JobDriver_Sex).sex_ticks = anim.animationTimeTicks;
(pawn.jobs.curDriver as JobDriver_Sex).orgasmStartTick = anim.animationTimeTicks;
(pawn.jobs.curDriver as JobDriver_Sex).duration = anim.animationTimeTicks;
}
else