Moved Xenotypes to more common location, reverted change to eating cum item, changed patch order of pythonkin patches

This commit is contained in:
Vegapnk 2023-02-05 11:55:37 +01:00
parent a1c31f74f6
commit 9effc7ffa3
4 changed files with 50 additions and 49 deletions

View File

@ -1,51 +1,50 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<Patch> <Patch>
<Operation Class="PatchOperationFindMod"> <Operation Class="PatchOperationSequence">
<mods> <operations>
<li>Vanilla Races Expanded - Phytokin</li> <li Class="PatchOperationFindMod">
</mods> <mods>
<match Class="PatchOperationAdd"> <li>Vanilla Races Expanded - Phytokin</li>
<xpath>Defs/XenotypeDef[defName="VRE_Poluxkin"]/genes</xpath> </mods>
<value> <match Class="PatchOperationAdd">
<li>rjw_genes_tight_female_genitalia</li> <xpath>Defs/XenotypeDef[defName="VRE_Poluxkin"]/genes</xpath>
<li>rjw_genes_tight_anus</li> <value>
<li>rjw_genes_elasticity</li> <li>rjw_genes_tight_female_genitalia</li>
<li>rjw_genes_bisexual</li> <li>rjw_genes_tight_anus</li>
</value> <li>rjw_genes_elasticity</li>
</match> <li>rjw_genes_bisexual</li>
</Operation> </value>
</Patch> </match>
</li>
<li Class="PatchOperationFindMod">
<mods>
<li>Vanilla Races Expanded - Phytokin</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="VRE_Gauranlenkin"]/genes</xpath>
<value>
<li>rjw_genes_tight_female_genitalia</li>
<li>rjw_genes_tight_anus</li>
<li>rjw_genes_elasticity</li>
<li>rjw_genes_bisexual</li>
</value>
</match>
</li>
<Patch> <li Class="PatchOperationFindMod">
<Operation Class="PatchOperationFindMod"> <mods>
<mods> <li>Vanilla Races Expanded - Phytokin</li>
<li>Vanilla Races Expanded - Phytokin</li> </mods>
</mods> <match Class="PatchOperationAdd">
<match Class="PatchOperationAdd"> <xpath>Defs/XenotypeDef[defName="VRE_Animakin"]/genes</xpath>
<xpath>Defs/XenotypeDef[defName="VRE_Gauranlenkin"]/genes</xpath> <value>
<value> <li>rjw_genes_tight_female_genitalia</li>
<li>rjw_genes_tight_female_genitalia</li> <li>rjw_genes_tight_anus</li>
<li>rjw_genes_tight_anus</li> <li>rjw_genes_elasticity</li>
<li>rjw_genes_elasticity</li> <li>rjw_genes_bisexual</li>
<li>rjw_genes_bisexual</li> </value>
</value> </match>
</match> </li>
</Operation> </operations>
</Patch>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Vanilla Races Expanded - Phytokin</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="VRE_Animakin"]/genes</xpath>
<value>
<li>rjw_genes_tight_female_genitalia</li>
<li>rjw_genes_tight_anus</li>
<li>rjw_genes_elasticity</li>
<li>rjw_genes_bisexual</li>
</value>
</match>
</Operation> </Operation>
</Patch> </Patch>

View File

@ -8,15 +8,17 @@ namespace RJW_Genes
/// </summary> /// </summary>
public class IngestionOutcomeDoer_LifeForceOffset : IngestionOutcomeDoer public class IngestionOutcomeDoer_LifeForceOffset : IngestionOutcomeDoer
{ {
public const float FERTILIN_PER_UNIT = 1f; public const float DEFAULT_FERTILIN_PER_UNIT = 1f;
public float FertilinPerUnit = 1f;
protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested) protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested)
{ {
if (GeneUtility.HasLifeForce(pawn) && GeneUtility.IsCumEater(pawn)) if (GeneUtility.HasLifeForce(pawn) && GeneUtility.IsCumEater(pawn))
{ {
float num = ingested.stackCount * FERTILIN_PER_UNIT / 100; float num = ingested.stackCount * this.FertilinPerUnit / 100;
GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(pawn), num); GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(pawn), num);
} }
} }
} }
} }

View File

@ -39,7 +39,7 @@ namespace RJW_Genes
{ {
return null; return null;
} }
int num = Mathf.RoundToInt(((gene_lifeforce.targetValue - gene_lifeforce.Value) * 100 + 10) / IngestionOutcomeDoer_LifeForceOffset.FERTILIN_PER_UNIT); int num = Mathf.RoundToInt(((gene_lifeforce.targetValue - gene_lifeforce.Value) * 100 + 10) / IngestionOutcomeDoer_LifeForceOffset.DEFAULT_FERTILIN_PER_UNIT);
if (gatheredCum != null && num > 0) if (gatheredCum != null && num > 0)
{ {
Job job = JobMaker.MakeJob(RimWorld.JobDefOf.Ingest, gatheredCum); Job job = JobMaker.MakeJob(RimWorld.JobDefOf.Ingest, gatheredCum);