mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Compare commits
4 commits
8e08612de3
...
29be8da7ba
Author | SHA1 | Date | |
---|---|---|---|
|
29be8da7ba | ||
|
5ef758c294 | ||
|
3a0b9deb11 | ||
|
447c4d61b6 |
4 changed files with 9 additions and 1 deletions
|
@ -13,6 +13,7 @@ namespace Rimworld_Animations {
|
|||
public List<Actor> actors;
|
||||
public int animationTimeTicks = 0; //do not set manually
|
||||
public bool sounds = false;
|
||||
public bool randomlySelectable = true;
|
||||
public List<rjw.xxx.rjwSextype> sexTypes = null;
|
||||
public List<String> interactionDefTypes = null;
|
||||
public List<string> tags = new List<string>();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
@ -33,7 +33,12 @@ namespace Rimworld_Animations {
|
|||
List<Pawn> localParticipants = new List<Pawn>(participants);
|
||||
|
||||
IEnumerable<AnimationDef> options = DefDatabase<AnimationDef>.AllDefs.Where((AnimationDef x) => {
|
||||
|
||||
if (!x.randomlySelectable)
|
||||
{
|
||||
if (AnimationSettings.debugMode)
|
||||
Log.Message(x.defName.ToStringSafe() + " not selected -- isn't randomly selectable");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (x.actors.Count != localParticipants.Count) {
|
||||
if (AnimationSettings.debugMode)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue