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()
|
public bool LoopNeverending()
|
||||||
{
|
{
|
||||||
if(pawn?.jobs?.curDriver != null &&
|
return IsNeverEndingSex(pawn) || IsNeverEndingSexPartner(pawn);
|
||||||
(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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool IsNeverEndingSex(Pawn pawn)
|
||||||
|
{
|
||||||
|
bool hasDriver = pawn?.jobs?.curDriver != null;
|
||||||
|
if (!hasDriver)
|
||||||
return false;
|
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()
|
public void ResetOnLoop()
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,16 @@
|
||||||
</mods>
|
</mods>
|
||||||
<match Class="PatchOperationSequence">
|
<match Class="PatchOperationSequence">
|
||||||
<operations>
|
<operations>
|
||||||
<li Class="PatchOperationReplace">
|
<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>
|
<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>
|
<value>
|
||||||
<drawnInBed>false</drawnInBed>
|
<drawnInBed>false</drawnInBed>
|
||||||
</value>
|
</value>
|
||||||
|
</match>
|
||||||
</li>
|
</li>
|
||||||
</operations>
|
</operations>
|
||||||
</match>
|
</match>
|
||||||
</Operation>
|
</Operation>
|
||||||
|
|
||||||
</Patch>
|
</Patch>
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,16 @@
|
||||||
</mods>
|
</mods>
|
||||||
<match Class="PatchOperationSequence">
|
<match Class="PatchOperationSequence">
|
||||||
<operations>
|
<operations>
|
||||||
<li Class="PatchOperationAdd">
|
<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>
|
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName = "Alien_Nyaron"]/alienRace/generalSettings/alienPartGenerator/bodyAddons/li[bodyPart="tail"]</xpath>
|
||||||
<value>
|
<value>
|
||||||
<drawnInBed>false</drawnInBed>
|
<drawnInBed>false</drawnInBed>
|
||||||
</value>
|
</value>
|
||||||
|
</match>
|
||||||
</li>
|
</li>
|
||||||
</operations>
|
</operations>
|
||||||
</match>
|
</match>
|
||||||
</Operation>
|
</Operation>
|
||||||
|
|
||||||
</Patch>
|
</Patch>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue