mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Compare commits
3 commits
6686096626
...
421770be3a
Author | SHA1 | Date | |
---|---|---|---|
|
421770be3a | ||
|
a9acb2bd62 | ||
|
8888f76708 |
3 changed files with 40 additions and 21 deletions
|
@ -504,14 +504,29 @@ namespace Rimworld_Animations {
|
|||
|
||||
public bool LoopNeverending()
|
||||
{
|
||||
if(pawn?.jobs?.curDriver != null &&
|
||||
(pawn.jobs.curDriver is JobDriver_Sex) && (pawn.jobs.curDriver as JobDriver_Sex).neverendingsex ||
|
||||
(pawn.jobs.curDriver is JobDriver_SexBaseReciever) && (pawn.jobs.curDriver as JobDriver_Sex).Partner?.jobs?.curDriver != null && ((pawn.jobs.curDriver as JobDriver_Sex).Partner.jobs.curDriver as JobDriver_Sex).neverendingsex)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return IsNeverEndingSex(pawn) || IsNeverEndingSexPartner(pawn);
|
||||
}
|
||||
|
||||
return false;
|
||||
public static bool IsNeverEndingSex(Pawn pawn)
|
||||
{
|
||||
bool hasDriver = pawn?.jobs?.curDriver != null;
|
||||
if (!hasDriver)
|
||||
return false;
|
||||
|
||||
return (pawn.jobs.curDriver is JobDriver_Sex jds) && jds.neverendingsex;
|
||||
}
|
||||
|
||||
public static bool IsNeverEndingSexPartner(Pawn pawn)
|
||||
{
|
||||
bool hasDriver = pawn?.jobs?.curDriver != null;
|
||||
if (!hasDriver)
|
||||
return false;
|
||||
|
||||
var partner = (pawn.jobs.curDriver is JobDriver_SexBaseReciever jds) ? jds.Partner : null;
|
||||
if (partner == null)
|
||||
return false;
|
||||
|
||||
return IsNeverEndingSex(partner);
|
||||
}
|
||||
|
||||
public void ResetOnLoop()
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
</mods>
|
||||
<match Class="PatchOperationSequence">
|
||||
<operations>
|
||||
<li Class="PatchOperationReplace">
|
||||
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Epona"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Epona_OHPG_female="Things/Pawn/Addons/Breasts/Breasts"]/drawnInBed</xpath>
|
||||
<value>
|
||||
<drawnInBed>false</drawnInBed>
|
||||
</value>
|
||||
<li Class="PatchOperationConditional">
|
||||
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Epona"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Epona_OHPG_female="Things/Pawn/Addons/Breasts/Breasts"]/drawnInBed</xpath>
|
||||
<match Class="PatchOperationReplace">
|
||||
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Epona"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[hediffGraphics/Epona_OHPG_female="Things/Pawn/Addons/Breasts/Breasts"]/drawnInBed</xpath>
|
||||
<value>
|
||||
<drawnInBed>false</drawnInBed>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
</operations>
|
||||
</match>
|
||||
</Operation>
|
||||
|
||||
</Operation>
|
||||
</Patch>
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
</mods>
|
||||
<match Class="PatchOperationSequence">
|
||||
<operations>
|
||||
<li Class="PatchOperationAdd">
|
||||
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Nyaron"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="tail"]</xpath>
|
||||
<value>
|
||||
<drawnInBed>false</drawnInBed>
|
||||
</value>
|
||||
<li Class="PatchOperationConditional">
|
||||
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Nyaron"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="tail"]</xpath>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Nyaron"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="tail"]</xpath>
|
||||
<value>
|
||||
<drawnInBed>false</drawnInBed>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
</operations>
|
||||
</match>
|
||||
</Operation>
|
||||
|
||||
</Operation>
|
||||
</Patch>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue