mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Drainer gene and missing crossreference to rjw_genes_likes_cumflation fixed
This commit is contained in:
parent
3c9e97beb6
commit
2a124bfbb9
8 changed files with 104 additions and 17 deletions
Binary file not shown.
|
@ -91,7 +91,7 @@
|
||||||
<GeneDef>
|
<GeneDef>
|
||||||
<defName>rjw_genes_vaginal_absorber</defName>
|
<defName>rjw_genes_vaginal_absorber</defName>
|
||||||
<label>Vaginal Fertilin Absorber</label>
|
<label>Vaginal Fertilin Absorber</label>
|
||||||
<description>Pawns with this gene are able to absorb ferilin through their vagina.</description>
|
<description>Carriers of this gene are able to absorb ferilin through their vagina.</description>
|
||||||
<iconPath>Things/Mote/Heart</iconPath>
|
<iconPath>Things/Mote/Heart</iconPath>
|
||||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||||
<displayOrderInCategory>2</displayOrderInCategory>
|
<displayOrderInCategory>2</displayOrderInCategory>
|
||||||
|
@ -102,11 +102,23 @@
|
||||||
<GeneDef>
|
<GeneDef>
|
||||||
<defName>rjw_genes_anal_absorber</defName>
|
<defName>rjw_genes_anal_absorber</defName>
|
||||||
<label>Anal Fertilin Absorber</label>
|
<label>Anal Fertilin Absorber</label>
|
||||||
<description>Pawns with this gene are able to absorb ferilin through their anus.</description>
|
<description>Carriers of this gene are able to absorb ferilin through their anus.</description>
|
||||||
<iconPath>Things/Mote/Heart</iconPath>
|
<iconPath>Things/Mote/Heart</iconPath>
|
||||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||||
<displayOrderInCategory>3</displayOrderInCategory>
|
<displayOrderInCategory>3</displayOrderInCategory>
|
||||||
<displayCategory>rjw_genes_fertilin</displayCategory>
|
<displayCategory>rjw_genes_fertilin</displayCategory>
|
||||||
<biostatCpx>1</biostatCpx>
|
<biostatCpx>1</biostatCpx>
|
||||||
</GeneDef>
|
</GeneDef>
|
||||||
|
|
||||||
|
<GeneDef>
|
||||||
|
<defName>rjw_genes_drainer</defName>
|
||||||
|
<label>vitality drainer</label>
|
||||||
|
<description>Carriers of this gene are able to absorb a great amount of ferilin by draining the vitality of the partner.</description>
|
||||||
|
<iconPath>Things/Mote/Heart</iconPath>
|
||||||
|
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||||
|
<displayOrderInCategory>4</displayOrderInCategory>
|
||||||
|
<displayCategory>rjw_genes_fertilin</displayCategory>
|
||||||
|
<biostatCpx>1</biostatCpx>
|
||||||
|
<biostatMet>-1</biostatMet>
|
||||||
|
</GeneDef>
|
||||||
</Defs>
|
</Defs>
|
|
@ -8,7 +8,6 @@
|
||||||
<label>induced libido</label>
|
<label>induced libido</label>
|
||||||
<description>Aphrodisiac pheromone effects.</description>
|
<description>Aphrodisiac pheromone effects.</description>
|
||||||
<defaultLabelColor>(1,0,0.5)</defaultLabelColor>
|
<defaultLabelColor>(1,0,0.5)</defaultLabelColor>
|
||||||
<scenarioCanAdd>true</scenarioCanAdd>
|
|
||||||
<maxSeverity>1.0</maxSeverity>
|
<maxSeverity>1.0</maxSeverity>
|
||||||
<comps>
|
<comps>
|
||||||
<li Class="HediffCompProperties_SeverityPerDay">
|
<li Class="HediffCompProperties_SeverityPerDay">
|
||||||
|
@ -38,9 +37,55 @@
|
||||||
</li>
|
</li>
|
||||||
</comps>
|
</comps>
|
||||||
<stages>
|
<stages>
|
||||||
<li>
|
<li>
|
||||||
<becomeVisible>true</becomeVisible>
|
<becomeVisible>true</becomeVisible>
|
||||||
</li>
|
</li>
|
||||||
|
</stages>
|
||||||
|
</HediffDef>
|
||||||
|
|
||||||
|
<HediffDef>
|
||||||
|
<defName>Succubus_Drained</defName>
|
||||||
|
<hediffClass>HediffWithComps</hediffClass>
|
||||||
|
<label>Drained</label>
|
||||||
|
<description>The vitality of this pawn has been drained.</description>
|
||||||
|
<defaultLabelColor>(1,0,0.5)</defaultLabelColor>
|
||||||
|
<maxSeverity>1.0</maxSeverity>
|
||||||
|
<initialSeverity>1.0</initialSeverity>
|
||||||
|
<comps>
|
||||||
|
<li Class="HediffCompProperties_SeverityPerDay">
|
||||||
|
<severityPerDay>-1.0</severityPerDay>
|
||||||
|
</li>
|
||||||
|
</comps>
|
||||||
|
<stages>
|
||||||
|
<li>
|
||||||
|
<label>minor</label>
|
||||||
|
<capMods>
|
||||||
|
<li>
|
||||||
|
<capacity>Consciousness</capacity>
|
||||||
|
<offset>-0.1</offset>
|
||||||
|
</li>
|
||||||
|
</capMods>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<minSeverity>0.5</minSeverity>
|
||||||
|
<label>moderate</label>
|
||||||
|
<capMods>
|
||||||
|
<li>
|
||||||
|
<capacity>Consciousness</capacity>
|
||||||
|
<offset>-0.2</offset>
|
||||||
|
</li>
|
||||||
|
</capMods>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<minSeverity>0.8</minSeverity>
|
||||||
|
<label>severe</label>
|
||||||
|
<capMods>
|
||||||
|
<li>
|
||||||
|
<capacity>Consciousness</capacity>
|
||||||
|
<offset>-0.4</offset>
|
||||||
|
</li>
|
||||||
|
</capMods>
|
||||||
|
</li>
|
||||||
</stages>
|
</stages>
|
||||||
</HediffDef>
|
</HediffDef>
|
||||||
</Defs>
|
</Defs>
|
|
@ -74,8 +74,19 @@
|
||||||
<xpath>Defs/XenotypeDef[defName="Highmate"]/genes</xpath>
|
<xpath>Defs/XenotypeDef[defName="Highmate"]/genes</xpath>
|
||||||
<value>
|
<value>
|
||||||
<li>rjw_genes_hypersexual</li>
|
<li>rjw_genes_hypersexual</li>
|
||||||
|
</value>
|
||||||
|
</Operation>
|
||||||
|
|
||||||
|
<Operation Class="PatchOperationFindMod">
|
||||||
|
<mods>
|
||||||
|
<li>RimJobWorld - Licentia Labs</li>
|
||||||
|
</mods>
|
||||||
|
<match Class="PatchOperationAdd">
|
||||||
|
<xpath>Defs/XenotypeDef[defName="Highmate"]/genes</xpath>
|
||||||
|
<value>
|
||||||
<li>rjw_genes_likes_cumflation</li>
|
<li>rjw_genes_likes_cumflation</li>
|
||||||
</value>
|
</value>
|
||||||
|
</match>
|
||||||
</Operation>
|
</Operation>
|
||||||
|
|
||||||
<Operation Class="PatchOperationAdd">
|
<Operation Class="PatchOperationAdd">
|
||||||
|
|
|
@ -77,6 +77,7 @@ namespace RJW_Genes
|
||||||
public static readonly GeneDef rjw_genes_pussyhealer;
|
public static readonly GeneDef rjw_genes_pussyhealer;
|
||||||
public static readonly GeneDef rjw_genes_vaginal_absorber;
|
public static readonly GeneDef rjw_genes_vaginal_absorber;
|
||||||
public static readonly GeneDef rjw_genes_anal_absorber;
|
public static readonly GeneDef rjw_genes_anal_absorber;
|
||||||
|
public static readonly GeneDef rjw_genes_drainer;
|
||||||
|
|
||||||
// Cosmetic
|
// Cosmetic
|
||||||
public static readonly GeneDef rjw_genes_succubus_tail;
|
public static readonly GeneDef rjw_genes_succubus_tail;
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace RJW_Genes
|
||||||
CompHediff = part.TryGetComp<rjw.CompHediffBodyPart>();
|
CompHediff = part.TryGetComp<rjw.CompHediffBodyPart>();
|
||||||
if (CompHediff != null)
|
if (CompHediff != null)
|
||||||
{
|
{
|
||||||
total_cum += CompHediff.FluidAmmount * multiplier;
|
total_cum += CompHediff.FluidAmmount * CompHediff.FluidModifier * multiplier;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ namespace RJW_Genes
|
||||||
if (GeneUtility.HasLifeForce(props.partner))
|
if (GeneUtility.HasLifeForce(props.partner))
|
||||||
{
|
{
|
||||||
Pawn succubus = props.partner;
|
Pawn succubus = props.partner;
|
||||||
|
|
||||||
if (!props.isRevese)
|
if (!props.isRevese)
|
||||||
{
|
{
|
||||||
if (props.isReceiver)
|
if (props.isReceiver)
|
||||||
|
@ -66,28 +67,44 @@ namespace RJW_Genes
|
||||||
{
|
{
|
||||||
AbsorbFertilin(props, absorb_factor);
|
AbsorbFertilin(props, absorb_factor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GeneUtility.HasGeneNullCheck(succubus, GeneDefOf.rjw_genes_drainer) && !props.pawn.health.hediffSet.HasHediff(HediffDefOf.Succubus_Drained))
|
||||||
|
{
|
||||||
|
props.pawn.health.AddHediff(HediffDefOf.Succubus_Drained);
|
||||||
|
GeneUtility.OffsetLifeForce(succubus, 0.25f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static void AbsorbFertilin(SexProps props, float absorb_factor = 1f)
|
public static void AbsorbFertilin(SexProps props, float absorb_factor = 1f)
|
||||||
{
|
{
|
||||||
Pawn_GeneTracker genes = props.partner.genes;
|
Pawn_GeneTracker genes = props.partner.genes;
|
||||||
Gene_LifeForce gene = genes.GetFirstGeneOfType<Gene_LifeForce>();
|
Gene_LifeForce gene = genes.GetFirstGeneOfType<Gene_LifeForce>();
|
||||||
float multiplier = Rand.Range(0.10f, 0.40f); //Around quarter get ejected everytime pawn cums
|
Hediff fertilin_lost = props.pawn.health.hediffSet.GetFirstHediffOfDef(HediffDefOf.Fertilin_Lost);
|
||||||
Hediff fertelin_lost = props.pawn.health.hediffSet.GetFirstHediffOfDef(HediffDefOf.Fertilin_Lost);
|
//Around quarter get ejected everytime pawn cums
|
||||||
if (fertelin_lost == null)
|
float multiplier = Rand.Range(0.10f, 0.40f);
|
||||||
|
|
||||||
|
|
||||||
|
//Create a new ferilin_lost hediff or reduce multiplier
|
||||||
|
if (fertilin_lost == null)
|
||||||
{
|
{
|
||||||
Hediff new_fertelin_lost = HediffMaker.MakeHediff(HediffDefOf.Fertilin_Lost, props.pawn);
|
Hediff new_fertilin_lost = HediffMaker.MakeHediff(HediffDefOf.Fertilin_Lost, props.pawn);
|
||||||
props.pawn.health.AddHediff(new_fertelin_lost);
|
props.pawn.health.AddHediff(new_fertilin_lost);
|
||||||
new_fertelin_lost.Severity = multiplier;
|
new_fertilin_lost.Severity = multiplier;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
multiplier *= 1 - fertelin_lost.Severity;
|
multiplier *= 1 - fertilin_lost.Severity;
|
||||||
fertelin_lost.Severity += multiplier;
|
fertilin_lost.Severity += multiplier;
|
||||||
|
}
|
||||||
|
//More in the tank means more to give
|
||||||
|
if (props.pawn.Has(Quirk.Messy))
|
||||||
|
{
|
||||||
|
multiplier *= 2;
|
||||||
}
|
}
|
||||||
//Currently taking the sum of all penises, maybe I should just consider one at random
|
//Currently taking the sum of all penises, maybe I should just consider one at random
|
||||||
gene.Resource.Value += CumUtility.GetTotalFluidAmount(props.pawn) / 100 * absorb_factor * multiplier;
|
float valuechange = CumUtility.GetTotalFluidAmount(props.pawn) / 100 * absorb_factor * multiplier;
|
||||||
|
GeneUtility.OffsetLifeForce(props.partner, valuechange);
|
||||||
|
//gene.Resource.Value += CumUtility.GetTotalFluidAmount(props.pawn) / 100 * absorb_factor * multiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,5 +13,6 @@ namespace RJW_Genes
|
||||||
{
|
{
|
||||||
public static readonly HediffDef Aphrodisiac_Pheromone;
|
public static readonly HediffDef Aphrodisiac_Pheromone;
|
||||||
public static readonly HediffDef Fertilin_Lost;
|
public static readonly HediffDef Fertilin_Lost;
|
||||||
|
public static readonly HediffDef Succubus_Drained;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue