mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2026-06-18 19:25:57 +00:00
Compare commits
No commits in common. "2a7395f5b6cbc1eec2b7e1828448b8606425f86f" and "8960994491c02a9adcc46ccb3eb9c2c4d09b8906" have entirely different histories.
2a7395f5b6
...
8960994491
1023 changed files with 1986 additions and 37240 deletions
31
.github/ISSUE_TEMPLATE/bug_report.md
vendored
31
.github/ISSUE_TEMPLATE/bug_report.md
vendored
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
name: Bug Report
|
||||
about: Create a report to help us improve
|
||||
|
||||
---
|
||||
|
||||
**Description**
|
||||
Whats happening? What should happen?
|
||||
|
||||
Put any error message here too.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots.
|
||||
|
||||
Add the Error Message, if there is some
|
||||
|
||||
**Hugslog / ModList**
|
||||
|
||||
Please put your Link to Hugslog here.
|
||||
|
||||
**Additional context**
|
||||
Add anything else here.
|
||||
|
||||
Please mention if you have a changed config or if you suspect a certain mod / interaction.
|
||||
19
.github/ISSUE_TEMPLATE/feature.md
vendored
19
.github/ISSUE_TEMPLATE/feature.md
vendored
|
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
name: Feature Request
|
||||
about: Suggest an Idea for this project
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. I'm always frustrated when [...]
|
||||
**OR**
|
||||
I would love to see something like [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
|
||||
Feel free to be oppinionated, or a bit crazy.
|
||||
I might not do it, but I usually don't judge.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
Feel free to share your paint-sketch
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -255,5 +255,3 @@ paket-files/
|
|||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
*.dds
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<AbilityDef ParentName="AbilityTouchBase">
|
||||
<defName>rjw_genes_ability_cockeater</defName>
|
||||
<label>Eat Cock</label>
|
||||
<description>Eat the cock of another pawn, restoring fertilin based on the size of the cock.</description>
|
||||
<iconPath>Genes/Icons/cockeater</iconPath>
|
||||
<stunTargetWhileCasting>true</stunTargetWhileCasting>
|
||||
<displayGizmoWhileUndrafted>true</displayGizmoWhileUndrafted>
|
||||
<disableGizmoWhileUndrafted>false</disableGizmoWhileUndrafted>
|
||||
<warmupMote>Mote_CoagulateStencil</warmupMote>
|
||||
<warmupEffecter>Coagulate</warmupEffecter>
|
||||
<warmupStartSound>Coagulate_Cast</warmupStartSound>
|
||||
<jobDef>CastAbilityOnThingMelee</jobDef>
|
||||
<displayOrder>402</displayOrder>
|
||||
<verbProperties>
|
||||
<verbClass>Verb_CastAbilityTouch</verbClass>
|
||||
<drawAimPie>false</drawAimPie>
|
||||
<range>-1</range>
|
||||
<warmupTime>10</warmupTime>
|
||||
<targetParams>
|
||||
<canTargetAnimals>true</canTargetAnimals>
|
||||
<canTargetSelf>false</canTargetSelf>
|
||||
<canTargetBuildings>false</canTargetBuildings>
|
||||
<canTargetMechs>false</canTargetMechs>
|
||||
<canTargetBloodfeeders>true</canTargetBloodfeeders>
|
||||
</targetParams>
|
||||
</verbProperties>
|
||||
<comps>
|
||||
<li Class="RJW_Genes.CompProperties_AbilityCockEater"/> <!-- namespace needs to be changed when copied to another mod-->
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
</Defs>
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<AbilityDef ParentName="AbilityTouchBase">
|
||||
<defName>rjw_genes_ability_cocoonweaver</defName>
|
||||
<label>Cocoon</label>
|
||||
<description>Weaves the victim into a (self-sustaining) cocoon. The victim cannot move, but can be bred.</description>
|
||||
<iconPath>Genes/Icons/Cocoon</iconPath>
|
||||
<stunTargetWhileCasting>true</stunTargetWhileCasting>
|
||||
<displayGizmoWhileUndrafted>true</displayGizmoWhileUndrafted>
|
||||
<disableGizmoWhileUndrafted>false</disableGizmoWhileUndrafted>
|
||||
<warmupMote>Mote_CocoonStencil</warmupMote>
|
||||
<warmupEffecter>CocoonWeave</warmupEffecter>
|
||||
<jobDef>CastAbilityOnThingMelee</jobDef>
|
||||
<displayOrder>404</displayOrder>
|
||||
<!-- 30k Ticks = 12h -->
|
||||
<cooldownTicksRange>30000</cooldownTicksRange>
|
||||
<verbProperties>
|
||||
<verbClass>Verb_CastAbilityTouch</verbClass>
|
||||
<drawAimPie>false</drawAimPie>
|
||||
<range>-1</range>
|
||||
<warmupTime>15</warmupTime>
|
||||
<targetParams>
|
||||
<canTargetAnimals>true</canTargetAnimals>
|
||||
<canTargetSelf>false</canTargetSelf>
|
||||
<canTargetBuildings>false</canTargetBuildings>
|
||||
<canTargetMechs>false</canTargetMechs>
|
||||
<canTargetBloodfeeders>true</canTargetBloodfeeders>
|
||||
</targetParams>
|
||||
</verbProperties>
|
||||
<comps>
|
||||
<li Class="RJW_Genes.CompProperties_AbilityCocoonWeaver"/>
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
</Defs>
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<AbilityDef ParentName="AbilityTouchBase">
|
||||
<defName>rjw_genes_ability_pussyheal</defName>
|
||||
<label>SexHeal</label>
|
||||
<description>Rape another pawn, so you can heal them with your vagina's special healing power.</description>
|
||||
<iconPath>Things/Mote/Heart</iconPath>
|
||||
<stunTargetWhileCasting>false</stunTargetWhileCasting>
|
||||
<displayGizmoWhileUndrafted>true</displayGizmoWhileUndrafted>
|
||||
<disableGizmoWhileUndrafted>false</disableGizmoWhileUndrafted>
|
||||
<warmupMote>Mote_CoagulateStencil</warmupMote>
|
||||
<warmupEffecter>Coagulate</warmupEffecter>
|
||||
<warmupStartSound>Coagulate_Cast</warmupStartSound>
|
||||
<jobDef>rjw_genes_lifeforce_healpussy</jobDef>
|
||||
<displayOrder>401</displayOrder>
|
||||
<verbProperties>
|
||||
<verbClass>Verb_CastAbilityTouch</verbClass>
|
||||
<drawAimPie>false</drawAimPie>
|
||||
<range>-1</range>
|
||||
<warmupTime>0</warmupTime>
|
||||
<targetParams>
|
||||
<canTargetAnimals>true</canTargetAnimals>
|
||||
<canTargetSelf>false</canTargetSelf>
|
||||
<canTargetBuildings>false</canTargetBuildings>
|
||||
<canTargetMechs>false</canTargetMechs>
|
||||
<canTargetBloodfeeders>true</canTargetBloodfeeders>
|
||||
</targetParams>
|
||||
</verbProperties>
|
||||
<comps>
|
||||
<li Class="RJW_Genes.CompProperties_AbilityLifeForceCost">
|
||||
<fertilinCost>0.3</fertilinCost>
|
||||
</li>
|
||||
<li Class="RJW_Genes.CompProperties_AbilityPussyHeal">
|
||||
<tendQualityRange>0.4~0.8</tendQualityRange>
|
||||
</li>
|
||||
<li Class="RJW_Genes.CompProperties_SexInteractionRequirements">
|
||||
<tags>
|
||||
<!-- <li>Consensual</li> -->
|
||||
<li>Rape</li>
|
||||
</tags>
|
||||
<dominantRequirement>
|
||||
<families>
|
||||
<li>Vagina</li>
|
||||
</families>
|
||||
</dominantRequirement>
|
||||
</li>
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
</Defs>
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<AbilityDef>
|
||||
<defName>rjw_genes_ability_seduce</defName>
|
||||
<label>seduce</label>
|
||||
<description>Seduce the target to approach the caster.</description>
|
||||
<iconPath>Genes/Icons/seduce</iconPath>
|
||||
<writeCombatLog>True</writeCombatLog>
|
||||
<stunTargetWhileCasting>true</stunTargetWhileCasting>
|
||||
<displayGizmoWhileUndrafted>true</displayGizmoWhileUndrafted>
|
||||
<disableGizmoWhileUndrafted>false</disableGizmoWhileUndrafted>
|
||||
<statBases>
|
||||
<Ability_Duration>10</Ability_Duration>
|
||||
</statBases>
|
||||
<warmupMote>Mote_CoagulateStencil</warmupMote>
|
||||
<warmupEffecter>Coagulate</warmupEffecter>
|
||||
<warmupStartSound>Coagulate_Cast</warmupStartSound>
|
||||
<verbProperties>
|
||||
<verbClass>Verb_CastAbility</verbClass>
|
||||
<range>10</range>
|
||||
<warmupTime>1</warmupTime>
|
||||
<targetParams>
|
||||
<canTargetAnimals>false</canTargetAnimals>
|
||||
<canTargetSelf>false</canTargetSelf>
|
||||
<canTargetBuildings>false</canTargetBuildings>
|
||||
<canTargetMechs>false</canTargetMechs>
|
||||
<canTargetBloodfeeders>true</canTargetBloodfeeders>
|
||||
</targetParams>
|
||||
</verbProperties>
|
||||
<comps>
|
||||
<li Class = "RJW_Genes.CompProperties_Seduce">
|
||||
<compClass>RJW_Genes.CompAbilityEffect_Seduce</compClass>
|
||||
<destination>Caster</destination>
|
||||
</li>
|
||||
<li Class="CompProperties_AbilityFleckOnTarget">
|
||||
<fleckDef>Heart</fleckDef>
|
||||
</li>
|
||||
<li Class="RJW_Genes.CompProperties_AbilityLifeForceCost">
|
||||
<fertilinCost>0.20</fertilinCost>
|
||||
</li>
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
</Defs>
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<AbilityDef>
|
||||
<defName>rjw_genes_ability_spawn_spelopede</defName>
|
||||
<label>Insect Ally</label>
|
||||
<description>Generates a tame spelopede, ready to serve their master.</description>
|
||||
<iconPath>Genes/Icons/Spelopede_Dispenser</iconPath>
|
||||
<displayGizmoWhileUndrafted>true</displayGizmoWhileUndrafted>
|
||||
<disableGizmoWhileUndrafted>false</disableGizmoWhileUndrafted>
|
||||
|
||||
<verbProperties>
|
||||
<verbClass>Verb_CastAbility</verbClass>
|
||||
<warmupTime>3</warmupTime>
|
||||
<drawAimPie>False</drawAimPie>
|
||||
<requireLineOfSight>False</requireLineOfSight>
|
||||
<range>2</range>
|
||||
<targetParams>
|
||||
<canTargetPawns>False</canTargetPawns>
|
||||
<canTargetLocations>True</canTargetLocations>
|
||||
</targetParams>
|
||||
</verbProperties>
|
||||
|
||||
<canUseAoeToGetTargets>False</canUseAoeToGetTargets>
|
||||
<cooldownTicksRange>1800000</cooldownTicksRange>
|
||||
|
||||
<comps>
|
||||
<li Class = "RJW_Genes.CompProperties_AbilitySpawnSpelopede">
|
||||
<compClass>RJW_Genes.CompAbilityEffect_SpawnSpelopede</compClass>
|
||||
<pawnKindDef>Spelopede</pawnKindDef>
|
||||
<tamed>true</tamed>
|
||||
<sensitivityMultiplier>1.00</sensitivityMultiplier>
|
||||
</li>
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<EffecterDef>
|
||||
<defName>CocoonWeave</defName>
|
||||
<children>
|
||||
<li>
|
||||
<subEffecterClass>SubEffecter_SprayerChance</subEffecterClass>
|
||||
<fleckDef>BloodSplash</fleckDef>
|
||||
<chancePerTick>0.15</chancePerTick>
|
||||
<burstCount>2~3</burstCount>
|
||||
<scale>0.75~1.5</scale>
|
||||
<color>(244, 244, 244)</color>
|
||||
<spawnLocType>RandomDrawPosOnTarget</spawnLocType>
|
||||
<attachToSpawnThing>true</attachToSpawnThing>
|
||||
</li>
|
||||
</children>
|
||||
</EffecterDef>
|
||||
|
||||
<ThingDef ParentName="MoteBase">
|
||||
<defName>Mote_CocoonStencil</defName>
|
||||
<thingClass>MoteAttached</thingClass>
|
||||
<altitudeLayer>Terrain</altitudeLayer>
|
||||
<mote>
|
||||
<fadeInTime>0.1</fadeInTime>
|
||||
<fadeOutTime>0.4</fadeOutTime>
|
||||
<solidTime>999999</solidTime>
|
||||
<needsMaintenance>True</needsMaintenance>
|
||||
</mote>
|
||||
<graphicData>
|
||||
<graphicClass>Graphic_PawnBodySilhouette</graphicClass>
|
||||
<shaderType>PawnSilhouetteStencil</shaderType>
|
||||
<texPath>Things/Mote/Transparent</texPath>
|
||||
</graphicData>
|
||||
</ThingDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<!-- Note: It is very important that rjw_genes_gender has a higher priority than the other genes
|
||||
That way they run in the correct order.
|
||||
If the Gender Change happens after e.g. genitalia change, it will produce errors.
|
||||
|
||||
General Order:
|
||||
1. Gender
|
||||
2. Genitalia Types
|
||||
3. Extra Genitalia
|
||||
4. Genitalia Sizes
|
||||
5. Others
|
||||
-->
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_gender</defName>
|
||||
<label>Gender</label>
|
||||
<displayPriorityInXenotype>21</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_genitalia_type</defName>
|
||||
<label>Genitalia Types</label>
|
||||
<displayPriorityInXenotype>19</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_genitalia_extras</defName>
|
||||
<label>Genitalia Amounts</label>
|
||||
<displayPriorityInXenotype>17</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_genitalia_size</defName>
|
||||
<label>Genitalia Size / Attributes</label>
|
||||
<displayPriorityInXenotype>15</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_fertilin</defName>
|
||||
<label>Fertilin</label>
|
||||
<displayPriorityInXenotype>14</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_breeding</defName>
|
||||
<label>Breeding</label>
|
||||
<displayPriorityInXenotype>13</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_cum</defName>
|
||||
<label>Cum</label>
|
||||
<displayPriorityInXenotype>12</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_damage</defName>
|
||||
<label>Genital Related Damage</label>
|
||||
<displayPriorityInXenotype>11</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_special</defName>
|
||||
<label>Genital Based Special Abilities</label>
|
||||
<displayPriorityInXenotype>8</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
<GeneCategoryDef>
|
||||
<defName>rjw_genes_hive</defName>
|
||||
<label>Hive</label>
|
||||
<displayPriorityInXenotype>7</displayPriorityInXenotype>
|
||||
</GeneCategoryDef>
|
||||
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<!-- rjw_genes_mechbreeder,rjw_genes_insectincubator and rjw_genes_insectbreeder were kindly supplied by `Shabalox` https://github.com/Shabalox/RJW_Genes_Addons/ -->
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_mechbreeder</defName>
|
||||
<label>Mechbreeder</label>
|
||||
<description>Pawns with this gene are able to birth mechanoids unharmed.</description>
|
||||
<iconPath>World/WorldObjects/Expanding/Mechanoids</iconPath>
|
||||
<displayOrderInCategory>51</displayOrderInCategory>
|
||||
<displayCategory>rjw_genes_breeding</displayCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_zoophile</defName>
|
||||
<label>Zoophile</label>
|
||||
<displayCategory>rjw_genes_breeding</displayCategory>
|
||||
<description>Xenotypes with this Gene are Zoophile.</description>
|
||||
<iconPath>Genes/Icons/Zoophile</iconPath>
|
||||
<displayOrderInCategory>54</displayOrderInCategory>
|
||||
<forcedTraits>
|
||||
<li>
|
||||
<def>Zoophile</def>
|
||||
</li>
|
||||
</forcedTraits>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<GeneDef Name="rjw_genes_wings" Abstract="True">
|
||||
<displayCategory>Miscellaneous</displayCategory>
|
||||
<randomChosen>true</randomChosen>
|
||||
<exclusionTags>
|
||||
<li>Wing</li>
|
||||
</exclusionTags>
|
||||
<graphicData>
|
||||
<drawLoc>Tailbone</drawLoc>
|
||||
</graphicData>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="rjw_genes_wings">
|
||||
<defName>rjw_genes_succubus_wings</defName>
|
||||
<label>succubus wings</label>
|
||||
<description>Carriers of this gene grow succubus wings.</description>
|
||||
<iconPath>Genes/Icons/Succubus_Wings</iconPath>
|
||||
<iconColor>(0.75, 0.75, 0.75)</iconColor>
|
||||
<displayOrderInCategory>1000</displayOrderInCategory>
|
||||
<abilities>
|
||||
<li>rjw_genes_ability_flight</li>
|
||||
</abilities>
|
||||
<descriptionHyperlinks>
|
||||
<AbilityDef>rjw_genes_ability_flight</AbilityDef>
|
||||
</descriptionHyperlinks>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<graphicData>
|
||||
<graphicPath>Things/Pawn/Humanlike/BodyAttachments/RJW_Genes_Succubus_Wings/RJW_Genes_Succubus_Wings</graphicPath>
|
||||
<colorType>Skin</colorType>
|
||||
<drawScale>2</drawScale>
|
||||
<drawOffsetNorth>(0.0, 0.01, -0.1)</drawOffsetNorth>
|
||||
<drawOffsetSouth>(0.0, 0.0, -0.1)</drawOffsetSouth>
|
||||
<drawOffsetEast>(0.1, 0.0, 0.0)</drawOffsetEast>
|
||||
</graphicData>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneTailBase">
|
||||
<defName>rjw_genes_succubus_tail</defName>
|
||||
<label>succubus tail</label>
|
||||
<description>Carriers of this gene grow a slender tail ending with a heart that can act as a dexterous fifth limb.</description>
|
||||
<iconPath>Genes/Icons/Succubus_Tail</iconPath>
|
||||
<iconColor>(1, 0, 0)</iconColor>
|
||||
<displayOrderInCategory>1000</displayOrderInCategory>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Manipulation</capacity>
|
||||
<offset>0.05</offset>
|
||||
</li>
|
||||
</capMods>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<graphicData>
|
||||
<graphicPath>Things/Pawn/Humanlike/BodyAttachments/RJW_Genes_Succubus_Tail/RJW_Genes_Succubus_Tail</graphicPath>
|
||||
<colorType>Skin</colorType>
|
||||
<drawScale>2</drawScale>
|
||||
<drawOffsetNorth>(0, 0.2, -0.1)</drawOffsetNorth>
|
||||
<drawOffsetSouth>(0, -0.1, 0.1)</drawOffsetSouth>
|
||||
<drawOffsetEast>(0.2, 0.2, 0.1)</drawOffsetEast>
|
||||
</graphicData>
|
||||
<randomChosen>true</randomChosen>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
</Defs>
|
||||
|
|
@ -1,111 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<GeneDef Name="GeneCumAmount" Abstract="True">
|
||||
<displayCategory>rjw_genes_cum</displayCategory>
|
||||
<exclusionTags>
|
||||
<li>CumAmount</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<!-- Penis -->
|
||||
<GeneDef ParentName="GeneCumAmount">
|
||||
<defName>rjw_genes_no_cum</defName>
|
||||
<label>No Cum</label>
|
||||
<description>Males of these species have no fluid.</description>
|
||||
<iconPath>Genes/Icons/No_Cum</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_NoCum</geneClass>
|
||||
<displayOrderInCategory>533</displayOrderInCategory>
|
||||
<biostatCpx>0</biostatCpx>
|
||||
<biostatMet>1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneCumAmount">
|
||||
<defName>rjw_genes_much_cum</defName>
|
||||
<label>Much Cum</label>
|
||||
<description>Males of this species produce a lot of fluid.</description>
|
||||
<iconPath>Genes/Icons/Much_Cum</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_MuchCum</geneClass>
|
||||
<displayOrderInCategory>534</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneCumAmount">
|
||||
<defName>rjw_genes_very_much_cum</defName>
|
||||
<label>Very Much Cum</label>
|
||||
<description>Males of this species produce a whole lot of fluid. They are like fountains basically.</description>
|
||||
<iconPath>Genes/Icons/Very_Much_Cum</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_VeryMuchCum</geneClass>
|
||||
<displayOrderInCategory>535</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-2</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef MayRequire="LustLicentia.RJWLabs">
|
||||
<defName>rjw_genes_likes_cumflation</defName>
|
||||
<label>Likes Cumflation</label>
|
||||
<displayCategory>rjw_genes_cum</displayCategory>
|
||||
<description>This Xenotype loves being cumflated.</description>
|
||||
<iconPath>Genes/Icons/Cumflation</iconPath>
|
||||
<displayOrderInCategory>536</displayOrderInCategory>
|
||||
<forcedTraits>
|
||||
<li>
|
||||
<def>LikesCumflation</def>
|
||||
</li>
|
||||
</forcedTraits>
|
||||
<exclusionTags>
|
||||
<li>NotCumflatable</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef MayRequire="LustLicentia.RJWLabs">
|
||||
<defName>rjw_genes_cumflation_immunity</defName>
|
||||
<label>Cumflation Immunity</label>
|
||||
<displayCategory>rjw_genes_cum</displayCategory>
|
||||
<description>This Xenotype cannot get cumflated.</description>
|
||||
<iconPath>Genes/Icons/Cumflation_Immunity</iconPath>
|
||||
<displayOrderInCategory>537</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>NotCumflatable</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
|
||||
<GeneDef MayRequire="LustLicentia.RJWLabs">
|
||||
<defName>rjw_genes_generous_donor</defName>
|
||||
<label>Generous Donor</label>
|
||||
<displayCategory>rjw_genes_cum</displayCategory>
|
||||
<description>When this Xenotype transfers nutrition via cumshot, the giver will not get hungry. (Licentia Configuration for Transfer Nutrition must be enabled).</description>
|
||||
<iconPath>Genes/Icons/Generous_Donor</iconPath>
|
||||
<displayOrderInCategory>538</displayOrderInCategory>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<GeneDef MayRequire="LustLicentia.RJWLabs">
|
||||
<defName>rjw_genes_elasticity</defName>
|
||||
<label>Elasticity</label>
|
||||
<displayCategory>rjw_genes_damage</displayCategory>
|
||||
<description>This Xenotype cannot get stretched by huge penetrators.</description>
|
||||
<iconPath>Genes/Icons/Elasticity</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_Elasticity</geneClass>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<displayOrderInCategory>1</displayOrderInCategory>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef >
|
||||
<defName>rjw_genes_unbreakable</defName>
|
||||
<label>Unbreakable</label>
|
||||
<displayCategory>rjw_genes_damage</displayCategory>
|
||||
<description>This Gene makes the Carrier unable to get mood or social penalties from being raped and they cannot be broken for a long period of time.</description>
|
||||
<iconPath>UI/Icons/Rituals/TrialDefend</iconPath>
|
||||
<displayOrderInCategory>2</displayOrderInCategory>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<!-- Note: This Gene is mostly handled by patching XMLs -->
|
||||
<geneClass>RJW_Genes.Gene_Unbreakable</geneClass>
|
||||
<hediffGiversCannotGive>
|
||||
<li>FeelingBroken</li>
|
||||
</hediffGiversCannotGive>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,151 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<GeneDef Name="GeneExtraGenitaliaBase" Abstract="True">
|
||||
<displayCategory>rjw_genes_genitalia_extras</displayCategory>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_extra_penis</defName>
|
||||
<label>extra penis</label>
|
||||
<description>Males of this species grow an additional penis .</description>
|
||||
<iconPath>Genes/Icons/extra_male</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_ExtraPenis</geneClass>
|
||||
<displayOrderInCategory>701</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>PenisAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_no_penis</defName>
|
||||
<label>no penis</label>
|
||||
<description>Males of this do not have a penis.</description>
|
||||
<iconPath>Genes/Icons/No_Male_Genitalia</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_NoPenis</geneClass>
|
||||
<displayOrderInCategory>702</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>PenisAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_extra_vagina</defName>
|
||||
<label>extra vagina</label>
|
||||
<description>Females of this species grow an additional vagina .</description>
|
||||
<iconPath>Genes/Icons/Extra_Vagina</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_ExtraVagina</geneClass>
|
||||
<displayOrderInCategory>703</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>VaginaAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_no_vagina</defName>
|
||||
<label>no vagina</label>
|
||||
<description>Females of this do not have a vagina.</description>
|
||||
<iconPath>Genes/Icons/No_Vagina</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_NoVagina</geneClass>
|
||||
<displayOrderInCategory>704</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>VaginaAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_extra_breasts</defName>
|
||||
<label>extra breasts</label>
|
||||
<description>Females of this species grow an additional pair of breasts .</description>
|
||||
<iconPath>Genes/Icons/Extra_Breasts</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_ExtraBreasts</geneClass>
|
||||
<displayOrderInCategory>705</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>BreastAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_no_breasts</defName>
|
||||
<label>no breasts</label>
|
||||
<description>Females of this do not have a pair of breasts, but only nipples.</description>
|
||||
<iconPath>Genes/Icons/No_Breasts</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_NoBreasts</geneClass>
|
||||
<displayOrderInCategory>706</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>BreastAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_extra_anus</defName>
|
||||
<label>extra anus</label>
|
||||
<description>This specias has an extra anus.</description>
|
||||
<iconPath>Genes/Icons/Extra_Anus</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_ExtraAnus</geneClass>
|
||||
<displayOrderInCategory>707</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>AnusAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_no_anus</defName>
|
||||
<label>no anus</label>
|
||||
<description>This specias has no anus.</description>
|
||||
<iconPath>Genes/Icons/No_Anus</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_NoAnus</geneClass>
|
||||
<displayOrderInCategory>708</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>AnusAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_futa</defName>
|
||||
<label>futanari</label>
|
||||
<description>Males with this gene grow additional female genitalia, females grow additional male genitalia.</description>
|
||||
<iconPath>Genes/Icons/Futa</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_Futa</geneClass>
|
||||
<displayOrderInCategory>709</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>PenisAmount</li>
|
||||
<li>VaginaAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_featureless_chest</defName>
|
||||
<label>Featureless Chest</label>
|
||||
<description>Carriers of this gene do not have breasts or nipples.</description>
|
||||
<iconPath>Genes/Icons/No_Breasts</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_FeaturelessChest</geneClass>
|
||||
<displayOrderInCategory>710</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>BreastAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
<!--
|
||||
See Comment in `RJW_Genes.Gene_UdderBreasts` why this is currently commented out.
|
||||
|
||||
<GeneDef ParentName="GeneExtraGenitaliaBase">
|
||||
<defName>rjw_genes_udder</defName>
|
||||
<label>udder</label>
|
||||
<description>Carriers of this gene have udders instead of breasts.</description>
|
||||
<iconPath>Things/Mote/Heart</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_UdderBreasts</geneClass>
|
||||
<displayOrderInCategory>711</displayOrderInCategory>
|
||||
<exclusionTags>
|
||||
<li>BreastAmount</li>
|
||||
</exclusionTags>
|
||||
</GeneDef>
|
||||
-->
|
||||
</Defs>
|
||||
|
|
@ -1,89 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<GeneDef Name="GeneGenitalTypeBase" Abstract="True">
|
||||
<displayCategory>rjw_genes_genitalia_type</displayCategory>
|
||||
<exclusionTags>
|
||||
<li>GenitalType</li>
|
||||
</exclusionTags>
|
||||
<biostatCpx>0</biostatCpx>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneGenitalTypeBase">
|
||||
<defName>rjw_genes_equine_genitalia</defName>
|
||||
<label>equine genitalia</label>
|
||||
<description>Carriers of this gene develop equine genitalia.</description>
|
||||
<iconPath>Genes/Icons/Genitalia_Equine</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_EquineGenitalia</geneClass>
|
||||
<displayOrderInCategory>802</displayOrderInCategory>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneGenitalTypeBase">
|
||||
<defName>rjw_genes_canine_genitalia</defName>
|
||||
<label>canine genitalia</label>
|
||||
<description>Carriers of this gene develop canine genitalia.</description>
|
||||
<iconPath>Genes/Icons/Genitalia_Canine</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_CanineGenitalia</geneClass>
|
||||
<displayOrderInCategory>803</displayOrderInCategory>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneGenitalTypeBase">
|
||||
<defName>rjw_genes_feline_genitalia</defName>
|
||||
<label>feline genitalia</label>
|
||||
<description>Carriers of this gene develop feline genitalia.</description>
|
||||
<iconPath>Genes/Icons/Genitalia_Feline</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_FelineGenitalia</geneClass>
|
||||
<displayOrderInCategory>804</displayOrderInCategory>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneGenitalTypeBase">
|
||||
<defName>rjw_genes_demonic_genitalia</defName>
|
||||
<label>demonic genitalia</label>
|
||||
<description>Carriers of this gene have demonic genitalia.</description>
|
||||
<iconPath>Genes/Icons/Genitalia_Demon</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_DemonicGenitalia</geneClass>
|
||||
<displayOrderInCategory>805</displayOrderInCategory>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneGenitalTypeBase">
|
||||
<defName>rjw_genes_dragon_genitalia</defName>
|
||||
<label>dragon genitalia</label>
|
||||
<description>Carriers of this gene develop dragon genitalia.</description>
|
||||
<iconPath>Genes/Icons/Genitalia_Draconic</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_DragonGenitalia</geneClass>
|
||||
<displayOrderInCategory>806</displayOrderInCategory>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneGenitalTypeBase">
|
||||
<defName>rjw_genes_slime_genitalia</defName>
|
||||
<label>slime genitalia</label>
|
||||
<description>Carriers of this gene have slime genitalia.</description>
|
||||
<iconPath>Genes/Icons/Slime_Genitalia</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_SlimeGenitalia</geneClass>
|
||||
<displayOrderInCategory>807</displayOrderInCategory>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="GeneGenitalTypeBase">
|
||||
<defName>rjw_genes_ovipositor_genitalia</defName>
|
||||
<label>insect genitalia</label>
|
||||
<description>Carriers of this gene have ovipositors similar to insects.</description>
|
||||
<iconPath>Genes/Icons/Ovipositor_Genitalia</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_OvipositorGenitalia</geneClass>
|
||||
<displayOrderInCategory>808</displayOrderInCategory>
|
||||
|
||||
<exclusionTags>
|
||||
<li>Egglaying</li>
|
||||
<li>AG_Egglaying</li>
|
||||
</exclusionTags>
|
||||
|
||||
</GeneDef>
|
||||
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,214 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<GeneDef Name="HiveBase" Abstract="True">
|
||||
<displayCategory>rjw_genes_hive</displayCategory>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="HiveBase">
|
||||
<defName>rjw_genes_queen</defName>
|
||||
<label>Hive Queen</label>
|
||||
<labelShortAdj>queen</labelShortAdj>
|
||||
<description>This gene represents the royal caste amongst its xenotype. Children of a queen are usually born as sterile workers, unless the father was a drone. Having multiple (adult) queens leads to intense rivalry and can throw the whole colony into chaos!</description>
|
||||
<iconPath>Genes/Icons/Queen</iconPath>
|
||||
<displayOrderInCategory>1</displayOrderInCategory>
|
||||
|
||||
<statOffsets>
|
||||
<PsychicSensitivity>0.5</PsychicSensitivity>
|
||||
<MeditationFocusGain>0.25</MeditationFocusGain>
|
||||
</statOffsets>
|
||||
|
||||
|
||||
<conditionalStatAffecters>
|
||||
<li Class="RJW_Genes.ConditionalStatAffecter_MultipleQueens">
|
||||
<statFactors>
|
||||
<MoveSpeed>0.7</MoveSpeed>
|
||||
</statFactors>
|
||||
<statOffsets>
|
||||
<WorkSpeedGlobal>-0.5</WorkSpeedGlobal>
|
||||
</statOffsets>
|
||||
</li>
|
||||
<li Class="RJW_Genes.ConditionalStatAffecter_QueenCloseBy">
|
||||
<statFactors>
|
||||
<MoveSpeed>0.4</MoveSpeed>
|
||||
<WorkSpeedGlobal>0.2</WorkSpeedGlobal>
|
||||
</statFactors>
|
||||
</li>
|
||||
</conditionalStatAffecters>
|
||||
|
||||
<exclusionTags>
|
||||
<li>rjw_genes_hive_caste</li>
|
||||
<li>rjw_genes_swearing_loyalty</li>
|
||||
</exclusionTags>
|
||||
|
||||
<biostatCpx>7</biostatCpx>
|
||||
<biostatMet>-3</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="HiveBase">
|
||||
<defName>rjw_genes_drone</defName>
|
||||
<label>Hive Drone</label>
|
||||
<labelShortAdj>drone</labelShortAdj>
|
||||
<description>This gene represents the drone caste amongst its xenotype. Drones are highly specialised experts that ensure the hives functioning. Other than that, drones are the only xenotypes capable of producing fertile offspring with a queen.</description>
|
||||
<iconPath>Genes/Icons/Drone</iconPath>
|
||||
<displayOrderInCategory>2</displayOrderInCategory>
|
||||
|
||||
<exclusionTags>
|
||||
<li>rjw_genes_hive_caste</li>
|
||||
</exclusionTags>
|
||||
|
||||
<conditionalStatAffecters>
|
||||
<li Class="RJW_Genes.ConditionalStatAffecter_QueenAbsent">
|
||||
<statFactors>
|
||||
<MoveSpeed>0.9</MoveSpeed>
|
||||
</statFactors>
|
||||
<statOffsets>
|
||||
<WorkSpeedGlobal>-0.1</WorkSpeedGlobal>
|
||||
</statOffsets>
|
||||
</li>
|
||||
</conditionalStatAffecters>
|
||||
|
||||
<biostatCpx>4</biostatCpx>
|
||||
<biostatMet>-2</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
|
||||
<GeneDef ParentName="HiveBase">
|
||||
<defName>rjw_genes_worker</defName>
|
||||
<label>Hive Worker</label>
|
||||
<labelShortAdj>worker</labelShortAdj>
|
||||
<description>This gene marks the lowest caste of a hive, the workers. Usually sterile, they are despised by higher castes and only live to serve with labour.</description>
|
||||
<iconPath>Genes/Icons/Worker</iconPath>
|
||||
<displayOrderInCategory>3</displayOrderInCategory>
|
||||
|
||||
<exclusionTags>
|
||||
<li>rjw_genes_hive_caste</li>
|
||||
</exclusionTags>
|
||||
|
||||
<conditionalStatAffecters>
|
||||
<li Class="RJW_Genes.ConditionalStatAffecter_QueenAbsent">
|
||||
<statFactors>
|
||||
<MoveSpeed>0.7</MoveSpeed>
|
||||
</statFactors>
|
||||
<statOffsets>
|
||||
<WorkSpeedGlobal>-0.5</WorkSpeedGlobal>
|
||||
</statOffsets>
|
||||
</li>
|
||||
<li Class="RJW_Genes.ConditionalStatAffecter_MultipleQueens">
|
||||
<statFactors>
|
||||
<MoveSpeed>0.7</MoveSpeed>
|
||||
</statFactors>
|
||||
<statOffsets>
|
||||
<WorkSpeedGlobal>-0.5</WorkSpeedGlobal>
|
||||
</statOffsets>
|
||||
</li>
|
||||
<li Class="RJW_Genes.ConditionalStatAffecter_QueenCloseBy">
|
||||
<statFactors>
|
||||
<MoveSpeed>1.2</MoveSpeed>
|
||||
<WorkSpeedGlobal>1.2</WorkSpeedGlobal>
|
||||
</statFactors>
|
||||
</li>
|
||||
</conditionalStatAffecters>
|
||||
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>0</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="HiveBase">
|
||||
<defName>rjw_genes_zealous_loyalty</defName>
|
||||
<label>Zealous Loyalty</label>
|
||||
<labelShortAdj>loyalty</labelShortAdj>
|
||||
<description>Carriers of this gene are genetically wired to worship carriers of the 'Queen'-gene. They receive a massive relation-ship bonus towards the queen and a slight mood bonus. Having multiple queens in the colony causes severe distress.</description>
|
||||
<iconPath>Genes/Icons/Loyalty</iconPath>
|
||||
<displayOrderInCategory>10</displayOrderInCategory>
|
||||
|
||||
<exclusionTags>
|
||||
<li>rjw_genes_swearing_loyalty</li>
|
||||
</exclusionTags>
|
||||
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="HiveBase">
|
||||
<defName>rjw_genes_cocoonweaver</defName>
|
||||
<label>Cocoon Weaver</label>
|
||||
<labelShortAdj>cocooner</labelShortAdj>
|
||||
<description>Carriers of this gene can produce a cocoon to prepare helpless (or willing) victims for breeding.</description>
|
||||
<iconPath>Genes/Icons/Cocoon</iconPath>
|
||||
<displayOrderInCategory>11</displayOrderInCategory>
|
||||
<abilities>
|
||||
<li>rjw_genes_ability_cocoonweaver</li>
|
||||
</abilities>
|
||||
<descriptionHyperlinks>
|
||||
<AbilityDef>rjw_genes_ability_cocoonweaver</AbilityDef>
|
||||
</descriptionHyperlinks>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="HiveBase">
|
||||
<defName>rjw_genes_spawn_spelopede</defName>
|
||||
<label>Spelopede Dispenser</label>
|
||||
<labelShortAdj>spelopede</labelShortAdj>
|
||||
<description>Carriers of this gene can generate tame spelopedes. Higher psychic-sensitivity will spawn more spelopedes.</description>
|
||||
<iconPath>Genes/Icons/Spelopede_Dispenser</iconPath>
|
||||
<displayOrderInCategory>12</displayOrderInCategory>
|
||||
<abilities>
|
||||
<li>rjw_genes_ability_spawn_spelopede</li>
|
||||
</abilities>
|
||||
<descriptionHyperlinks>
|
||||
<AbilityDef>rjw_genes_ability_spawn_spelopede</AbilityDef>
|
||||
</descriptionHyperlinks>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
|
||||
<GeneDef ParentName="HiveBase">
|
||||
<defName>rjw_genes_insectincubator</defName>
|
||||
<label>Insect Incubator</label>
|
||||
<geneClass>RJW_Genes.Gene_InsectIncubator</geneClass>
|
||||
<description>Pawns with this gene are able to hold more insect eggs.</description>
|
||||
<iconPath>Genes/Icons/Egg</iconPath>
|
||||
<displayOrderInCategory>52</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="HiveBase">
|
||||
<defName>rjw_genes_insectbreeder</defName>
|
||||
<label>Insect Breeder</label>
|
||||
<description>Pawns with this gene are able to fertilize eggs with any fertile penis.</description>
|
||||
<iconPath>Genes/Icons/Insect_Breeder</iconPath>
|
||||
<displayOrderInCategory>53</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_fervent_ovipositor</defName>
|
||||
<label>Fervent Ovipositor</label>
|
||||
<geneClass>RJW_Genes.Gene_FerventOvipositor</geneClass>
|
||||
<description>Pawns that have a female (egg producing) ovipositor produce eggs at drastically increased speed.</description>
|
||||
<iconPath>Genes/Icons/Fervent_Ovipositor</iconPath>
|
||||
<displayOrderInCategory>55</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,237 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<GeneDef Name="LifeForceBase" Abstract="True">
|
||||
<displayCategory>rjw_genes_fertilin</displayCategory>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_lifeforce</defName>
|
||||
<label>fertilin</label>
|
||||
<description>Carriers of this gene have a reserve of biological strength powered by a resource called fertilin. The resource can be gained and spent in various ways, some of which are unlocked by other genes.\n\nCarriers lose 5 fertilin per day from biological entropy. \n\nGene is inactive until carrier is able to have sex.</description>
|
||||
<geneClass>RJW_Genes.Gene_LifeForce</geneClass>
|
||||
<resourceGizmoType>RJW_Genes.GeneGizmo_ResourceLifeForce</resourceGizmoType>
|
||||
<resourceLabel>fertilin</resourceLabel>
|
||||
<resourceGizmoThresholds>
|
||||
<li>0.25</li>
|
||||
<li>0.5</li>
|
||||
<li>0.75</li>
|
||||
</resourceGizmoThresholds>
|
||||
<showGizmoOnWorldView>true</showGizmoOnWorldView>
|
||||
<showGizmoWhenDrafted>true</showGizmoWhenDrafted>
|
||||
<resourceDescription>A reserve of biological strength which can be gained and spent in a variety of ways. \n\nFertilin can be increased by absorbing cum, typically through oral sex or stored cum. \n\nIf fertilin reaches zero, {PAWN_nameDef} will become very unhappy and may try to obtain some forcefully.</resourceDescription>
|
||||
<iconPath>Genes/Icons/FertilinAlt</iconPath>
|
||||
<selectionWeight>0</selectionWeight>
|
||||
<displayOrderInCategory>-2</displayOrderInCategory>
|
||||
<minAgeActive>18</minAgeActive>
|
||||
<customEffectDescriptions>
|
||||
<li>Gives fertilin supply.</li>
|
||||
</customEffectDescriptions>
|
||||
<symbolPack>
|
||||
<prefixSymbols>
|
||||
<li><symbol>fert</symbol></li>
|
||||
</prefixSymbols>
|
||||
</symbolPack>
|
||||
<resourceLossPerDay>0.025</resourceLossPerDay>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_lifeforce_drain</defName>
|
||||
<label>fertilin drain</label>
|
||||
<labelShortAdj>draining</labelShortAdj>
|
||||
<description>Carriers lose an additional 7.5 fertilin per day from biological entropy.</description>
|
||||
<resourceLabel>fertilin</resourceLabel>
|
||||
<geneClass>RJW_Genes.Gene_LifeForceDrain</geneClass>
|
||||
<iconPath>Genes/Icons/FertilinDrainAlt</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<resourceLossPerDay>0.075</resourceLossPerDay>
|
||||
<minAgeActive>18</minAgeActive>
|
||||
<displayOrderInCategory>-1</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>6</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_pussyhealing</defName>
|
||||
<label>Pussy Healer</label>
|
||||
<labelShortAdj>pussyhealer</labelShortAdj>
|
||||
<description>Carriers of this gene are able use vaginal sex to tend to other's wounds.</description>
|
||||
<iconPath>Genes/Icons/Healpussy</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>9</displayOrderInCategory>
|
||||
<abilities>
|
||||
<li>rjw_genes_ability_pussyheal</li>
|
||||
</abilities>
|
||||
<descriptionHyperlinks>
|
||||
<AbilityDef>rjw_genes_ability_pussyheal</AbilityDef>
|
||||
</descriptionHyperlinks>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<symbolPack>
|
||||
<suffixSymbols>
|
||||
<li><symbol>life</symbol></li>
|
||||
<li><symbol>pussy</symbol></li>
|
||||
<li><symbol>heal</symbol></li>
|
||||
</suffixSymbols>
|
||||
</symbolPack>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_cockeater</defName>
|
||||
<label>Cockeater</label>
|
||||
<labelShortAdj>cockeater</labelShortAdj>
|
||||
<description>Carriers of this gene are able eat cocks to restore their fertilin supply. Cocks are consumed during that process.</description>
|
||||
<iconPath>Genes/Icons/cockeater</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>11</displayOrderInCategory>
|
||||
<abilities>
|
||||
<li>rjw_genes_ability_cockeater</li>
|
||||
</abilities>
|
||||
<descriptionHyperlinks>
|
||||
<AbilityDef>rjw_genes_ability_cockeater</AbilityDef>
|
||||
</descriptionHyperlinks>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<symbolPack>
|
||||
<suffixSymbols>
|
||||
<li><symbol>life</symbol></li>
|
||||
<li><symbol>cock</symbol></li>
|
||||
<li><symbol>eat</symbol></li>
|
||||
</suffixSymbols>
|
||||
</symbolPack>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_paralysingkiss</defName>
|
||||
<label>paralysing kiss</label>
|
||||
<labelShortAdj>paralysing kiss</labelShortAdj>
|
||||
<description>Carriers of this gene are able to briefly stun an enemy with a kiss.</description>
|
||||
<iconPath>Genes/Icons/Paralysing_Kiss</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>12</displayOrderInCategory>
|
||||
<abilities>
|
||||
<li>rjw_genes_ability_paralysingkiss</li>
|
||||
</abilities>
|
||||
<descriptionHyperlinks>
|
||||
<AbilityDef>rjw_genes_ability_paralysingkiss</AbilityDef>
|
||||
</descriptionHyperlinks>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<symbolPack>
|
||||
<suffixSymbols>
|
||||
<li><symbol>stun</symbol></li>
|
||||
<li><symbol>kiss</symbol></li>
|
||||
</suffixSymbols>
|
||||
</symbolPack>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_seduce</defName>
|
||||
<label>seduction</label>
|
||||
<labelShortAdj>seduction</labelShortAdj>
|
||||
<description>Carriers of this gene are able to seduce a pawn into having sex with them.</description>
|
||||
<iconPath>Genes/Icons/seduce</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>13</displayOrderInCategory>
|
||||
<abilities>
|
||||
<li>rjw_genes_ability_seduce</li>
|
||||
</abilities>
|
||||
<descriptionHyperlinks>
|
||||
<AbilityDef>rjw_genes_ability_seduce</AbilityDef>
|
||||
</descriptionHyperlinks>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
|
||||
<symbolPack>
|
||||
<suffixSymbols>
|
||||
<li><symbol>stun</symbol></li>
|
||||
<li><symbol>kiss</symbol></li>
|
||||
</suffixSymbols>
|
||||
</symbolPack>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_naked_prowess</defName>
|
||||
<label>naked prowess</label>
|
||||
<description>Carriers of this gene are able to temporarily increase their strength and resilience, while they are naked.</description>
|
||||
<iconPath>Genes/Icons/rjw_naked_prowess</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>14</displayOrderInCategory>
|
||||
<abilities>
|
||||
<li>rjw_genes_ability_naked_prowess</li>
|
||||
</abilities>
|
||||
<descriptionHyperlinks>
|
||||
<AbilityDef>rjw_genes_ability_naked_prowess</AbilityDef>
|
||||
</descriptionHyperlinks>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_cum_eater</defName>
|
||||
<label>Cum eater</label>
|
||||
<description>Carriers of this gene are able to absorb fertilin through eating cum. This includes oral sex, eating cum for food or sucking out cumflated pawns. </description>
|
||||
<iconPath>Genes/Icons/cumeater</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>1</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_fertilin_absorber</defName>
|
||||
<label>Fertilin Absorber</label>
|
||||
<description>Carriers of this gene are able to absorb the fertilin inside sperm through their vagina and anus.</description>
|
||||
<iconPath>Genes/Icons/Vaginal_cum_absorption</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>2</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_lifeforce_empath</defName>
|
||||
<label>empathic lifeforce</label>
|
||||
<geneClass>RJW_Genes.Gene_LifeForce_Empath</geneClass>
|
||||
<description>Carriers of this gene generate lifeforce if nearby pawns are sexually satisfied. Be careful: Sexually frustrated pawns will make your empath loose lifeforce!</description>
|
||||
<iconPath>Genes/Icons/Hypersexual</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>3</displayOrderInCategory>
|
||||
<biostatCpx>3</biostatCpx>
|
||||
<biostatMet>-2</biostatMet>
|
||||
|
||||
<modExtensions>
|
||||
<li Class="RJW_Genes.LifeForceEmpathExtension">
|
||||
<aheagoIncrement>0.02</aheagoIncrement>
|
||||
<satisfactionIncrement>0.01</satisfactionIncrement>
|
||||
<frustratedDecrement>-0.01</frustratedDecrement>
|
||||
</li>
|
||||
<li Class="RJW_Genes.TickIntervalExtension">
|
||||
<!-- One day has 60k ticks, so we check every hour with 60000/24 = 2500-->
|
||||
<tickInterval>2500</tickInterval>
|
||||
</li>
|
||||
<li Class="RJW_Genes.DistanceExtension">
|
||||
<!-- distance 25 means 25 tiles in every direction from the empath.-->
|
||||
<distance>25</distance>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="LifeForceBase">
|
||||
<defName>rjw_genes_drainer</defName>
|
||||
<label>vitality drainer</label>
|
||||
<description>Carriers of this gene are able to absorb a great amount of fertilin by draining the vitality of the partner. This is done passively through having sex with a non-drained pawn that does not have this gene.</description>
|
||||
<iconPath>Genes/Icons/Vitality_Drainer</iconPath>
|
||||
<prerequisite>rjw_genes_lifeforce</prerequisite>
|
||||
<displayOrderInCategory>4</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
</GeneDef>
|
||||
</Defs>
|
||||
|
|
@ -1,122 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_hypersexual</defName>
|
||||
<label>Hypersexuality</label>
|
||||
<displayCategory>Reproduction</displayCategory>
|
||||
<description>Xenotypes with this Gene are Hypersexual (Nymphs).</description>
|
||||
<iconPath>Genes/Icons/Hypersexual</iconPath>
|
||||
<displayOrderInCategory>1</displayOrderInCategory>
|
||||
<forcedTraits>
|
||||
<li>
|
||||
<def>Nymphomaniac</def>
|
||||
</li>
|
||||
</forcedTraits>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_rapist</defName>
|
||||
<label>Rapist</label>
|
||||
<displayCategory>Reproduction</displayCategory>
|
||||
<description>Xenotypes with this Gene are Rapists.</description>
|
||||
<iconPath>Genes/Icons/Rape</iconPath>
|
||||
<biostatMet>1</biostatMet>
|
||||
<displayOrderInCategory>2</displayOrderInCategory>
|
||||
<forcedTraits>
|
||||
<li>
|
||||
<def>Rapist</def>
|
||||
</li>
|
||||
</forcedTraits>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_homosexual</defName>
|
||||
<label>Homosexual</label>
|
||||
<displayCategory>Reproduction</displayCategory>
|
||||
<description>This Gene makes you gay.</description>
|
||||
<iconPath>UI\Ideoligions\Universal\RoundC</iconPath>
|
||||
<biostatMet>0</biostatMet>
|
||||
<displayOrderInCategory>3</displayOrderInCategory>
|
||||
<forcedTraits>
|
||||
<li>
|
||||
<def>Gay</def>
|
||||
</li>
|
||||
</forcedTraits>
|
||||
<exclusionTags>
|
||||
<li>rjw_genes_sexual_orientation</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_bisexual</defName>
|
||||
<label>Bisexual</label>
|
||||
<displayCategory>Reproduction</displayCategory>
|
||||
<description>Carriers of this Gene are Bisexual.</description>
|
||||
<iconPath>UI\Ideoligions\Universal\RoundC</iconPath>
|
||||
<biostatMet>0</biostatMet>
|
||||
<displayOrderInCategory>4</displayOrderInCategory>
|
||||
<forcedTraits>
|
||||
<li>
|
||||
<def>Bisexual</def>
|
||||
</li>
|
||||
</forcedTraits>
|
||||
<exclusionTags>
|
||||
<li>rjw_genes_sexual_orientation</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_no_sex_need</defName>
|
||||
<label>Asexual</label>
|
||||
<description>Carriers of this gene do not have a sex-need. They can still participate in sex, </description>
|
||||
<iconPath>Genes/Icons/Empty</iconPath>
|
||||
<displayOrderInCategory>5</displayOrderInCategory>
|
||||
<disablesNeeds>
|
||||
<li>Sex</li>
|
||||
</disablesNeeds>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<biostatCpx>2</biostatCpx>
|
||||
|
||||
<exclusionTags>
|
||||
<li>rjw_genes_sexual_orientation</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<GeneDef Name="SpecialBase" Abstract="True">
|
||||
<displayCategory>rjw_genes_special</displayCategory>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="SpecialBase">
|
||||
<defName>rjw_genes_orgasm_rush</defName>
|
||||
<label>Orgasm Rush</label>
|
||||
<description>On orgasm, carriers of this gene get a boost in activity. (rest-need is partially filled)</description>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>-2</biostatMet>
|
||||
<iconPath>UI/Memes/FleshPurity</iconPath>
|
||||
<displayOrderInCategory>1</displayOrderInCategory>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="SpecialBase">
|
||||
<defName>rjw_genes_youth_fountain</defName>
|
||||
<label>Youth Fountain</label>
|
||||
<description>Having sex with a carrier of this gene makes the partner slightly younger. (Partner stays adult)</description>
|
||||
<biostatCpx>2</biostatCpx>
|
||||
<biostatMet>-2</biostatMet>
|
||||
<iconPath>UI/Ideoligions/FireLeaves</iconPath>
|
||||
<displayOrderInCategory>2</displayOrderInCategory>
|
||||
<modExtensions>
|
||||
<li Class="RJW_Genes.AgeTransferExtension">
|
||||
<!-- 60k = 1 day -->
|
||||
<ageTickChange>60000</ageTickChange>
|
||||
<minAgeInYears>18</minAgeInYears>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="SpecialBase">
|
||||
<defName>rjw_genes_sex_age_drain</defName>
|
||||
<label>Sexual Age Drain</label>
|
||||
<description>Having sex transfers some of the partners life-time to themselves. (Pawn stays adult)</description>
|
||||
<biostatCpx>2</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<iconPath>UI/Icons/ColonistBar/Idle</iconPath>
|
||||
<displayOrderInCategory>3</displayOrderInCategory>
|
||||
<modExtensions>
|
||||
<li Class="RJW_Genes.AgeTransferExtension">
|
||||
<!-- 120k = 2 days -->
|
||||
<ageTickChange>120000</ageTickChange>
|
||||
<minAgeInYears>18</minAgeInYears>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="SpecialBase">
|
||||
<defName>rjw_genes_aphrodisiac_pheromones</defName>
|
||||
<label>Aphrodisiac Pheromones</label>
|
||||
<geneClass>RJW_Genes.Gene_Aphrodisiac_Pheromones</geneClass>
|
||||
<description>Pheremones of this pawn induce an incressed sexdrive to others nearby.</description>
|
||||
<iconPath>Genes/Icons/Pheromones</iconPath>
|
||||
<displayOrderInCategory>4</displayOrderInCategory>
|
||||
<biostatCpx>1</biostatCpx>
|
||||
<biostatMet>1</biostatMet>
|
||||
|
||||
<modExtensions>
|
||||
<li Class="RJW_Genes.TickIntervalExtension">
|
||||
<!-- One day has 60k ticks, so we check every hour with 60000/48 = 1250-->
|
||||
<tickInterval>1250</tickInterval>
|
||||
</li>
|
||||
<li Class="RJW_Genes.DistanceExtension">
|
||||
<!-- distance 25 means 25 tiles in every direction from the pheromone-pawn.-->
|
||||
<distance>25</distance>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="SpecialBase">
|
||||
<defName>rjw_genes_sexual_mytosis</defName>
|
||||
<label>Orgasmic Mytosis</label>
|
||||
<!-- <geneClass>RJW_Genes.Gene_Aphrodisiac_Pheromones</geneClass> -->
|
||||
<description>Carriers of this gene grow more unstable with ongoing multiple orgasms - climaxing in a process of mytosis. This will result in an (biologically) identical pawn and both twins are set in a regenerative state. Also, the pawn can have multiple orgasms: In a state of higher unstableness, they come quicker.</description>
|
||||
<iconPath>UI/Icons/Genes/Gene_PsychicBonding</iconPath>
|
||||
<displayOrderInCategory>5</displayOrderInCategory>
|
||||
<biostatCpx>5</biostatCpx>
|
||||
<biostatMet>-5</biostatMet>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef ParentName="SpecialBase">
|
||||
<defName>rjw_genes_hormonal_saliva</defName>
|
||||
<label>Hormonal Saliva</label>
|
||||
<description>The saliva of this xenotype stimulates growth in penises. Regular contact will lead to noticable growth.</description>
|
||||
<biostatCpx>2</biostatCpx>
|
||||
<biostatMet>-1</biostatMet>
|
||||
<iconPath>Genes/Icons/Big_Male_Genitalia</iconPath>
|
||||
<displayOrderInCategory>6</displayOrderInCategory>
|
||||
|
||||
<modExtensions>
|
||||
<li Class="RJW_Genes.HormonalSalivaExtension">
|
||||
<!-- SizeIncrement is applied "flat" -->
|
||||
<sizeIncrement>0.02</sizeIncrement>
|
||||
<maxBodySize>2.5</maxBodySize>
|
||||
<!-- CumMultiplier is applied "exponential" -->
|
||||
<cumMultiplier>1.05</cumMultiplier>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_female_only</defName>
|
||||
<label>Female</label>
|
||||
<displayCategory>rjw_genes_gender</displayCategory>
|
||||
<description>This Xenotype only has females.</description>
|
||||
<biostatCpx>0</biostatCpx>
|
||||
<iconPath>Genes/Icons/Female_Only</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_FemaleOnly</geneClass>
|
||||
<displayOrderInCategory>1</displayOrderInCategory>
|
||||
|
||||
<exclusionTags>
|
||||
<li>AG_Gender</li>
|
||||
<li>Gender</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_male_only</defName>
|
||||
<displayCategory>rjw_genes_gender</displayCategory>
|
||||
<label>Male</label>
|
||||
<description>This Xenotype only has males.</description>
|
||||
<biostatCpx>0</biostatCpx>
|
||||
<iconPath>Genes/Icons/Male_Only</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_MaleOnly</geneClass>
|
||||
<displayOrderInCategory>2</displayOrderInCategory>
|
||||
|
||||
<exclusionTags>
|
||||
<li>AG_Gender</li>
|
||||
<li>Gender</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
|
||||
<GeneDef>
|
||||
<defName>rjw_genes_gender_fluid</defName>
|
||||
<displayCategory>rjw_genes_gender</displayCategory>
|
||||
<label>Gender Fluid</label>
|
||||
<description>Everyday carriers of this gene might change their biological sex.</description>
|
||||
<biostatCpx>0</biostatCpx>
|
||||
<iconPath>Genes/Icons/Futa</iconPath>
|
||||
<geneClass>RJW_Genes.Gene_GenderFluid</geneClass>
|
||||
<displayOrderInCategory>2</displayOrderInCategory>
|
||||
|
||||
<!-- Design Decision: GenderFluids like GenderFluids (slightly) more. -->
|
||||
<missingGeneRomanceChanceFactor>0.9</missingGeneRomanceChanceFactor>
|
||||
|
||||
<exclusionTags>
|
||||
<li>AG_Gender</li>
|
||||
<li>Gender</li>
|
||||
</exclusionTags>
|
||||
|
||||
<modExtensions>
|
||||
<li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension">
|
||||
<backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes>
|
||||
<backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes>
|
||||
</li>
|
||||
<li Class="RJW_Genes.GenderFluidExtension">
|
||||
<!-- 120k = 2 days -->
|
||||
<changeInterval>120000</changeInterval>
|
||||
<changeChance>0.25</changeChance>
|
||||
</li>
|
||||
</modExtensions>
|
||||
</GeneDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,124 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<!-- Alpha Genes ID: sarg.alphagenes -->
|
||||
|
||||
<XenotypeDef>
|
||||
<defName>rjw_genes_halamyr_queen_xenotype</defName>
|
||||
<label>Halamyr Queen</label>
|
||||
<iconPath>Genes/Icons/Xenotypes/Xenotype-Queen</iconPath>
|
||||
<inheritable>false</inheritable>
|
||||
<canGenerateAsCombatant>false</canGenerateAsCombatant>
|
||||
|
||||
<description>The Halamyr are a race of insect-xenotypes living in a caste-system. On top of the caste, the queens are the centerpiece of any hive. They are the only Halamyr that can produce drones, or mass-produce workers. A hive can virtually not live without a queen - without their royalty the drones and workers are irritated and receive sever penalties. Queens are very fragile and need to be kept safe and in best conditions.</description>
|
||||
<descriptionShort>The fragile queens of the Halamyr are the center of the hives reproduction. Multiple queens, or and absence of a queen, can cause to fall the best hive into disarray real quick.</descriptionShort>
|
||||
|
||||
<genes>
|
||||
<li MayRequire="sarg.alphagenes" >AG_LargerBodySize</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_InsectBlood</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_InsectJellyProduction</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_SurvivalInstinct_Low</li>
|
||||
<li>WoundHealing_Slow</li>
|
||||
<li>PsychicAbility_Extreme</li>
|
||||
<li>MoveSpeed_Slow</li>
|
||||
<li>FireTerror</li>
|
||||
<li>MeleeDamage_Weak</li>
|
||||
<li>Sleepy</li>
|
||||
<li>Delicate</li>
|
||||
<li>rjw_genes_hypersexual</li>
|
||||
<li>rjw_genes_bisexual</li>
|
||||
<li>Libido_High</li>
|
||||
<li>Beauty_Beautiful</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_OutwardsAntennas</li>
|
||||
<li>Skin_DeepRed</li>
|
||||
<li>Learning_Fast</li>
|
||||
<li>rjw_genes_fervent_ovipositor</li>
|
||||
<li>AptitudeTerrible_Shooting</li>
|
||||
<li>AptitudeTerrible_Melee</li>
|
||||
<li>AptitudeRemarkable_Social</li>
|
||||
<li MayRequire="rjw.sexperience">AptitudeRemarkable_Sex</li>
|
||||
<li>rjw_genes_female_only</li>
|
||||
<li>rjw_genes_ovipositor_genitalia</li>
|
||||
<li>rjw_genes_aphrodisiac_pheromones</li>
|
||||
<li>rjw_genes_queen</li>
|
||||
<li>rjw_genes_cocoonweaver</li>
|
||||
<li>rjw_genes_spawn_spelopede</li>
|
||||
</genes>
|
||||
</XenotypeDef>
|
||||
|
||||
<XenotypeDef>
|
||||
<defName>rjw_genes_halamyr_hiveguard_xenotype</defName>
|
||||
<label>Halamyr Hiveguard</label>
|
||||
<iconPath>Genes/Icons/Xenotypes/Xenotype-Guard</iconPath>
|
||||
|
||||
<combatPowerFactor>1.5</combatPowerFactor>
|
||||
<inheritable>false</inheritable>
|
||||
|
||||
<description>The Halamyr hiveguards are the bastion to protect the hive. Next to the walls, these meele specialists form the ultimate guard for the queen, for which they'd give their lifes. Their tuned bodies come with a price, crippling them for social interactions and increased hunger.</description>
|
||||
<descriptionShort>Frontline of the Halamyr, guards of the hive, specialised in meele combat. Heavily handicapped without a queen.</descriptionShort>
|
||||
|
||||
<genes>
|
||||
<li MayRequire="sarg.alphagenes" >AG_InsectBlood</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_EfficientMandibles</li>
|
||||
<li>Immunity_Strong</li>
|
||||
<li>WoundHealing_Fast</li>
|
||||
<li>MoveSpeed_Quick</li>
|
||||
<li>FireTerror</li>
|
||||
<li>MeleeDamage_Strong</li>
|
||||
<li>KillThirst</li>
|
||||
<li>LowSleep</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_WaspWings</li>
|
||||
<li>Hair_ShortOnly</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_DownwardsAntennas</li>
|
||||
<li>Hair_DarkBlack</li>
|
||||
<li>Skin_DeepRed</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_FeraliskEyes</li>
|
||||
<li>AptitudeTerrible_Shooting</li>
|
||||
<li>AptitudeRemarkable_Melee</li>
|
||||
<li>AptitudePoor_Construction</li>
|
||||
<li>AptitudePoor_Cooking</li>
|
||||
<li>AptitudePoor_Plants</li>
|
||||
<li>AptitudePoor_Crafting</li>
|
||||
<li>AptitudeTerrible_Artistic</li>
|
||||
<li>AptitudeTerrible_Medicine</li>
|
||||
<li>AptitudePoor_Social</li>
|
||||
<li>rjw_genes_male_only</li>
|
||||
<li>rjw_genes_ovipositor_genitalia</li>
|
||||
<li>rjw_genes_drone</li>
|
||||
<li>rjw_genes_zealous_loyalty</li>
|
||||
</genes>
|
||||
</XenotypeDef>
|
||||
|
||||
<XenotypeDef>
|
||||
<defName>rjw_genes_halamyr_breeder_xenotype</defName>
|
||||
<label>Halamyr Breeder</label>
|
||||
<iconPath>Genes/Icons/Xenotypes/Xenotype-Breeder</iconPath>
|
||||
<inheritable>false</inheritable>
|
||||
<canGenerateAsCombatant>false</canGenerateAsCombatant>
|
||||
<combatPowerFactor>0.8</combatPowerFactor>
|
||||
|
||||
<description>The Halamyr breeders are the backbone of the hive. Their special genes allow them to carry more eggs and hatch them faster, enabling a steady output of hivelings. To support their position in the hive, breeders spend most of their life in the queens cocoon, a task which they gladly accept.</description>
|
||||
<descriptionShort>Made for incubating Halamyr eggs, breeders spend most of their life in the queens cocoon.</descriptionShort>
|
||||
|
||||
<genes>
|
||||
<li MayRequire="sarg.alphagenes" >AG_Spinnerets</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_InsectBlood</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_InsectJellyProduction</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_FormicAntennas</li>
|
||||
<li>Fertile</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_FastGestation</li>
|
||||
<li>FireTerror</li>
|
||||
<li>VerySleepy</li>
|
||||
<li>rjw_genes_bisexual</li>
|
||||
<li>Skin_DeepRed</li>
|
||||
<li>AptitudeStrong_Social</li>
|
||||
<li>rjw_genes_drone</li>
|
||||
<li>rjw_genes_female_only</li>
|
||||
<li>rjw_genes_zealous_loyalty</li>
|
||||
<li>rjw_genes_insectincubator</li>
|
||||
<li>rjw_genes_zoophile</li>
|
||||
<li>rjw_genes_no_vagina</li>
|
||||
</genes>
|
||||
</XenotypeDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,144 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<XenotypeDef>
|
||||
<defName>rjw_genes_succubus</defName>
|
||||
<label>Succubus</label>
|
||||
<description>Succubi are strongly enhanced xenohumans. These overnaturally beautiful creatures strive parasitically on the Fertilin found in semen.</description>
|
||||
<descriptionShort>Succubi are beautiful and extremely hungry Xenohumans. They strive on having sex and extracting their victims life-force through this. </descriptionShort>
|
||||
<iconPath>Genes/Icons/Xenotypes/Xenotype-Succubus</iconPath>
|
||||
<soundDefOnImplant>PawnBecameSanguophage</soundDefOnImplant>
|
||||
<generateWithXenogermReplicatingHediffChance>0.5</generateWithXenogermReplicatingHediffChance>
|
||||
<xenogermReplicatingDurationLeftDaysRange>0.1~140</xenogermReplicatingDurationLeftDaysRange>
|
||||
<combatPowerFactor>1</combatPowerFactor>
|
||||
<displayPriority>-1000</displayPriority>
|
||||
<factionlessGenerationWeight>0.005</factionlessGenerationWeight>
|
||||
<inheritable>false</inheritable>
|
||||
<doubleXenotypeChances>
|
||||
<Pigskin>0.02</Pigskin>
|
||||
<Impid>0.02</Impid>
|
||||
<Yttakin>0.02</Yttakin>
|
||||
<Neanderthal>0.02</Neanderthal>
|
||||
<Waster>0.02</Waster>
|
||||
<Dirtmole>0.02</Dirtmole>
|
||||
</doubleXenotypeChances>
|
||||
<genes>
|
||||
<li>rjw_genes_bisexual</li>
|
||||
<li>rjw_genes_hypersexual</li>
|
||||
<li>rjw_genes_female_only</li>
|
||||
<li>rjw_genes_lifeforce</li>
|
||||
<li>rjw_genes_lifeforce_drain</li>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
|
||||
<li>rjw_genes_cum_eater</li>
|
||||
<li>rjw_genes_fertilin_absorber</li>
|
||||
|
||||
<li>rjw_genes_paralysingkiss</li>
|
||||
<li>rjw_genes_seduce</li>
|
||||
<li MayRequire="rjw.sexperience">AptitudeRemarkable_Sex</li>
|
||||
|
||||
<li MayRequire="Sl4vP0weR.DominantGene">DominantGene</li>
|
||||
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
|
||||
<li>rjw_genes_succubus_wings</li>
|
||||
<li>rjw_genes_succubus_tail</li>
|
||||
<li>rjw_genes_aphrodisiac_pheromones</li>
|
||||
<li>Beauty_Pretty</li>
|
||||
<li>MoveSpeed_Quick</li>
|
||||
<li>AptitudeStrong_Social</li>
|
||||
<li>Ears_Pointed</li>
|
||||
<li>Headbone_MiniHorns</li>
|
||||
<li>Skin_Purple</li>
|
||||
</genes>
|
||||
</XenotypeDef>
|
||||
|
||||
<XenotypeDef>
|
||||
<defName>rjw_genes_incubus</defName>
|
||||
<label>Incubus</label>
|
||||
<description>Incubi are strongly enhanced xenohumans. These overnaturally beautiful creatures strive parasitically on the Fertilin found in semen.</description>
|
||||
<descriptionShort>Incubi are beautiful and extremely hungry Xenohumans. They strive on having sex and extracting their victims life-force through this. </descriptionShort>
|
||||
<iconPath>Genes/Icons/Xenotypes/Xenotype-Incubus</iconPath>
|
||||
<soundDefOnImplant>PawnBecameSanguophage</soundDefOnImplant>
|
||||
<generateWithXenogermReplicatingHediffChance>0.5</generateWithXenogermReplicatingHediffChance>
|
||||
<xenogermReplicatingDurationLeftDaysRange>0.1~140</xenogermReplicatingDurationLeftDaysRange>
|
||||
<combatPowerFactor>1</combatPowerFactor>
|
||||
<displayPriority>-1000</displayPriority>
|
||||
<factionlessGenerationWeight>0.005</factionlessGenerationWeight>
|
||||
<inheritable>false</inheritable>
|
||||
<doubleXenotypeChances>
|
||||
<Pigskin>0.02</Pigskin>
|
||||
<Impid>0.02</Impid>
|
||||
<Yttakin>0.02</Yttakin>
|
||||
<Neanderthal>0.02</Neanderthal>
|
||||
<Waster>0.02</Waster>
|
||||
<Dirtmole>0.02</Dirtmole>
|
||||
</doubleXenotypeChances>
|
||||
<genes>
|
||||
<li>rjw_genes_hypersexual</li>
|
||||
<li>rjw_genes_male_only</li>
|
||||
<li>rjw_genes_lifeforce</li>
|
||||
<li>rjw_genes_lifeforce_drain</li>
|
||||
<li>rjw_genes_drainer</li>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
|
||||
<li MayRequire="rjw.sexperience">AptitudeRemarkable_Sex</li>
|
||||
|
||||
|
||||
<li MayRequire="Sl4vP0weR.DominantGene">DominantGene</li>
|
||||
<li>rjw_genes_seduce</li>
|
||||
<li>rjw_genes_succubus_wings</li>
|
||||
<li>rjw_genes_succubus_tail</li>
|
||||
<li>rjw_genes_aphrodisiac_pheromones</li>
|
||||
|
||||
<li>Beauty_Pretty</li>
|
||||
<li>MoveSpeed_Quick</li>
|
||||
<li>Robust</li>
|
||||
<li>UVSensitivity_Intense</li>
|
||||
<li>AptitudeStrong_Intellectual</li>
|
||||
<li>Ears_Pointed</li>
|
||||
<li>Headbone_CenterHorn</li>
|
||||
<li>Skin_InkBlack</li>
|
||||
</genes>
|
||||
</XenotypeDef>
|
||||
|
||||
<XenotypeDef>
|
||||
<defName>rjw_genes_cumazone</defName>
|
||||
<label>Cumazone</label>
|
||||
<description>Cumazone are a female only xenotype that excel at meele combat. Originally created as bodyguards for glitterworld amazon communities, they spred to other systems by mere strength and providing for some fetishes. They can use Fertilin to enhance their skin to overpower any combatant in meele. Their only source for Fertilin is biting of male genitalia - so be sure to have a steady supply of victim males or prepare to raid unsuspecting men of the rim.</description>
|
||||
<descriptionShort>Female only, strong meele fighters, that use Fertilin from bitten-off cocks for powerful buffs.</descriptionShort>
|
||||
<iconPath>Genes/Icons/Xenotypes/Xenotype-Cumazon</iconPath>
|
||||
<generateWithXenogermReplicatingHediffChance>0.5</generateWithXenogermReplicatingHediffChance>
|
||||
<xenogermReplicatingDurationLeftDaysRange>0.1~140</xenogermReplicatingDurationLeftDaysRange>
|
||||
<combatPowerFactor>2.5</combatPowerFactor>
|
||||
<displayPriority>-1000</displayPriority>
|
||||
<factionlessGenerationWeight>0.01</factionlessGenerationWeight>
|
||||
<inheritable>false</inheritable>
|
||||
<genes>
|
||||
<li>WoundHealing_Fast</li>
|
||||
<li>NakedSpeed</li>
|
||||
<li>Aggression_Aggressive</li>
|
||||
<li>MeleeDamage_Strong</li>
|
||||
<li>KillThirst</li>
|
||||
<li>Robust</li>
|
||||
<li>Pain_Reduced</li>
|
||||
<li>Beauty_Ugly</li>
|
||||
<li>Hair_BaldOnly</li>
|
||||
<li>Hair_ShortOnly</li>
|
||||
<li>Brow_Heavy</li>
|
||||
<li>Body_Hulk</li>
|
||||
<li>AptitudeStrong_Shooting</li>
|
||||
<li>AptitudeRemarkable_Melee</li>
|
||||
<li>AptitudePoor_Crafting</li>
|
||||
<li>AptitudePoor_Artistic</li>
|
||||
<li>Unstoppable</li>
|
||||
<li>rjw_genes_rapist</li>
|
||||
<li>rjw_genes_female_only</li>
|
||||
<li>rjw_genes_lifeforce</li>
|
||||
<li>rjw_genes_lifeforce_drain</li>
|
||||
<li>rjw_genes_pussyhealing</li>
|
||||
<li>rjw_genes_cockeater</li>
|
||||
<li>rjw_genes_naked_prowess</li>
|
||||
<li>rjw_genes_orgasm_rush</li>
|
||||
</genes>
|
||||
</XenotypeDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,166 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<HediffDef>
|
||||
<defName>rjw_genes_fertilin_lost</defName>
|
||||
<hediffClass>Hediff_HemogenCraving</hediffClass>
|
||||
<label>lost fertilin</label>
|
||||
<description>Percentage of fertilin lost.</description>
|
||||
<defaultLabelColor>(1,1,1)</defaultLabelColor>
|
||||
<maxSeverity>1</maxSeverity>
|
||||
<comps>
|
||||
<li Class="HediffCompProperties_SeverityPerDay">
|
||||
<severityPerDay>-0.5</severityPerDay>
|
||||
</li>
|
||||
</comps>
|
||||
<stages>
|
||||
<li>
|
||||
<becomeVisible>true</becomeVisible>
|
||||
</li>
|
||||
</stages>
|
||||
</HediffDef>
|
||||
|
||||
<HediffDef>
|
||||
<defName>rjw_genes_succubus_drained</defName>
|
||||
<hediffClass>HediffWithComps</hediffClass>
|
||||
<label>Drained</label>
|
||||
<description>The vitality of this pawn has been drained. Cannot be drained again until fully recovered.</description>
|
||||
<defaultLabelColor>(1,0,0.5)</defaultLabelColor>
|
||||
<maxSeverity>1.0</maxSeverity>
|
||||
<initialSeverity>1.0</initialSeverity>
|
||||
<comps>
|
||||
<li Class="HediffCompProperties_SeverityPerDay">
|
||||
<severityPerDay>-0.25</severityPerDay>
|
||||
</li>
|
||||
</comps>
|
||||
<stages>
|
||||
<li>
|
||||
<label>minor</label>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<offset>-0.1</offset>
|
||||
</li>
|
||||
</capMods>
|
||||
<restFallFactorOffset>0.1</restFallFactorOffset>
|
||||
<statOffsets>
|
||||
<WorkSpeedGlobal>-0.1</WorkSpeedGlobal>
|
||||
</statOffsets>
|
||||
</li>
|
||||
<li>
|
||||
<minSeverity>0.5</minSeverity>
|
||||
<label>moderate</label>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<offset>-0.2</offset>
|
||||
</li>
|
||||
</capMods>
|
||||
<hungerRateFactorOffset>0.05</hungerRateFactorOffset>
|
||||
<restFallFactorOffset>0.20</restFallFactorOffset>
|
||||
<statOffsets>
|
||||
<WorkSpeedGlobal>-0.1</WorkSpeedGlobal>
|
||||
</statOffsets>
|
||||
</li>
|
||||
<li>
|
||||
<minSeverity>0.8</minSeverity>
|
||||
<label>severe</label>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<offset>-0.3</offset>
|
||||
</li>
|
||||
</capMods>
|
||||
<statOffsets>
|
||||
<WorkSpeedGlobal>-0.2</WorkSpeedGlobal>
|
||||
</statOffsets>
|
||||
<vomitMtbDays>0.4</vomitMtbDays>
|
||||
<hungerRateFactorOffset>0.1</hungerRateFactorOffset>
|
||||
<restFallFactorOffset>0.35</restFallFactorOffset>
|
||||
</li>
|
||||
</stages>
|
||||
</HediffDef>
|
||||
|
||||
<HediffDef>
|
||||
<defName>rjw_genes_fertilin_craving</defName>
|
||||
<label>fertilin craving</label>
|
||||
<hediffClass>Hediff_HemogenCraving</hediffClass>
|
||||
<description>weakened due to running out of fertilin.</description>
|
||||
<defaultLabelColor>(1,0,0.5)</defaultLabelColor>
|
||||
<maxSeverity>1.0</maxSeverity>
|
||||
<initialSeverity>0.01</initialSeverity>
|
||||
<stages>
|
||||
<li>
|
||||
<label>minor</label>
|
||||
<painOffset>0.05</painOffset>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<setMax>0.9</setMax>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
<li>
|
||||
<label>moderate</label>
|
||||
<minSeverity>0.35</minSeverity>
|
||||
<painOffset>0.1</painOffset>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<setMax>0.8</setMax>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
<li>
|
||||
<label>major</label>
|
||||
<minSeverity>0.7</minSeverity>
|
||||
<painOffset>0.15</painOffset>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<setMax>0.5</setMax>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
</stages>
|
||||
<comps>
|
||||
<li Class="RJW_Genes.HediffCompProperties_SeverityFromFertilin">
|
||||
<severityPerHourEmpty>0.05</severityPerHourEmpty>
|
||||
<severityPerHourHemogen>-0.1</severityPerHourHemogen>
|
||||
</li>
|
||||
</comps>
|
||||
</HediffDef>
|
||||
|
||||
<HediffDef ParentName="RoleStatBuff">
|
||||
<defName>rjw_genes_naked_prowess</defName>
|
||||
<label>naked prowss</label>
|
||||
<description>Driven by fertilin, this person has greatly increased strength and resilience.</description>
|
||||
<hediffClass>HediffWithComps</hediffClass>
|
||||
<stages>
|
||||
<li>
|
||||
<!--Maybe a bit to much, but they are supposed to be strong-->
|
||||
<statOffsets>
|
||||
<ArmorRating_Sharp>0.5</ArmorRating_Sharp>
|
||||
<ArmorRating_Blunt>0.5</ArmorRating_Blunt>
|
||||
<ArmorRating_Heat>0.5</ArmorRating_Heat>
|
||||
<!-- <Insulation_Cold>10</Insulation_Cold>
|
||||
<Insulation_Heat>10</Insulation_Heat> -->
|
||||
</statOffsets>
|
||||
<statFactors>
|
||||
<IncomingDamageFactor>0.5</IncomingDamageFactor>
|
||||
<MeleeDamageFactor>1.5</MeleeDamageFactor>
|
||||
</statFactors>
|
||||
</li>
|
||||
</stages>
|
||||
<comps>
|
||||
<li Class="HediffCompProperties_Disappears">
|
||||
<showRemainingTime>True</showRemainingTime>
|
||||
<disappearsAfterTicks>5000</disappearsAfterTicks> <!-- 2 hours -->
|
||||
</li>
|
||||
<li Class="HediffCompProperties_DisappearsOnDeath"/>
|
||||
<!--TODO: Make hediff disappear if pawn is nolonger naked-->
|
||||
</comps>
|
||||
<isBad>false</isBad>
|
||||
</HediffDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<HediffDef>
|
||||
<defName>rjw_genes_orgasm_rush_hediff</defName>
|
||||
<hediffClass>HediffWithComps</hediffClass>
|
||||
<label>Orgasm Rush</label>
|
||||
<description>Xenotypes with this Gene are pushed beyond normal limits when they have an orgasm.</description>
|
||||
<defaultLabelColor>(240,200,110)</defaultLabelColor>
|
||||
<scenarioCanAdd>false</scenarioCanAdd>
|
||||
<maxSeverity>1.0</maxSeverity>
|
||||
<isBad>false</isBad>
|
||||
<tendable>false</tendable>
|
||||
<comps>
|
||||
<li Class="HediffCompProperties_SeverityPerDay">
|
||||
<severityPerDay>-0.75</severityPerDay>
|
||||
</li>
|
||||
</comps>
|
||||
<stages>
|
||||
<li>
|
||||
<label>pumped</label>
|
||||
<statOffsets>
|
||||
<MeleeDodgeChance>4</MeleeDodgeChance>
|
||||
<ShootingAccuracyPawn>4</ShootingAccuracyPawn>
|
||||
</statOffsets>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<offset>0.05</offset>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
<li>
|
||||
<label>charged</label>
|
||||
<minSeverity>0.4</minSeverity>
|
||||
<statOffsets>
|
||||
<MeleeDodgeChance>8</MeleeDodgeChance>
|
||||
<ShootingAccuracyPawn>8</ShootingAccuracyPawn>
|
||||
</statOffsets>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Moving</capacity>
|
||||
<offset>0.08</offset>
|
||||
</li>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<offset>0.08</offset>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
<li>
|
||||
<label>super-charged</label>
|
||||
<minSeverity>0.7</minSeverity>
|
||||
<statOffsets>
|
||||
<MeleeDodgeChance>10</MeleeDodgeChance>
|
||||
<ShootingAccuracyPawn>10</ShootingAccuracyPawn>
|
||||
</statOffsets>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Moving</capacity>
|
||||
<offset>0.1</offset>
|
||||
</li>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<offset>0.1</offset>
|
||||
</li>
|
||||
<li>
|
||||
<capacity>BloodPumping</capacity>
|
||||
<offset>0.1</offset>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
|
||||
</stages>
|
||||
</HediffDef>
|
||||
|
||||
</Defs>
|
||||
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Defs>
|
||||
|
||||
<!--
|
||||
For writing your own:
|
||||
1. specify your queenXenotype with an exactly matching name
|
||||
2. defName is not important
|
||||
3. queen + drone + worker == 1
|
||||
|
||||
Otherwise, it should default to the ones specified for rjw_genes_default_hive_offspring_chances
|
||||
-->
|
||||
|
||||
<RJW_Genes.HiveOffspringChanceDef>
|
||||
<!-- Important: this default defName cannot be renamed! It is a protected keyword.-->
|
||||
<!-- Changing the queenXenotype-Name will also throw an error.-->
|
||||
<!-- But you can change the workerGenes list.-->
|
||||
<defName>rjw_genes_default_hive_offspring_chances</defName>
|
||||
<queenXenotype>default</queenXenotype>
|
||||
|
||||
<queenChance>0.02</queenChance>
|
||||
<droneChance>0.48</droneChance>
|
||||
<workerChance>0.5</workerChance>
|
||||
|
||||
</RJW_Genes.HiveOffspringChanceDef>
|
||||
|
||||
<RJW_Genes.HiveOffspringChanceDef>
|
||||
<defName>rjw_genes_test_queen_offspring_chances</defName>
|
||||
<queenXenotype>rjw_genes_test_queen_xenotype</queenXenotype>
|
||||
|
||||
<queenChance>0.02</queenChance>
|
||||
<droneChance>0.28</droneChance>
|
||||
<workerChance>0.7</workerChance>
|
||||
|
||||
</RJW_Genes.HiveOffspringChanceDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<Defs>
|
||||
<JobDef>
|
||||
<defName>rjw_genes_lifeforce_randomrape</defName>
|
||||
<driverClass>rjw.JobDriver_RandomRape</driverClass>
|
||||
<reportString>Raping</reportString>
|
||||
<casualInterruptible>false</casualInterruptible>
|
||||
</JobDef>
|
||||
|
||||
<JobDef>
|
||||
<defName>rjw_genes_lifeforce_healpussy</defName>
|
||||
<driverClass>RJW_Genes.JobDriver_CastAbilityAfterSex</driverClass>
|
||||
<reportString>Tending someones wounds with sex.</reportString>
|
||||
<casualInterruptible>false</casualInterruptible>
|
||||
</JobDef>
|
||||
|
||||
<JobDef>
|
||||
<defName>rjw_genes_lifeforce_seduced</defName>
|
||||
<driverClass>RJW_Genes.JobDriver_Seduced</driverClass>
|
||||
<reportString>Seduced.</reportString>
|
||||
<casualInterruptible>false</casualInterruptible>
|
||||
<playerInterruptible>false</playerInterruptible>
|
||||
</JobDef>
|
||||
|
||||
<JobDef>
|
||||
<defName>rjw_genes_flirt</defName>
|
||||
<driverClass>RJW_Genes.JobDriver_Flirt</driverClass>
|
||||
<reportString>Seduced.</reportString>
|
||||
<casualInterruptible>false</casualInterruptible>
|
||||
</JobDef>
|
||||
</Defs>
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<Defs>
|
||||
<JobDef>
|
||||
<defName>sex_on_spot</defName>
|
||||
<driverClass>RJW_Genes.JobDriver_SexOnSpot</driverClass>
|
||||
<reportString>Making love on the spot.</reportString>
|
||||
<casualInterruptible>false</casualInterruptible>
|
||||
</JobDef>
|
||||
|
||||
<JobDef>
|
||||
<defName>sex_on_spot_reciever</defName>
|
||||
<driverClass>RJW_Genes.JobDriver_SexOnSpotReciever</driverClass>
|
||||
<reportString>lovin'.</reportString>
|
||||
<casualInterruptible>false</casualInterruptible>
|
||||
</JobDef>
|
||||
</Defs>
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<Defs>
|
||||
<PawnKindDef>
|
||||
<defName>rjw_genes_succubus</defName>
|
||||
<label>succubus</label>
|
||||
<combatPower>50</combatPower>
|
||||
<race>Human</race>
|
||||
<xenotypeSet>
|
||||
<xenotypeChances>
|
||||
<rjw_genes_succubus>999</rjw_genes_succubus>
|
||||
</xenotypeChances>
|
||||
</xenotypeSet>
|
||||
<acceptArrestChanceFactor>0.5</acceptArrestChanceFactor>
|
||||
<useFactionXenotypes>false</useFactionXenotypes>
|
||||
<minGenerationAge>18</minGenerationAge>
|
||||
<maxGenerationAge>27</maxGenerationAge>
|
||||
<itemQuality>Poor</itemQuality>
|
||||
<backstoryCryptosleepCommonality>0.0</backstoryCryptosleepCommonality>
|
||||
<isFighter>false</isFighter>
|
||||
<gearHealthRange>
|
||||
<min>0.3</min>
|
||||
<max>0.9</max>
|
||||
</gearHealthRange>
|
||||
<apparelIgnoreSeasons>true</apparelIgnoreSeasons>
|
||||
<apparelTags>
|
||||
<li>Tribal</li>
|
||||
</apparelTags>
|
||||
<apparelMoney>
|
||||
<min>0</min>
|
||||
<max>0</max>
|
||||
</apparelMoney>
|
||||
<apparelAllowHeadgearChance>0</apparelAllowHeadgearChance>
|
||||
<techHediffsMoney>
|
||||
<min>0</min>
|
||||
<max>0</max>
|
||||
</techHediffsMoney>
|
||||
<techHediffsTags>
|
||||
<li>Poor</li>
|
||||
</techHediffsTags>
|
||||
<techHediffsChance>0.0</techHediffsChance>
|
||||
<initialWillRange>2~4</initialWillRange>
|
||||
<initialResistanceRange>28~44</initialResistanceRange>
|
||||
</PawnKindDef>
|
||||
|
||||
<PawnKindDef>
|
||||
<defName>rjw_genes_incubus</defName>
|
||||
<label>succubus</label>
|
||||
<combatPower>50</combatPower>
|
||||
<race>Human</race>
|
||||
<xenotypeSet>
|
||||
<xenotypeChances>
|
||||
<rjw_genes_incubus>999</rjw_genes_incubus>
|
||||
</xenotypeChances>
|
||||
</xenotypeSet>
|
||||
<acceptArrestChanceFactor>0.5</acceptArrestChanceFactor>
|
||||
<useFactionXenotypes>false</useFactionXenotypes>
|
||||
<minGenerationAge>18</minGenerationAge>
|
||||
<maxGenerationAge>27</maxGenerationAge>
|
||||
<itemQuality>Poor</itemQuality>
|
||||
<backstoryCryptosleepCommonality>0.0</backstoryCryptosleepCommonality>
|
||||
<isFighter>false</isFighter>
|
||||
<gearHealthRange>
|
||||
<min>0.3</min>
|
||||
<max>0.9</max>
|
||||
</gearHealthRange>
|
||||
<apparelIgnoreSeasons>true</apparelIgnoreSeasons>
|
||||
<apparelTags>
|
||||
<li>Tribal</li>
|
||||
</apparelTags>
|
||||
<apparelMoney>
|
||||
<min>0</min>
|
||||
<max>0</max>
|
||||
</apparelMoney>
|
||||
<apparelAllowHeadgearChance>0</apparelAllowHeadgearChance>
|
||||
<techHediffsMoney>
|
||||
<min>0</min>
|
||||
<max>0</max>
|
||||
</techHediffsMoney>
|
||||
<techHediffsTags>
|
||||
<li>Poor</li>
|
||||
</techHediffsTags>
|
||||
<techHediffsChance>0.0</techHediffsChance>
|
||||
<initialWillRange>2~4</initialWillRange>
|
||||
<initialResistanceRange>28~44</initialResistanceRange>
|
||||
</PawnKindDef>
|
||||
</Defs>
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Defs>
|
||||
|
||||
<RJW_Genes.QueenWorkerMappingDef>
|
||||
<!-- Important: this default defName cannot be renamed! It is a protected keyword.-->
|
||||
<!-- Changing the queenXenotype-Name will also throw an error.-->
|
||||
<!-- But you can change the workerGenes list.-->
|
||||
<defName>rjw_genes_default_worker_genes</defName>
|
||||
<queenXenotype>default</queenXenotype>
|
||||
<workerGenes>
|
||||
<li>StrongStomach</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_FasterAging</li>
|
||||
<li>PsychicAbility_Dull</li>
|
||||
<li>FireTerror</li>
|
||||
<li>Sterile</li>
|
||||
<li>AptitudeTerrible_Intellectual</li>
|
||||
<li>rjw_genes_featureless_chest</li>
|
||||
<li>rjw_genes_worker</li>
|
||||
<li>rjw_genes_zealous_loyalty</li>
|
||||
</workerGenes>
|
||||
</RJW_Genes.QueenWorkerMappingDef>
|
||||
|
||||
<RJW_Genes.QueenWorkerMappingDef>
|
||||
<defName>rjw_genes_halamyr_queen_worker_mapping</defName>
|
||||
<queenXenotype>rjw_genes_halamyr_queen_xenotype</queenXenotype>
|
||||
<workerGenes>
|
||||
<li MayRequire="sarg.alphagenes" >AG_SmallerBodySize</li>
|
||||
<li>StrongStomach</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_EfficientMandibles</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_FasterAging</li>
|
||||
<li>PsychicAbility_Dull</li>
|
||||
<li>FireTerror</li>
|
||||
<li>Sterile</li>
|
||||
<li MayRequire="sarg.alphagenes" >AG_FormicAntennas</li>
|
||||
<li>Skin_DeepRed</li>
|
||||
<li>AptitudeTerrible_Intellectual</li>
|
||||
<li>rjw_genes_featureless_chest</li>
|
||||
<li>rjw_genes_worker</li>
|
||||
<li>rjw_genes_zealous_loyalty</li>
|
||||
</workerGenes>
|
||||
</RJW_Genes.QueenWorkerMappingDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,158 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<ScenarioDef>
|
||||
<defName>rjw_genes_scenario_halamyr_hive</defName>
|
||||
<label>Halamyr Hive</label>
|
||||
<description>A young queen set out to build a new hive. After a long path, a suitable place is found to generate new offspring. DEVNOTE: Try to choose a high-food biome to keep up with the Hive!</description>
|
||||
<scenario>
|
||||
<summary>A Halamyr queen set out to build a new hive.</summary>
|
||||
<playerFaction>
|
||||
<def>PlayerFaction</def>
|
||||
<factionDef>PlayerTribe</factionDef>
|
||||
</playerFaction>
|
||||
<parts>
|
||||
|
||||
|
||||
<!-- Config pages -->
|
||||
<li Class="ScenPart_ConfigPage_ConfigureStartingPawns_Xenotypes">
|
||||
<def>ConfigurePawnsXenotypes</def>
|
||||
<pawnChoiceCount>4</pawnChoiceCount>
|
||||
<customSummary>Start with a set of Halamyr Xenotypes and one other colonist of any age.</customSummary>
|
||||
|
||||
<xenotypeCounts>
|
||||
<li>
|
||||
<xenotype>rjw_genes_halamyr_queen_xenotype</xenotype>
|
||||
<count>1</count>
|
||||
<description>non-baby halamyr queen</description>
|
||||
<requiredAtStart>true</requiredAtStart>
|
||||
<allowedDevelopmentalStages>Adult</allowedDevelopmentalStages>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<xenotype>rjw_genes_halamyr_hiveguard_xenotype</xenotype>
|
||||
<count>1</count>
|
||||
<description>non-baby halamyr hiveguard</description>
|
||||
<requiredAtStart>true</requiredAtStart>
|
||||
<allowedDevelopmentalStages>Adult</allowedDevelopmentalStages>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<xenotype>rjw_genes_halamyr_breeder_xenotype</xenotype>
|
||||
<count>1</count>
|
||||
<description>adulthalamyr breeder</description>
|
||||
<requiredAtStart>true</requiredAtStart>
|
||||
<allowedDevelopmentalStages>Adult</allowedDevelopmentalStages>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<xenotype>Baseliner</xenotype>
|
||||
<count>2</count>
|
||||
</li>
|
||||
</xenotypeCounts>
|
||||
</li>
|
||||
|
||||
<!-- Player starting stuff spawn method-->
|
||||
<li Class="ScenPart_PlayerPawnsArriveMethod">
|
||||
<def>PlayerPawnsArriveMethod</def>
|
||||
<method>Standing</method>
|
||||
</li>
|
||||
|
||||
<!-- Player pawns modifiers -->
|
||||
<li Class="ScenPart_ForcedHediff">
|
||||
<def>ForcedHediff</def>
|
||||
<visible>false</visible>
|
||||
<context>PlayerStarter</context>
|
||||
<chance>0.5</chance>
|
||||
<hediff>Malnutrition</hediff>
|
||||
<severityRange>0.1~0.2</severityRange>
|
||||
</li>
|
||||
<li Class="ScenPart_SetNeedLevel">
|
||||
<def>SetNeedLevel</def>
|
||||
<visible>false</visible>
|
||||
<context>PlayerStarter</context>
|
||||
<chance>1.0</chance>
|
||||
<need>Food</need>
|
||||
<levelRange>0.3~0.8</levelRange>
|
||||
</li>
|
||||
|
||||
<!-- Player starting things -->
|
||||
<li Class="ScenPart_StartingThing_Defined">
|
||||
<def>StartingThing_Defined</def>
|
||||
<thingDef>Silver</thingDef>
|
||||
<count>300</count>
|
||||
</li>
|
||||
<li Class="ScenPart_StartingThing_Defined">
|
||||
<def>StartingThing_Defined</def>
|
||||
<thingDef>Pemmican</thingDef>
|
||||
<count>350</count>
|
||||
</li>
|
||||
<li Class="ScenPart_StartingThing_Defined">
|
||||
<def>StartingThing_Defined</def>
|
||||
<thingDef>InsectJelly</thingDef>
|
||||
<count>300</count>
|
||||
</li>
|
||||
<li Class="ScenPart_StartingThing_Defined">
|
||||
<def>StartingThing_Defined</def>
|
||||
<thingDef>MedicineHerbal</thingDef>
|
||||
<count>30</count>
|
||||
</li>
|
||||
<li Class="ScenPart_StartingThing_Defined">
|
||||
<def>StartingThing_Defined</def>
|
||||
<thingDef>MeleeWeapon_Club</thingDef>
|
||||
<stuff>WoodLog</stuff>
|
||||
</li>
|
||||
|
||||
<li Class="ScenPart_StartingAnimal">
|
||||
<def>StartingAnimal</def>
|
||||
<animalKind>Spelopede</animalKind>
|
||||
<count>2</count>
|
||||
</li>
|
||||
<li Class="ScenPart_StartingAnimal">
|
||||
<def>StartingAnimal</def>
|
||||
<animalKind>Megascarab</animalKind>
|
||||
<count>3</count>
|
||||
<bondToRandomPlayerPawnChance>1.0</bondToRandomPlayerPawnChance>
|
||||
</li>
|
||||
|
||||
<li Class="ScenPart_StartingAnimal">
|
||||
<def>StartingAnimal</def>
|
||||
<animalKind>Megaspider</animalKind>
|
||||
<count>1</count>
|
||||
</li>
|
||||
|
||||
<!-- Scatter some things near player start -->
|
||||
<li Class="ScenPart_ScatterThingsNearPlayerStart">
|
||||
<def>ScatterThingsNearPlayerStart</def>
|
||||
<thingDef>WoodLog</thingDef>
|
||||
<count>500</count>
|
||||
</li>
|
||||
<li Class="ScenPart_ScatterThingsNearPlayerStart">
|
||||
<def>ScatterThingsNearPlayerStart</def>
|
||||
<thingDef>Jade</thingDef>
|
||||
<count>100</count>
|
||||
</li>
|
||||
|
||||
<li Class="ScenPart_ScatterThingsNearPlayerStart">
|
||||
<def>ScatterThingsNearPlayerStart</def>
|
||||
<thingDef>Pemmican</thingDef>
|
||||
<count>150</count>
|
||||
</li>
|
||||
<li Class="ScenPart_ScatterThingsNearPlayerStart">
|
||||
<def>ScatterThingsNearPlayerStart</def>
|
||||
<thingDef>Steel</thingDef>
|
||||
<count>200</count>
|
||||
</li>
|
||||
|
||||
<!-- Game start dialog -->
|
||||
<li Class="ScenPart_GameStartDialog">
|
||||
<def>GameStartDialog</def>
|
||||
<text>After a long journey, this is it: \n\nThis is the right place to start the new hive. Spin in your breeders, build your defenses and start mating.\n\nMake this a place worthy for a queen.</text>
|
||||
<closeSound>GameStartSting</closeSound>
|
||||
</li>
|
||||
|
||||
</parts>
|
||||
</scenario>
|
||||
</ScenarioDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,102 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<Defs>
|
||||
|
||||
<ThoughtDef>
|
||||
<!-- For Challenged Queens -->
|
||||
<defName>rjw_genes_rival_queen_mood</defName>
|
||||
<workerClass>RJW_Genes.Thoughtworker_RivalQueen_Mood</workerClass>
|
||||
<validWhileDespawned>false</validWhileDespawned>
|
||||
<stages>
|
||||
<li>
|
||||
<label>Rivaled</label>
|
||||
<description>There is another queen nearby!</description>
|
||||
<baseMoodEffect>-70</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<!-- For Challenged Queens -->
|
||||
<defName>rjw_genes_rival_queen_social</defName>
|
||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||
<workerClass>RJW_Genes.Thoughtworker_RivalQueen_Social</workerClass>
|
||||
<stages>
|
||||
<li>
|
||||
<label>rivals me</label>
|
||||
<description>{0} threatens my dominion. {0} must be perished.</description>
|
||||
<baseOpinionOffset>-130</baseOpinionOffset>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>rjw_genes_queen_despises_workers_social</defName>
|
||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||
<workerClass>RJW_Genes.ThoughtWorker_WorkerDespised_Social</workerClass>
|
||||
<stages>
|
||||
<li>
|
||||
<label>underling</label>
|
||||
<description>those workers are not even worth a glance.</description>
|
||||
<baseOpinionOffset>-20</baseOpinionOffset>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<!-- For Loyal Pawns -->
|
||||
<defName>rjw_genes_multiple_queens_mood</defName>
|
||||
<workerClass>RJW_Genes.Thoughtworker_MultipleQueens_Mood</workerClass>
|
||||
<validWhileDespawned>false</validWhileDespawned>
|
||||
<stages>
|
||||
<li>
|
||||
<label>Confused Servitude</label>
|
||||
<description>I have too many queens around me!</description>
|
||||
<baseMoodEffect>-30</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<!-- For Loyal Pawns -->
|
||||
<defName>rjw_genes_queen_loyalty_social</defName>
|
||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||
<workerClass>RJW_Genes.Thoughtworker_QueenPresent_Social</workerClass>
|
||||
<stages>
|
||||
<li>
|
||||
<label>Worship</label>
|
||||
<description>{0} is my queen. My one and only reason to live.</description>
|
||||
<baseOpinionOffset>+80</baseOpinionOffset>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<!-- For Loyal Pawns -->
|
||||
<defName>rjw_genes_no_queen_mood</defName>
|
||||
<workerClass>RJW_Genes.Thoughtworker_QueenAbsent_Mood</workerClass>
|
||||
<validWhileDespawned>false</validWhileDespawned>
|
||||
<stages>
|
||||
<li>
|
||||
<label>Missing Queen</label>
|
||||
<description>We do not have a queen! How are we suppossed to face the cruelties of the world without a shepherd?</description>
|
||||
<baseMoodEffect>-20</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<!-- For Loyal Pawns -->
|
||||
<defName>rjw_genes_queen_present_mood</defName>
|
||||
<workerClass>RJW_Genes.Thoughtworker_QueenPresent_Mood</workerClass>
|
||||
<validWhileDespawned>false</validWhileDespawned>
|
||||
<stages>
|
||||
<li>
|
||||
<label>Queen Present</label>
|
||||
<description>Our queen is so wonderful.</description>
|
||||
<baseMoodEffect>+10</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<Defs>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>rjw_genes_pheromone_carrier_nearby</defName>
|
||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||
<workerClass>RJW_Genes.ThoughtWorker_Aphrodisiac_Pheromones_Social</workerClass>
|
||||
<stages>
|
||||
<li>
|
||||
<label>Pheromones</label>
|
||||
<description>{0} has a special vibe, we should hang out more often.</description>
|
||||
<baseOpinionOffset>+3</baseOpinionOffset>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<TipSetDef>
|
||||
<defName>RJWGenesTips</defName>
|
||||
<tips>
|
||||
|
||||
<li TKey="SuccubusArrival">Succubi and Incubi can spawn at a rare event when a horny pawn is sleeping alone in the night.</li>
|
||||
|
||||
<li TKey="CumazoneCockbite">Cumazones need to regularly bite of cocks. This hunger can be stilled by animals - but they will need much more this way!</li>
|
||||
|
||||
<li TKey="SuccubusDrain">Succubi drain Fertilin through sex. The drained pawn will give less Fertilin in consequent acts until they are recovered.</li>
|
||||
|
||||
<li TKey="IncubusDrain">Incubi 'tap' pawns they have sex with to gain fertilin. Incubi cannot gain further Fertilin this way until the pawn is fully recovered.</li>
|
||||
|
||||
<li TKey="XenotypeMaintenance">The Xenotypes added by RJW_Genes require a lot of human resources - have yourself a big colony or lots of prisoners before you keep their company!</li>
|
||||
|
||||
<li TKey="SuccubusCost">Succubi receive their fertilin from cum. Make sure to have enough juice around to keep them happy.</li>
|
||||
|
||||
<li TKey="CumeaterCumflation">The gene 'cumeater' allows you to drain cumflation by cunnilingus. ... Cool, huh?</li>
|
||||
|
||||
<li TKey="BestialityGeneInheritance">Some animals carry rare genes - you can try to breed them and create your own super-hybrids! (No warranty provided for cat girls or genetic waste)</li>
|
||||
|
||||
<li TKey="BestialityGeneSettings">The Settings for Animal-Gene Inheritance are distributed between RJW-Pregnancy-Settings and their own Mod-Options.</li>
|
||||
|
||||
</tips>
|
||||
</TipSetDef>
|
||||
|
||||
</Defs>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<LanguageData>
|
||||
|
||||
<StatsReport_QueenCloseBy>queen in proximity</StatsReport_QueenCloseBy>
|
||||
<StatsReport_QueenAbsent>queen absent</StatsReport_QueenAbsent>
|
||||
<StatsReport_MultipleQueens>multiple queens present</StatsReport_MultipleQueens>
|
||||
|
||||
</LanguageData>
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LanguageData>
|
||||
|
||||
<rjw_genes_queenbirth_letter_label>New Queen</rjw_genes_queenbirth_letter_label>
|
||||
<rjw_genes_queenbirth_letter_description>A new Queen was born! Make sure to adress inheritance before the new queen reaches adolesence.</rjw_genes_queenbirth_letter_description>
|
||||
|
||||
</LanguageData>
|
||||
|
|
@ -1,131 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Patch>
|
||||
<Operation Class="PatchOperationSequence">
|
||||
<operations>
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_Fleetkind"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_slime_genitalia</li>
|
||||
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_Helixien"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_slime_genitalia</li>
|
||||
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_Taukai"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_sexual_mytosis</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_MindDevourer"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
<li>rjw_genes_sex_age_drain</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_Lapis"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_big_breasts</li>
|
||||
<li>rjw_genes_no_cum</li>
|
||||
<li>rjw_genes_big_male_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_Efreet"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
<li>rjw_genes_small_breasts</li>
|
||||
<li>rjw_genes_tight_female_genitalia</li>
|
||||
<li>rjw_genes_tight_anus</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_Drakonori"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_dragon_genitalia</li>
|
||||
<li>rjw_genes_big_male_genitalia</li>
|
||||
<li>rjw_genes_aphrodisiac_pheromones</li>
|
||||
<li>rjw_genes_big_breasts</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_Animusen"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_canine_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Alpha Genes</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Vanilla Races Expanded - Sanguophage</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="AG_Malachai"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
</operations>
|
||||
</Operation>
|
||||
</Patch>
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Patch>
|
||||
<Operation Class="PatchOperationSequence">
|
||||
<operations>
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Vanilla Races Expanded - Phytokin</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="VRE_Poluxkin"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_tight_female_genitalia</li>
|
||||
<li>rjw_genes_tight_anus</li>
|
||||
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
|
||||
<li>rjw_genes_bisexual</li>
|
||||
</value>
|
||||
</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 MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
|
||||
<li>rjw_genes_bisexual</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li 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 MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
|
||||
<li>rjw_genes_bisexual</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
</operations>
|
||||
</Operation>
|
||||
</Patch>
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Patch>
|
||||
<Operation Class="PatchOperationSequence">
|
||||
<operations>
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Vanilla Races Expanded - Sanguophage</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="VRE_Bruxa"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Vanilla Races Expanded - Sanguophage</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="VRE_Ekkimian"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Vanilla Races Expanded - Sanguophage</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="VRE_Strigoi"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
</operations>
|
||||
</Operation>
|
||||
</Patch>
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Patch>
|
||||
<Operation Class="PatchOperationSequence">
|
||||
<operations>
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>[LTS]Xenotech</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="LTS_Nyankind"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_feline_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>[LTS]Xenotech</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="LTS_Growler"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_canine_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>[LTS]Xenotech</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="LTS_Elfin"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_small_male_genitalia</li>
|
||||
<li>rjw_genes_tight_female_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>[LTS]Xenotech</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="LTS_Ork"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_big_male_genitalia</li>
|
||||
<li>rjw_genes_loose_female_genitalia</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>[LTS]Xenotech</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationAdd">
|
||||
<xpath>Defs/XenotypeDef[defName="LTS_Lilime"]/genes</xpath>
|
||||
<value>
|
||||
<li>rjw_genes_demonic_genitalia</li>
|
||||
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
|
||||
<li MayRequire="rjw.sexperience">AptitudeRemarkable_Sex</li>
|
||||
</value>
|
||||
</match>
|
||||
</li>
|
||||
</operations>
|
||||
</Operation>
|
||||
</Patch>
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
# RJW-Genes [NSFW]
|
||||
|
||||
This mod adds genes related and based on RJW to Rimworld.
|
||||
|
||||
## Current Features
|
||||
|
||||
- Different Genitalia Types
|
||||
- Genitalia Size Scaling
|
||||
- Extra Genitalia (and a Futa Attempt)
|
||||
- Most RJW Traits, Cumflation Immunity, Elasticity
|
||||
- Cum-Amount Changes, Transfer Nutrition Boosts
|
||||
- Mech Breeding / Insect Breeding Additions & Orgasmic Mytosis
|
||||
- Human-Animal Gene Inheritance merged from [Shabakur](https://github.com/Shabakur/RJW_Animal_Gene_Inheritance)
|
||||
- Succubi, Incubi & Cumazones that utilize Fertilin, similar to Hemogen
|
||||
- Insect-Caste Mechanics, with Queens, Drones and Workers and a conditional reproduction
|
||||
- Patches for some popular / common Xenotypes from other Mods.
|
||||
|
||||
See [planned things](TODOS.md) and feel free to contribute.
|
||||
With the Human-Animal-Gene Inheritance we have a lot of XML that you can contribute!
|
||||
We have a [template](./Common/Defs/RaceGeneDefs/RaceGeneDefs_template.xml) and you can add animals and/or genes from mods there (Racegroups are base-rjw).
|
||||
If you want to make your own Hive-Xenotypes, please see the required XMLs at [Changelog - 1.2](./CHANGELOG.md).
|
||||
|
||||
## Bugs?
|
||||
|
||||
I never wrote a bug in my life but if you found one please open an issue or find me somewhere on the RJW Discord.
|
||||
|
||||
Please consider looking at [the known bugs](./KNOWN_BUGS.md)
|
||||
|
||||
## Genes vs. Races
|
||||
|
||||
I currently don't use Races after Biotech was introduced.
|
||||
One of the main motivations was to have genes being added to the xenotypes that other mods and the base game add, e.g. adding demonic penis for impids.
|
||||
|
||||
Some HAR races change sex-ages and behave unfriendly with this mod.
|
||||
You can make reports about that, but I might not fix it.
|
||||
|
||||
## Load Order, Dependencies and Conflicts
|
||||
|
||||
Please load this after any mod adding genes, and after the used RJW-Mods (Licentia, Sexperience).
|
||||
|
||||
**Conflicts:**
|
||||
1. Should not be used with the original RJW_Animal_Gene_Inheritance anymore.
|
||||
2. There was an issue with other "Male-Only / Female-Only" Mods --- for which we provide our own Genes now.
|
||||
3. CAI5000 will not crash, but will make *Seduce*-Ability fail. I think same goes for Combat Extended.
|
||||
4. Alpha Genes "Female / Male Only" Genes might overwrite later Genitalia-Changes and should be avoided in combination with RJW-Genes features.
|
||||
5. rjw.sexperience.cumgenes removes fertilin-gain from Cum item - I hope I addressed this by adding a load order but keep me posted (Issue #41)
|
||||
6. [Consistent Gene Inheritance](https://steamcommunity.com/sharedfiles/filedetails/?id=2881479142&searchtext=Consistent+Gene+Inheritance) alters inheritance - it messes a bit with the Insect-Caste Logic. Your game will not crash, but the insect xenotypes will be a bit messed up.
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using HarmonyLib;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_BGS
|
||||
{
|
||||
[HarmonyPatch(typeof(Hediff_BasePregnancy), "Initialize")]
|
||||
public static class Patch_RJW_BestialityPregnancyUtility
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
public static void AddGenes(Pawn mother, Pawn dad, ref Hediff_BasePregnancy __instance)
|
||||
{
|
||||
if (!RJW_BGSSettings.rjw_bgs_enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach (Pawn baby in __instance.babies)
|
||||
{
|
||||
if (baby.RaceProps.Humanlike)
|
||||
{
|
||||
if (baby.genes == null)
|
||||
{
|
||||
baby.genes = new Pawn_GeneTracker(baby);
|
||||
}
|
||||
|
||||
|
||||
//Remove the hair and skin genes pawns always start with, should get correct ones from human parent anyway.
|
||||
for (int i = baby.genes.Endogenes.Count - 1; i >= 0; i--)
|
||||
{
|
||||
baby.genes.RemoveGene(baby.genes.Endogenes[i]);
|
||||
}
|
||||
|
||||
List<GeneDef> humangenes = PregnancyUtility.GetInheritedGenes(dad, mother);
|
||||
List<GeneDef> beastgenes = InheritanceUtility.AnimalInheritedGenes(dad, mother);
|
||||
InheritanceUtility.AddGenes(baby, beastgenes);
|
||||
InheritanceUtility.AddGenes(baby, humangenes);
|
||||
|
||||
// The mix-breed babies should be labelled hybrids
|
||||
baby.genes.hybrid = true;
|
||||
baby.genes.xenotypeName = "Hybrid";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RJW_BGS
|
||||
{
|
||||
public class RJW_BGSSettings : ModSettings
|
||||
{
|
||||
public static void DoWindowContents(Rect inRect)
|
||||
{
|
||||
//Copied from RJW settings mostly
|
||||
Rect outRect = new Rect(0f, 30f, inRect.width, inRect.height - 30f);
|
||||
Rect rect = new Rect(0f, 0f, inRect.width - 16f, inRect.height + 300f);
|
||||
//Widgets.BeginScrollView(outRect, ref RJWSettings.scrollPosition, rect, true);
|
||||
Listing_Standard listing_Standard = new Listing_Standard();
|
||||
listing_Standard.maxOneColumn = true;
|
||||
listing_Standard.ColumnWidth = rect.width / 2.05f;
|
||||
listing_Standard.Begin(rect);
|
||||
listing_Standard.Gap(24f);
|
||||
listing_Standard.CheckboxLabeled("enabled", ref rjw_bgs_enabled, "If toggled, Animal Pregnancies will try inherit genes.", 0f, 1f);
|
||||
//listing_Standard.CheckboxLabeled("sexfrenzy", ref sexfrenzy, "disable the effects", 0f, 1f);
|
||||
listing_Standard.Gap(5f);
|
||||
listing_Standard.Label("gene inheritance chance"+ ": " +
|
||||
Math.Round((double)(RJW_BGSSettings.rjw_bgs_global_gene_chance * 100f), 0).ToString() + "%", -1f, "modify chance for a gene to be inherited.");
|
||||
RJW_BGSSettings.rjw_bgs_global_gene_chance = listing_Standard.Slider(RJW_BGSSettings.rjw_bgs_global_gene_chance, 0f, 5f);
|
||||
listing_Standard.Gap(5f);
|
||||
listing_Standard.CheckboxLabeled("genes as xenogenes", ref rjw_bgs_animal_genes_as_xenogenes, "If toggled, animal genes will be added as xenogenes.", 0f, 1f);
|
||||
listing_Standard.Gap(5f);
|
||||
listing_Standard.CheckboxLabeled("detailed-debug", ref rjw_bgs_detailed_debug, "Adds detailed information to the log about pregnancies and genes.", 0f, 1f);
|
||||
listing_Standard.End();
|
||||
}
|
||||
|
||||
public override void ExposeData()
|
||||
{
|
||||
base.ExposeData();
|
||||
Scribe_Values.Look<bool>(ref RJW_BGSSettings.rjw_bgs_enabled, "rjw_bgs_enabled", RJW_BGSSettings.rjw_bgs_enabled, true);
|
||||
Scribe_Values.Look<float>(ref RJW_BGSSettings.rjw_bgs_global_gene_chance, "rjw_bgs_global_gene_chance", RJW_BGSSettings.rjw_bgs_global_gene_chance, true);
|
||||
Scribe_Values.Look<bool>(ref RJW_BGSSettings.rjw_bgs_animal_genes_as_xenogenes, "rjw_bgs_animal_genes_as_xenogenes", RJW_BGSSettings.rjw_bgs_animal_genes_as_xenogenes, true);
|
||||
Scribe_Values.Look<bool>(ref RJW_BGSSettings.rjw_bgs_detailed_debug, "rjw_bgs_detailed_debug", RJW_BGSSettings.rjw_bgs_detailed_debug, true);
|
||||
}
|
||||
|
||||
public static float rjw_bgs_global_gene_chance = 1f;
|
||||
public static bool rjw_bgs_enabled = true;
|
||||
public static bool rjw_bgs_animal_genes_as_xenogenes = false;
|
||||
public static bool rjw_bgs_detailed_debug = false;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
internal class ModLog
|
||||
{
|
||||
public static string ModId => "RJW-Genes";
|
||||
|
||||
/// <summary>
|
||||
/// Logs the given message with [SaveStorage.ModId] appended.
|
||||
/// </summary>
|
||||
public static void Error(string message)
|
||||
{
|
||||
Log.Error($"[{ModId}] {message}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs the given message with [SaveStorage.ModId] appended.
|
||||
/// </summary>
|
||||
public static void Message(string message)
|
||||
{
|
||||
Log.Message($"[{ModId}] {message}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs the given message with [SaveStorage.ModId] appended.
|
||||
/// </summary>
|
||||
public static void Warning(string message)
|
||||
{
|
||||
Log.Warning($"[{ModId}] {message}");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,118 +0,0 @@
|
|||
using RimWorld;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
namespace RJW_Genes
|
||||
{
|
||||
[DefOf]
|
||||
public static class GeneDefOf
|
||||
{
|
||||
public static readonly GeneCategoryDef rjw_genes_genitalia_type;
|
||||
public static readonly GeneCategoryDef rjw_genes_genitalia_size;
|
||||
public static readonly GeneCategoryDef rjw_genes_gender;
|
||||
public static readonly GeneCategoryDef rjw_genes_breeding;
|
||||
public static readonly GeneCategoryDef rjw_genes_damage;
|
||||
public static readonly GeneCategoryDef rjw_genes_special;
|
||||
|
||||
// Base Genitalia Types
|
||||
public static readonly GeneDef rjw_genes_equine_genitalia;
|
||||
public static readonly GeneDef rjw_genes_demonic_genitalia;
|
||||
public static readonly GeneDef rjw_genes_dragon_genitalia;
|
||||
public static readonly GeneDef rjw_genes_slime_genitalia;
|
||||
public static readonly GeneDef rjw_genes_ovipositor_genitalia;
|
||||
public static readonly GeneDef rjw_genes_feline_genitalia;
|
||||
public static readonly GeneDef rjw_genes_canine_genitalia;
|
||||
|
||||
// Extra Genitalia
|
||||
public static readonly GeneDef rjw_genes_extra_penis;
|
||||
public static readonly GeneDef rjw_genes_no_penis;
|
||||
public static readonly GeneDef rjw_genes_extra_vagina;
|
||||
public static readonly GeneDef rjw_genes_no_vagina;
|
||||
public static readonly GeneDef rjw_genes_extra_breasts;
|
||||
public static readonly GeneDef rjw_genes_no_breasts;
|
||||
public static readonly GeneDef rjw_genes_extra_anus;
|
||||
public static readonly GeneDef rjw_genes_no_anus;
|
||||
public static readonly GeneDef rjw_genes_futa;
|
||||
public static readonly GeneDef rjw_genes_featureless_chest;
|
||||
|
||||
// Genitalia Sizes
|
||||
public static readonly GeneDef rjw_genes_big_male_genitalia;
|
||||
public static readonly GeneDef rjw_genes_small_male_genitalia;
|
||||
public static readonly GeneDef rjw_genes_loose_female_genitalia;
|
||||
public static readonly GeneDef rjw_genes_tight_female_genitalia;
|
||||
public static readonly GeneDef rjw_genes_big_breasts;
|
||||
public static readonly GeneDef rjw_genes_small_breasts;
|
||||
public static readonly GeneDef rjw_genes_loose_anus;
|
||||
public static readonly GeneDef rjw_genes_tight_anus;
|
||||
public static readonly GeneDef rjw_genes_evergrowth;
|
||||
|
||||
// Gender
|
||||
public static readonly GeneDef rjw_genes_female_only;
|
||||
public static readonly GeneDef rjw_genes_male_only;
|
||||
public static readonly GeneDef rjw_genes_gender_fluid;
|
||||
|
||||
// Breeding
|
||||
public static readonly GeneDef rjw_genes_mechbreeder;
|
||||
public static readonly GeneDef rjw_genes_insectincubator;
|
||||
public static readonly GeneDef rjw_genes_insectbreeder;
|
||||
public static readonly GeneDef rjw_genes_zoophile;
|
||||
|
||||
// Cum
|
||||
public static readonly GeneDef rjw_genes_no_cum;
|
||||
public static readonly GeneDef rjw_genes_much_cum;
|
||||
public static readonly GeneDef rjw_genes_very_much_cum;
|
||||
[MayRequire("LustLicentia.RJWLabs")] public static readonly GeneDef rjw_genes_likes_cumflation;
|
||||
[MayRequire("LustLicentia.RJWLabs")] public static readonly GeneDef rjw_genes_cumflation_immunity;
|
||||
[MayRequire("LustLicentia.RJWLabs")] public static readonly GeneDef rjw_genes_generous_donor;
|
||||
|
||||
// Reproduction
|
||||
public static readonly GeneDef rjw_genes_hypersexual;
|
||||
public static readonly GeneDef rjw_genes_rapist;
|
||||
public static readonly GeneDef rjw_genes_homosexual;
|
||||
public static readonly GeneDef rjw_genes_bisexual;
|
||||
public static readonly GeneDef rjw_genes_no_sex_need;
|
||||
|
||||
// Damage & Side Effects
|
||||
[MayRequire("LustLicentia.RJWLabs")] public static readonly GeneDef rjw_genes_elasticity;
|
||||
public static readonly GeneDef rjw_genes_unbreakable;
|
||||
|
||||
// Special
|
||||
public static readonly GeneDef rjw_genes_orgasm_rush;
|
||||
public static readonly GeneDef rjw_genes_youth_fountain;
|
||||
public static readonly GeneDef rjw_genes_sex_age_drain;
|
||||
public static readonly GeneDef rjw_genes_aphrodisiac_pheromones;
|
||||
public static readonly GeneDef rjw_genes_sexual_mytosis;
|
||||
public static readonly GeneDef rjw_genes_hormonal_saliva;
|
||||
|
||||
// LifeForce
|
||||
public static readonly GeneDef rjw_genes_lifeforce;
|
||||
public static readonly GeneDef rjw_genes_pussyhealing;
|
||||
public static readonly GeneDef rjw_genes_lifeforce_drain;
|
||||
public static readonly GeneDef rjw_genes_cum_eater;
|
||||
public static readonly GeneDef rjw_genes_fertilin_absorber;
|
||||
public static readonly GeneDef rjw_genes_drainer;
|
||||
public static readonly GeneDef rjw_genes_seduce;
|
||||
public static readonly GeneDef rjw_genes_paralysingkiss;
|
||||
public static readonly GeneDef rjw_genes_cockeater;
|
||||
public static readonly GeneDef rjw_genes_lifeforce_empath;
|
||||
|
||||
// Cosmetic
|
||||
public static readonly GeneDef rjw_genes_succubus_tail;
|
||||
public static readonly GeneDef rjw_genes_succubus_wings;
|
||||
|
||||
// Hive
|
||||
public static readonly GeneDef rjw_genes_queen;
|
||||
public static readonly GeneDef rjw_genes_drone;
|
||||
public static readonly GeneDef rjw_genes_worker;
|
||||
public static readonly GeneDef rjw_genes_zealous_loyalty;
|
||||
public static readonly GeneDef rjw_genes_cocoonweaver;
|
||||
public static readonly GeneDef rjw_genes_spawn_spelopede;
|
||||
|
||||
|
||||
//Other Defs
|
||||
public static readonly XenotypeDef rjw_genes_succubus;
|
||||
public static readonly DutyDef rjw_genes_flirt;
|
||||
public static readonly MentalBreakDef rjw_genes_lifeforce_randomrape;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_MuchCum : RJW_Gene
|
||||
{
|
||||
bool has_been_fired = false;
|
||||
|
||||
float multiplier_much_cum = 3f;
|
||||
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
CumUtility.MultiplyFluidAmountBy(pawn, multiplier_much_cum);
|
||||
has_been_fired = true;
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
if (!has_been_fired) {
|
||||
CumUtility.MultiplyFluidAmountBy(pawn, multiplier_much_cum);
|
||||
has_been_fired = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override void PostRemove()
|
||||
{
|
||||
base.PostAdd();
|
||||
|
||||
if (has_been_fired)
|
||||
{
|
||||
CumUtility.MultiplyFluidAmountBy(pawn, 1/multiplier_much_cum);
|
||||
has_been_fired = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_NoCum : RJW_Gene
|
||||
{
|
||||
bool has_been_fired = false;
|
||||
|
||||
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
CumUtility.MultiplyFluidAmountBy(pawn, 0f);
|
||||
has_been_fired = true;
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
if (!has_been_fired) {
|
||||
CumUtility.MultiplyFluidAmountBy(pawn, 0f);
|
||||
has_been_fired = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override void PostRemove()
|
||||
{
|
||||
// Cum Removal does not do at the moment :/ I would need to safe the old cum amount but I don't want to at the moment
|
||||
base.PostAdd();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_VeryMuchCum : RJW_Gene
|
||||
{
|
||||
bool has_been_fired = false;
|
||||
|
||||
float multiplier_much_cum = 10f;
|
||||
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
CumUtility.MultiplyFluidAmountBy(pawn, multiplier_much_cum);
|
||||
has_been_fired = true;
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
if (!has_been_fired) {
|
||||
CumUtility.MultiplyFluidAmountBy(pawn, multiplier_much_cum);
|
||||
has_been_fired = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override void PostRemove()
|
||||
{
|
||||
base.PostAdd();
|
||||
|
||||
if (has_been_fired)
|
||||
{
|
||||
CumUtility.MultiplyFluidAmountBy(pawn, 1/multiplier_much_cum);
|
||||
has_been_fired = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
using LicentiaLabs;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// This Gene adds Licentia-Labs Elasticised Hediff to a Pawn.
|
||||
/// Note: I had a HarmonyPatch first, similar to skipping cumflation, but the Stretching Logic is called quite a lot and for both pawns actually.
|
||||
/// Hence, I think choosing the Elasticiced Hediff was good as then everything is covered by "Licentia-Logic".
|
||||
/// </summary>
|
||||
public class Gene_Elasticity : Gene
|
||||
{
|
||||
private const int RESET_INTERVAL = 60000; // 60k should be 1 day
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
// Doing it like this will add the hediff with a severity of ~0.5, but it will decay.
|
||||
// Hence we check with the Ticks to update.
|
||||
this.pawn.health.AddHediff(Licentia.HediffDefs.Elasticised);
|
||||
ResetSeverity();
|
||||
}
|
||||
|
||||
public override void Tick()
|
||||
{
|
||||
base.Tick();
|
||||
if (pawn.IsHashIntervalTick(RESET_INTERVAL))
|
||||
ResetSeverity();
|
||||
}
|
||||
|
||||
public override void PostRemove()
|
||||
{
|
||||
Hediff candidate = pawn.health.hediffSet.GetFirstHediffOfDef(Licentia.HediffDefs.Elasticised);
|
||||
if (candidate != null)
|
||||
{
|
||||
pawn.health.RemoveHediff(candidate);
|
||||
}
|
||||
base.PostRemove();
|
||||
}
|
||||
|
||||
|
||||
private void ResetSeverity(float severity = 0.7f)
|
||||
{
|
||||
Hediff candidate = pawn.health.hediffSet.GetFirstHediffOfDef(Licentia.HediffDefs.Elasticised);
|
||||
if (candidate != null)
|
||||
{
|
||||
candidate.Severity = severity;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
using RimWorld;
|
||||
using System.Linq;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_ExtraAnus : RJW_Gene
|
||||
{
|
||||
|
||||
internal Hediff additional_anus;
|
||||
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
// Some sources add Genes before they fire, e.g. Character Editor
|
||||
// This should harden the gene, to solve #19
|
||||
if (HasAlreadyTwoAnus())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (additional_anus == null)
|
||||
{
|
||||
CreateAndAddAnus();
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
|
||||
// Some sources add Genes before they fire, e.g. Character Editor
|
||||
// This should harden the gene, to solve #19
|
||||
if (HasAlreadyTwoAnus())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (additional_anus == null)
|
||||
{
|
||||
CreateAndAddAnus();
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostRemove()
|
||||
{
|
||||
base.PostRemove();
|
||||
if(additional_anus != null)
|
||||
pawn.health.RemoveHediff(additional_anus);
|
||||
}
|
||||
|
||||
internal void CreateAndAddAnus()
|
||||
{
|
||||
var correctGene = GenitaliaUtility.GetGenitaliaTypeGeneForPawn(pawn);
|
||||
var anusDef = GenitaliaUtility.GetAnusForGene(correctGene);
|
||||
var partBPR = Genital_Helper.get_anusBPR(pawn);
|
||||
additional_anus = HediffMaker.MakeHediff(anusDef, pawn);
|
||||
|
||||
var CompHediff = additional_anus.TryGetComp<rjw.HediffComp_SexPart>();
|
||||
if (CompHediff != null)
|
||||
{
|
||||
CompHediff.Init(pawn);
|
||||
CompHediff.UpdateSeverity();
|
||||
}
|
||||
|
||||
pawn.health.AddHediff(additional_anus, partBPR);
|
||||
}
|
||||
|
||||
internal bool HasAlreadyTwoAnus()
|
||||
{
|
||||
if (pawn == null)
|
||||
return false;
|
||||
|
||||
var possible_breasts =
|
||||
Genital_Helper.get_AllPartsHediffList(pawn).Where(t => Genital_Helper.is_anus(t));
|
||||
|
||||
return possible_breasts.Count() >= 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
using RimWorld;
|
||||
using System.Linq;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_ExtraBreasts : RJW_Gene
|
||||
{
|
||||
|
||||
internal Hediff additional_breasts;
|
||||
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
// Some sources add Genes before they fire, e.g. Character Editor
|
||||
// This should harden the gene, to solve #19
|
||||
if (HasAlreadyTwoBreasts())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Tits are only added for female pawns!
|
||||
if (GenderUtility.IsFemale(pawn) && additional_breasts == null)
|
||||
{
|
||||
CreateAndAddBreasts();
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
|
||||
// Some sources add Genes before they fire, e.g. Character Editor
|
||||
// This should harden the gene, to solve #19
|
||||
if (HasAlreadyTwoBreasts())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Tits are only added for female pawns!
|
||||
if (GenderUtility.IsFemale(pawn) && additional_breasts == null)
|
||||
{
|
||||
CreateAndAddBreasts();
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostRemove()
|
||||
{
|
||||
base.PostRemove();
|
||||
if(additional_breasts != null)
|
||||
pawn.health.RemoveHediff(additional_breasts);
|
||||
}
|
||||
|
||||
internal void CreateAndAddBreasts()
|
||||
{
|
||||
var correctGene = GenitaliaUtility.GetGenitaliaTypeGeneForPawn(pawn);
|
||||
var breastDef = GenitaliaUtility.GetBreastsForGene(correctGene);
|
||||
var partBPR = Genital_Helper.get_breastsBPR(pawn);
|
||||
additional_breasts = HediffMaker.MakeHediff(breastDef, pawn);
|
||||
|
||||
var CompHediff = additional_breasts.TryGetComp<rjw.HediffComp_SexPart>();
|
||||
if (CompHediff != null)
|
||||
{
|
||||
CompHediff.Init(pawn);
|
||||
CompHediff.UpdateSeverity();
|
||||
}
|
||||
|
||||
pawn.health.AddHediff(additional_breasts, partBPR);
|
||||
}
|
||||
|
||||
internal bool HasAlreadyTwoBreasts()
|
||||
{
|
||||
if (pawn == null)
|
||||
return false;
|
||||
|
||||
var possible_breasts =
|
||||
Genital_Helper.get_AllPartsHediffList(pawn).Where(t => t.def.defName.Contains("breast"));
|
||||
|
||||
return possible_breasts.Count() >= 2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Removes breasts for female (and trap, futa) pawns and adds Udders.
|
||||
/// Wished for in Issue #27.
|
||||
///
|
||||
/// TODO: Currently, the sexualizer over-writes the added udders and just adds another pair of breasts!
|
||||
/// I commented out the gene in .xml for now.
|
||||
/// </summary>
|
||||
public class Gene_UdderBreasts : RJW_Gene
|
||||
{
|
||||
|
||||
Hediff removed_breasts;
|
||||
Hediff added_udders;
|
||||
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
// Breasts are replaced for female,trap and futa pawns
|
||||
if ( removed_breasts == null
|
||||
&& (GenderUtility.IsFemale(pawn) || GenderHelper.GetSex(pawn) == GenderHelper.Sex.futa || GenderHelper.GetSex(pawn) == GenderHelper.Sex.trap)
|
||||
)
|
||||
{
|
||||
RemoveButStoreBreasts();
|
||||
AddUdders();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
|
||||
// Breasts are replaced for female,trap and futa pawns
|
||||
if (removed_breasts == null
|
||||
&& (GenderUtility.IsFemale(pawn) || GenderHelper.GetSex(pawn) == GenderHelper.Sex.futa || GenderHelper.GetSex(pawn) == GenderHelper.Sex.trap)
|
||||
)
|
||||
{
|
||||
RemoveButStoreBreasts();
|
||||
AddUdders();
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostRemove()
|
||||
{
|
||||
base.PostRemove();
|
||||
// Re-Add the old breasts
|
||||
if (removed_breasts != null)
|
||||
pawn.health.AddHediff(removed_breasts);
|
||||
if (added_udders != null)
|
||||
pawn.health.RemoveHediff(added_udders);
|
||||
}
|
||||
|
||||
internal void RemoveButStoreBreasts()
|
||||
{
|
||||
var partBPR = Genital_Helper.get_breastsBPR(pawn);
|
||||
Hediff breastsToRemove = Genital_Helper.get_AllPartsHediffList(pawn).FindLast(x => GenitaliaUtility.IsBreasts(x));
|
||||
|
||||
if (breastsToRemove != null)
|
||||
{
|
||||
removed_breasts = breastsToRemove;
|
||||
pawn.health.RemoveHediff(breastsToRemove);
|
||||
}
|
||||
}
|
||||
|
||||
internal void AddUdders()
|
||||
{
|
||||
BodyPartRecord bpr = Genital_Helper.get_uddersBPR(pawn);
|
||||
added_udders = pawn.health.AddHediff(Genital_Helper.udder_breasts, bpr);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class GenderFluidExtension : DefModExtension
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of ticks until the change can be triggered.
|
||||
/// Just being "triggered" does not mean changing, see the changeChance below.
|
||||
/// </summary>
|
||||
public int changeInterval;
|
||||
|
||||
/// <summary>
|
||||
/// How high is the chance to change gender?
|
||||
/// Set to 1 for "always", set to 0 for "never".
|
||||
/// Everything else is a bit statistics, but e.g. when set to .5 the chances grow per day from [50%, 75%, 82.25%, ...]
|
||||
/// </summary>
|
||||
public float changeChance;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
using RimWorld;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class GenderUtility
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns if a Pawn is female (Gender==Female) or if it should be (Gene==FemaleOnly)
|
||||
/// This is used as a small helper, as the genes might fire in different orders.
|
||||
/// </summary>
|
||||
public static bool IsFemale(Pawn pawn)
|
||||
{
|
||||
return
|
||||
pawn.gender == Gender.Female || pawn.genes.GenesListForReading.Any(gene => gene.def.defName.EqualsIgnoreCase(GeneDefOf.rjw_genes_female_only.defName));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns if a Pawn is male (Gender==Male) or if it should be (Gene==MaleOnly)
|
||||
/// This is used as a small helper, as the genes might fire in different orders.
|
||||
/// </summary>
|
||||
public static bool IsMale(Pawn pawn)
|
||||
{
|
||||
return
|
||||
pawn.gender == Gender.Male || pawn.genes.GenesListForReading.Any(gene => gene.def.defName.EqualsIgnoreCase(GeneDefOf.rjw_genes_male_only.defName));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adjusts the Body Type to match the given target gender.
|
||||
/// This is only for "drawing" attributes of the pawn, the genitalia are untouched at this point.
|
||||
/// (for male and female only, baby,child and hulks don't change)
|
||||
/// </summary>
|
||||
/// <param name="pawn"></param>
|
||||
/// <param name="targetGender"></param>
|
||||
public static void AdjustBodyToTargetGender(Pawn pawn, Gender targetGender)
|
||||
{
|
||||
if (pawn == null)
|
||||
return;
|
||||
if (pawn.story.bodyType == BodyTypeDefOf.Baby || pawn.story.bodyType == BodyTypeDefOf.Hulk || pawn.story.bodyType == BodyTypeDefOf.Child)
|
||||
return;
|
||||
|
||||
if (targetGender == Gender.Male)
|
||||
{
|
||||
pawn.story.bodyType = BodyTypeDefOf.Male;
|
||||
}
|
||||
else if (targetGender == Gender.Female)
|
||||
{
|
||||
pawn.story.bodyType = BodyTypeDefOf.Female;
|
||||
pawn.style.beardDef = BeardDefOf.NoBeard;
|
||||
}
|
||||
|
||||
// Re-Choose heads if it is wrong gender
|
||||
if (pawn.story.headType.gender == Gender.None || pawn.story.headType.gender == targetGender)
|
||||
{
|
||||
// Do nothing, Gender of Heat is Neutral or matches
|
||||
}
|
||||
else
|
||||
{
|
||||
// Below line tries to get (and set) an available head from the backstory, if it returns true everything worked if it returns false we log it
|
||||
if(! pawn.story.TryGetRandomHeadFromSet(DefDatabase<HeadTypeDef>.AllDefs.Where((Func<HeadTypeDef, bool>)(x => x.randomChosen))))
|
||||
{
|
||||
Log.Message("Failed to retrieve a correct-gender head for the pawn " + pawn.Name);
|
||||
};
|
||||
}
|
||||
|
||||
// Force Redraw at the spot
|
||||
pawn.Drawer.renderer.graphics.SetAllGraphicsDirty();
|
||||
}
|
||||
|
||||
// Fetch these once at load time because they don't change inside RJW
|
||||
private static readonly List<HediffDef> wasSexThoughts = Traverse.Create(typeof(GenderHelper)).Field("old_sex_list").GetValue<List<HediffDef>>();
|
||||
private static readonly List<HediffDef> sexChangeThoughts = Traverse.Create(typeof(GenderHelper)).Field("SexChangeThoughts").GetValue<List<HediffDef>>();
|
||||
|
||||
/// <summary>
|
||||
/// This method removes all RJW-Sexchange-Hediffs from the pawn.
|
||||
/// It used with the RJW_Gene.Notify_OnPawnGeneration() to check for pawns on spawn.
|
||||
///
|
||||
/// Fixes Issue #32, where pawns that spawn fresh with a "all female" gene may have m2f thoughts.
|
||||
/// </summary>
|
||||
/// <param name="pawn">The pawn that needs to have SexChange-Thoughts removed.</param>
|
||||
public static void RemoveAllSexChangeThoughts(Pawn pawn)
|
||||
{
|
||||
// Shouldn't ever be true in the normal case, but this stops someone from calling this with an incorrect setup
|
||||
if (pawn?.health == null)
|
||||
return;
|
||||
|
||||
if(wasSexThoughts == null || sexChangeThoughts == null || !wasSexThoughts.Any() || !sexChangeThoughts.Any())
|
||||
{
|
||||
Log.Warning($"Couldn't get values from RJW.\nold_sex_list: {wasSexThoughts.ToStringSafeEnumerable()}\nSexChangeThoughts: {sexChangeThoughts.ToStringSafeEnumerable()}");
|
||||
return;
|
||||
}
|
||||
|
||||
foreach(var def in wasSexThoughts.Concat(sexChangeThoughts))
|
||||
{
|
||||
var hediff = pawn.health.hediffSet.GetFirstHediffOfDef(def);
|
||||
if (hediff != null)
|
||||
pawn.health.RemoveHediff(hediff);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_FemaleOnly : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
AdjustPawnToFemale();
|
||||
// Here we call Sexualization after the Sex-Change
|
||||
if (GenitaliaUtility.PawnStillNeedsGenitalia(pawn))
|
||||
Sexualizer.sexualize_pawn(pawn);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostMake();
|
||||
AdjustPawnToFemale();
|
||||
}
|
||||
|
||||
private void AdjustPawnToFemale()
|
||||
{
|
||||
// Here we really use the Gender.Female and not our helper IsFemale(pawn)
|
||||
if (pawn.gender == Gender.Female)
|
||||
return;
|
||||
else
|
||||
{
|
||||
GenderHelper.ChangeSex(pawn, () => {
|
||||
pawn.gender = Gender.Female;
|
||||
GenitaliaChanger.RemoveAllGenitalia(pawn);
|
||||
Sexualizer.sexualize_pawn(pawn);
|
||||
});
|
||||
GenderUtility.AdjustBodyToTargetGender(pawn, Gender.Female);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Notify_OnPawnGeneration()
|
||||
{
|
||||
base.Notify_OnPawnGeneration();
|
||||
// If this is Pawn generation, then we can assume that the pawn was never any gender other than female, so they shouldn't have sex change thoughts. (Issue #32)
|
||||
GenderUtility.RemoveAllSexChangeThoughts(pawn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,276 +0,0 @@
|
|||
using HarmonyLib;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
|
||||
/*
|
||||
* Once per day (or slightly different per configuration) checks if the pawn changes gender.
|
||||
* At the triggered tick, there is a random chance to change gender.
|
||||
* This will swap genitalia, appearance and breasts.
|
||||
*
|
||||
* For some situations, the pawn better not change genitalia, e.g. while having vaginal sex. This would throw errors.
|
||||
* For these cases a check is implemented, and if there was a block the change happens a bit later when "unblocked".
|
||||
*
|
||||
* TODO: Keep pregnancies.
|
||||
* The pregnancies remove their things on Tick at the end, which kills it for male pawns.
|
||||
* This seems to be an upstream RJW thing, but needs a bit of investigation.
|
||||
*/
|
||||
public class Gene_GenderFluid : RJW_Gene
|
||||
{
|
||||
|
||||
//public const int CHANGE_INTERVAL_FALLBACK = 1000; // Test value for Quick Trials
|
||||
const int CHANGE_INTERVAL_FALLBACK = 60000; // 60k == 1 day
|
||||
const float SWITCH_CHANCE_FALLBACK = 0.25f;
|
||||
|
||||
int change_interval;
|
||||
float switch_chance;
|
||||
|
||||
List<Hediff> storedBreasts = new List<Hediff>();
|
||||
|
||||
private bool sexChangeWasBlocked = false;
|
||||
|
||||
public Gene_GenderFluid() : base() {
|
||||
GenderFluidExtension genderFluidExt = GeneDefOf.rjw_genes_gender_fluid.GetModExtension<GenderFluidExtension>();
|
||||
change_interval = genderFluidExt?.changeInterval ?? CHANGE_INTERVAL_FALLBACK;
|
||||
switch_chance = genderFluidExt?.changeChance ?? SWITCH_CHANCE_FALLBACK;
|
||||
}
|
||||
|
||||
public override void Tick()
|
||||
{
|
||||
base.Tick();
|
||||
|
||||
// Case 1: We had a blocked SexChange, now Pawn is free, apply sexchange a bit delayed.
|
||||
if (pawn.IsHashIntervalTick(1500) && sexChangeWasBlocked && !SexChangeBlocked(pawn)){
|
||||
ChangeSex();
|
||||
sexChangeWasBlocked = false;
|
||||
}
|
||||
// Case 2: Check every interval if the Chance triggers
|
||||
else if (pawn.IsHashIntervalTick(change_interval) && (new Random()).NextDouble() < switch_chance)
|
||||
{
|
||||
|
||||
// Case 2.A) SexChange was blocked, postpone it
|
||||
if (SexChangeBlocked(pawn))
|
||||
{
|
||||
sexChangeWasBlocked |= true;
|
||||
return;
|
||||
}
|
||||
// Case 2.B) Nothing blocking, change the sex.
|
||||
else { ChangeSex();}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ChangeSex()
|
||||
{
|
||||
if (rjw.Genital_Helper.is_futa(pawn))
|
||||
{
|
||||
// Handle Futa Pawns - Keep Genitalia as is, just change RW Gender
|
||||
pawn.gender = pawn.gender == Gender.Male? Gender.Female: Gender.Male;
|
||||
}
|
||||
// Handle Non-Futas - Change Genitalia and Store breasts.
|
||||
else
|
||||
{
|
||||
if (pawn.gender == Gender.Female)
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"genderfluid pawn {pawn} is changing from female to male");
|
||||
SwitchToMale();
|
||||
}
|
||||
else if (pawn.gender == Gender.Male)
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"genderfluid pawn {pawn} is changing from male to female");
|
||||
SwitchToFemale();
|
||||
}
|
||||
}
|
||||
GenderUtility.RemoveAllSexChangeThoughts(pawn);
|
||||
}
|
||||
|
||||
private void SwitchToFemale()
|
||||
{
|
||||
// Change Drawing
|
||||
GenderUtility.AdjustBodyToTargetGender(pawn, Verse.Gender.Female);
|
||||
// Change Gender
|
||||
pawn.gender = Verse.Gender.Female;
|
||||
|
||||
// Switch Penisses to Vaginas
|
||||
var genitalsToRemove = pawn.GetGenitalsList().FindAll(g => Genital_Helper.is_penis(g) || Genital_Helper.is_vagina(g));
|
||||
foreach (var genital in genitalsToRemove)
|
||||
{
|
||||
var genitaliaHediffDef = GenitaliaUtility.GetVaginaForGene(GenitaliaUtility.GetGenitaliaTypeGeneForPawn(pawn));
|
||||
float size = genital.Severity;
|
||||
pawn.health.RemoveHediff(genital);
|
||||
|
||||
var newVagina = HediffMaker.MakeHediff(genitaliaHediffDef, pawn, Genital_Helper.get_genitalsBPR(pawn));
|
||||
pawn.health.AddHediff(newVagina);
|
||||
newVagina.Severity = size;
|
||||
}
|
||||
|
||||
SwitchBreasts();
|
||||
}
|
||||
|
||||
private void SwitchToMale()
|
||||
{
|
||||
// Change Drawing
|
||||
GenderUtility.AdjustBodyToTargetGender(pawn, Verse.Gender.Male);
|
||||
// Change Gender
|
||||
pawn.gender = Verse.Gender.Male;
|
||||
|
||||
// Switch Vaginas to Penisses
|
||||
var genitalsToRemove = pawn.GetGenitalsList().FindAll(g => Genital_Helper.is_penis(g) || Genital_Helper.is_vagina(g));
|
||||
foreach (var genital in genitalsToRemove)
|
||||
{
|
||||
var genitaliaHediffDef = GenitaliaUtility.GetPenisForGene(GenitaliaUtility.GetGenitaliaTypeGeneForPawn(pawn));
|
||||
float size = genital.Severity;
|
||||
pawn.health.RemoveHediff(genital);
|
||||
|
||||
var newPenis = HediffMaker.MakeHediff(genitaliaHediffDef, pawn, Genital_Helper.get_genitalsBPR(pawn));
|
||||
pawn.health.AddHediff(newPenis);
|
||||
newPenis.Severity = size;
|
||||
}
|
||||
|
||||
SwitchBreasts();
|
||||
|
||||
RemoveLicentiaVaginaHediffs();
|
||||
}
|
||||
|
||||
|
||||
private void SwitchBreasts()
|
||||
{
|
||||
List<Hediff> current_breasts = pawn.GetBreastList();
|
||||
|
||||
// Stored_Breasts can be empty when the pawn first ever switches gender!
|
||||
if (storedBreasts.NullOrEmpty())
|
||||
{
|
||||
foreach (var breasts in current_breasts)
|
||||
{
|
||||
// Is Male, and does not have the "no breast gene"
|
||||
if (pawn.gender == Gender.Male && !GeneUtility.HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_no_breasts))
|
||||
{
|
||||
storedBreasts.Add(CreateNewBreasts());
|
||||
}
|
||||
else if (pawn.gender == Gender.Female && !GeneUtility.HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_featureless_chest) )
|
||||
{
|
||||
storedBreasts.Add(CreateNewBreasts());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
foreach (var breast in current_breasts)
|
||||
{
|
||||
pawn.health.RemoveHediff(breast);
|
||||
}
|
||||
foreach (var breast in storedBreasts)
|
||||
{
|
||||
pawn.health.AddHediff(breast);
|
||||
}
|
||||
|
||||
storedBreasts.Clear();
|
||||
storedBreasts.AddRange(current_breasts);
|
||||
}
|
||||
|
||||
|
||||
internal Hediff CreateNewBreasts()
|
||||
{
|
||||
var correctGene = GenitaliaUtility.GetGenitaliaTypeGeneForPawn(pawn);
|
||||
var breastDef = GenitaliaUtility.GetBreastsForGene(correctGene);
|
||||
var partBPR = Genital_Helper.get_breastsBPR(pawn);
|
||||
var additional_breasts = HediffMaker.MakeHediff(breastDef, pawn,partBPR);
|
||||
|
||||
var CompHediff = additional_breasts.TryGetComp<rjw.CompHediffBodyPart>();
|
||||
if (CompHediff != null)
|
||||
{
|
||||
CompHediff.initComp(pawn);
|
||||
CompHediff.updatesize();
|
||||
}
|
||||
|
||||
return additional_breasts;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks the pawn if it has any of the vagina-related hediffs (e.g. stretched) and removes them.
|
||||
/// Anal Soreness, Stretching etc. remains.
|
||||
/// </summary>
|
||||
private void RemoveLicentiaVaginaHediffs()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (ModsConfig.IsActive("LustLicentia.RJWLabs")){
|
||||
Hediff cumflation = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Cumflation);
|
||||
if (cumflation != null)
|
||||
pawn.health.RemoveHediff(cumflation);
|
||||
|
||||
Hediff stretched = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Stretched);
|
||||
if (stretched != null && stretched.Part != Genital_Helper.get_anusBPR(pawn))
|
||||
pawn.health.RemoveHediff(stretched);
|
||||
|
||||
Hediff torn = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.StretchTear);
|
||||
if (torn != null && torn.Part != Genital_Helper.get_anusBPR(pawn))
|
||||
pawn.health.RemoveHediff(torn);
|
||||
|
||||
Hediff prolapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Prolapse);
|
||||
if (prolapsed != null && prolapsed.Part != Genital_Helper.get_anusBPR(pawn))
|
||||
pawn.health.RemoveHediff(prolapsed);
|
||||
|
||||
Hediff extremeProlapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.ExtremeProlapse);
|
||||
if (extremeProlapsed != null && extremeProlapsed.Part != Genital_Helper.get_anusBPR(pawn))
|
||||
pawn.health.RemoveHediff(extremeProlapsed);
|
||||
};
|
||||
}
|
||||
//TODO: Don't make this an "catch all" Exception!
|
||||
catch (Exception ex)
|
||||
{
|
||||
// To be expected for people without Licentia Labs, do nothing.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// There are some actions that block sex change,
|
||||
/// being drafted or having sex.
|
||||
/// </summary>
|
||||
/// <param name="pawn">The pawn that want to sexchange.</param>
|
||||
/// <returns>False if the SexChange is applicable, True if there needs to be a wait timer.</returns>
|
||||
internal bool SexChangeBlocked(Pawn pawn)
|
||||
{
|
||||
// DEVNOTE: This list might extend on new cases, thus the explicit method.
|
||||
return pawn == null
|
||||
|| pawn.health.Dead
|
||||
|| (pawn.jobs.curDriver is JobDriver_Masturbate)
|
||||
|| (pawn.jobs.curDriver is JobDriver_Sex)
|
||||
|| (pawn.jobs.curDriver is JobDriver_SexBaseReciever)
|
||||
|| (pawn.jobs.curDriver is JobDriver_SexBaseInitiator)
|
||||
|| (pawn.jobs.curDriver is JobDriver_JoinInBed)
|
||||
|
||||
|| (pawn.jobs.curDriver is JobDriver_SexQuick)
|
||||
|| (pawn.jobs.curDriver is JobDriver_SexBaseRecieverQuickie)
|
||||
|| (pawn.jobs.curDriver is JobDriver_SexOnSpot)
|
||||
|| (pawn.jobs.curDriver is JobDriver_SexOnSpotReciever)
|
||||
|
||||
|| (pawn.jobs.curDriver is JobDriver_Knotted)
|
||||
|| (pawn.jobs.curDriver is JobDriver_Mate)
|
||||
|| (pawn.jobs.curDriver is JobDriver_Mating)
|
||||
|| (pawn.jobs.curDriver is JobDriver_Breeding)
|
||||
|
||||
|| (pawn.jobs.curDriver is JobDriver_Rape)
|
||||
|| (pawn.jobs.curDriver is JobDriver_SexBaseRecieverRaped)
|
||||
|| (pawn.jobs.curDriver is JobDriver_RandomRape)
|
||||
|| (pawn.jobs.curDriver is JobDriver_RapeComfortPawn)
|
||||
|| (pawn.jobs.curDriver is JobDriver_RapeEnemy)
|
||||
|| pawn.jobs.curDriver is JobDriver_Lovin
|
||||
|
||||
// This is a heavy check, but this is necessary because sometimes the pawns go somewhere to have sex and then they start despite missing genitalia!
|
||||
|| (pawn.jobs.curDriver is JobDriver_Goto)
|
||||
|
||||
|| pawn.Drafted;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_MaleOnly : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
AdjustPawnToMale();
|
||||
// Here we call Sexualization after the Sex-Change
|
||||
if (GenitaliaUtility.PawnStillNeedsGenitalia(pawn))
|
||||
Sexualizer.sexualize_pawn(pawn);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostMake();
|
||||
AdjustPawnToMale();
|
||||
}
|
||||
|
||||
private void AdjustPawnToMale()
|
||||
{
|
||||
if (pawn.gender == Gender.Male)
|
||||
return;
|
||||
else
|
||||
{
|
||||
GenderHelper.ChangeSex(pawn, () => {
|
||||
|
||||
pawn.gender = Gender.Male;
|
||||
GenitaliaChanger.RemoveAllGenitalia(pawn);
|
||||
Sexualizer.sexualize_pawn(pawn);
|
||||
});
|
||||
GenderUtility.AdjustBodyToTargetGender(pawn, Gender.Male);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Notify_OnPawnGeneration()
|
||||
{
|
||||
base.Notify_OnPawnGeneration();
|
||||
// If this is Pawn generation, then we can assume that the pawn was never any gender other than male, so they shouldn't have sex change thoughts. (Issue #32)
|
||||
GenderUtility.RemoveAllSexChangeThoughts(pawn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,135 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class GeneUtility
|
||||
{
|
||||
|
||||
//Split function so I can offsetlifeforce from gene without needing to look for the gene agian (for the constant drain tick)
|
||||
public static Gene_LifeForce GetLifeForceGene(Pawn pawn)
|
||||
{
|
||||
Pawn_GeneTracker genes = pawn.genes;
|
||||
Gene_LifeForce gene_LifeForce = genes.GetFirstGeneOfType<Gene_LifeForce>();
|
||||
return gene_LifeForce;
|
||||
}
|
||||
|
||||
public static void OffsetLifeForce(IGeneResourceDrain drain, float offset)
|
||||
{
|
||||
if (drain.Resource != null && drain.Resource.Active) {
|
||||
float old_value = drain.Resource.Value;
|
||||
drain.Resource.Value += offset;
|
||||
PostOffSetLifeForce(drain, old_value);
|
||||
}
|
||||
}
|
||||
|
||||
public static void PostOffSetLifeForce(IGeneResourceDrain drain, float old_value)
|
||||
{
|
||||
|
||||
if (drain.Resource != null && drain.Resource.Active)
|
||||
{
|
||||
if (old_value > 0.2f && drain.Resource.Value <= 0.2f)
|
||||
{
|
||||
//TODO: Mood debuff
|
||||
}
|
||||
else if (old_value > 0f && drain.Resource.Value <= 0f)
|
||||
{
|
||||
Pawn pawn = drain.Pawn;
|
||||
if (!drain.Pawn.health.hediffSet.HasHediff(HediffDefOf.rjw_genes_fertilin_craving))
|
||||
{
|
||||
drain.Pawn.health.AddHediff(HediffDefOf.rjw_genes_fertilin_craving);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static bool HasLowLifeForce(Pawn pawn)
|
||||
{
|
||||
if (HasLifeForce(pawn))
|
||||
{
|
||||
Gene_LifeForce gene = pawn.genes.GetFirstGeneOfType<Gene_LifeForce>();
|
||||
if (gene == null || !gene.Active)
|
||||
return false;
|
||||
if (gene.Resource.Value < gene.targetValue)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool HasCriticalLifeForce(Pawn pawn)
|
||||
{
|
||||
if (HasLifeForce(pawn))
|
||||
{
|
||||
Gene_LifeForce gene = pawn.genes.GetFirstGeneOfType<Gene_LifeForce>();
|
||||
if (gene == null || !gene.Active)
|
||||
return false;
|
||||
if (gene.Resource.Value < gene.MinLevelForAlert)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static float MaxEggSizeMul(Pawn pawn)
|
||||
{
|
||||
float MaxEggSize = 1;
|
||||
if (IsInsectIncubator(pawn))
|
||||
{
|
||||
MaxEggSize *= 2;
|
||||
}
|
||||
return MaxEggSize;
|
||||
}
|
||||
public static List<Gene_GenitaliaResizingGene> GetGenitaliaResizingGenes(Pawn pawn)
|
||||
{
|
||||
var ResizingGenes = new List<Gene_GenitaliaResizingGene>();
|
||||
|
||||
// Error Handling: Issue with Pawn or Genes return empty.
|
||||
if (pawn == null || pawn.genes == null)
|
||||
return ResizingGenes;
|
||||
|
||||
foreach (Gene gene in pawn.genes.GenesListForReading)
|
||||
if (gene is Gene_GenitaliaResizingGene resizing_gene)
|
||||
ResizingGenes.Add(resizing_gene);
|
||||
|
||||
return ResizingGenes;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unified small check for a pawn if it has a specified Gene.
|
||||
/// Handles some errors and returns false as default.
|
||||
/// </summary>
|
||||
/// <param name="pawn">The pawn for which to look up a gene.</param>
|
||||
/// <param name="genedef">The gene to look up.</param>
|
||||
/// <returns></returns>
|
||||
public static bool HasGeneNullCheck(Pawn pawn, GeneDef genedef)
|
||||
{
|
||||
if (pawn.genes == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return pawn.genes.HasGene(genedef);
|
||||
}
|
||||
|
||||
public static bool HasLifeForce(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_lifeforce); }
|
||||
public static bool IsMechbreeder(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_mechbreeder); }
|
||||
public static bool IsInsectIncubator(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_insectincubator); }
|
||||
public static bool IsYouthFountain(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_youth_fountain); }
|
||||
public static bool IsAgeDrainer(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_sex_age_drain); }
|
||||
public static bool IsInsectBreeder(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_insectbreeder); }
|
||||
public static bool IsElastic(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_elasticity); }
|
||||
public static bool IsCumflationImmune(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_cumflation_immunity); }
|
||||
public static bool IsGenerousDonor(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_generous_donor); }
|
||||
public static bool IsPussyHealer(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_pussyhealing); }
|
||||
public static bool IsUnbreakable(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_unbreakable); }
|
||||
public static bool HasParalysingKiss(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_paralysingkiss); }
|
||||
public static bool HasSeduce(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_seduce); }
|
||||
public static bool IsSexualDrainer(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_drainer); }
|
||||
public static bool IsCumEater(Pawn pawn) { return HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_cum_eater); }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_CanineGenitalia : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn,Genital_Helper.canine_penis,Genital_Helper.canine_vagina,Genital_Helper.generic_anus);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn, Genital_Helper.canine_penis, Genital_Helper.canine_vagina, Genital_Helper.generic_anus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_DemonicGenitalia : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn,Genital_Helper.demon_penis,Genital_Helper.demon_vagina,Genital_Helper.demon_anus);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn, Genital_Helper.demon_penis, Genital_Helper.demon_vagina, Genital_Helper.demon_anus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_DragonGenitalia : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn,Genital_Helper.dragon_penis,Genital_Helper.dragon_vagina,Genital_Helper.generic_anus);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn, Genital_Helper.dragon_penis, Genital_Helper.dragon_vagina, Genital_Helper.generic_anus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_EquineGenitalia : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn,Genital_Helper.equine_penis,Genital_Helper.equine_vagina,Genital_Helper.generic_anus);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn, Genital_Helper.equine_penis, Genital_Helper.equine_vagina, Genital_Helper.generic_anus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_FelineGenitalia : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn,Genital_Helper.feline_penis,Genital_Helper.feline_vagina,Genital_Helper.generic_anus);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn, Genital_Helper.feline_penis, Genital_Helper.feline_vagina, Genital_Helper.generic_anus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_OvipositorGenitalia : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn,Genital_Helper.ovipositorM,Genital_Helper.ovipositorF,Genital_Helper.insect_anus);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn, Genital_Helper.ovipositorM, Genital_Helper.ovipositorF, Genital_Helper.insect_anus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_SlimeGenitalia : RJW_Gene
|
||||
{
|
||||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn,Genital_Helper.slime_penis,Genital_Helper.slime_vagina,Genital_Helper.slime_anus);
|
||||
}
|
||||
|
||||
public override void PostAdd()
|
||||
{
|
||||
base.PostAdd();
|
||||
GenitaliaChanger.ChangeGenitalia(this.pawn, Genital_Helper.slime_penis, Genital_Helper.slime_vagina, Genital_Helper.slime_anus);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
using rjw;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
internal class GenitaliaChanger
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// This method changes the pawns genitalia to the given types of genitalia.
|
||||
/// All genitals will be changed, e.g. pawns with 2 penises (for whatever reason) or is a futa, all genitals will be changed.
|
||||
/// </summary>
|
||||
/// <param name="pawn">the pawn who's genitals will be changed</param>
|
||||
/// <param name="penisReplacement">the new type of penis</param>
|
||||
/// <param name="vaginaReplacement">the new type of vagina</param>
|
||||
/// <param name="anusReplacement">the new type of anus</param>
|
||||
public static void ChangeGenitalia(Pawn pawn, HediffDef penisReplacement, HediffDef vaginaReplacement, HediffDef anusReplacement)
|
||||
{
|
||||
var oldParts = Genital_Helper.get_AllPartsHediffList(pawn);
|
||||
BodyPartRecord correctBPR;
|
||||
|
||||
if (!oldParts.NullOrEmpty())
|
||||
{
|
||||
Hediff replacementGenital;
|
||||
CompHediffBodyPart CompHediff;
|
||||
|
||||
foreach (Hediff existingGenital in oldParts)
|
||||
{
|
||||
if (IsArtificial(existingGenital))
|
||||
continue;
|
||||
correctBPR = Genital_Helper.get_genitalsBPR(pawn);
|
||||
|
||||
replacementGenital = null;
|
||||
CompHediff = null;
|
||||
if (Genital_Helper.is_penis(existingGenital))
|
||||
replacementGenital = HediffMaker.MakeHediff(penisReplacement, pawn, correctBPR);
|
||||
|
||||
if (Genital_Helper.is_vagina(existingGenital))
|
||||
replacementGenital = HediffMaker.MakeHediff(vaginaReplacement, pawn, correctBPR);
|
||||
|
||||
if (IsAnus(existingGenital))
|
||||
{
|
||||
correctBPR = Genital_Helper.get_anusBPR(pawn);
|
||||
replacementGenital = HediffMaker.MakeHediff(anusReplacement, pawn, correctBPR);
|
||||
}
|
||||
|
||||
if (replacementGenital != null)
|
||||
{
|
||||
CompHediff = replacementGenital.TryGetComp<rjw.CompHediffBodyPart>();
|
||||
if (CompHediff != null)
|
||||
{
|
||||
CompHediff.initComp(pawn);
|
||||
CompHediff.updatesize();
|
||||
}
|
||||
GenderHelper.ChangeSex(pawn, () =>
|
||||
{
|
||||
pawn.health.RemoveHediff(existingGenital);
|
||||
pawn.health.AddHediff(replacementGenital, correctBPR);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Messages.Message("RJW_Genes_GenitalsNotAlterable".Translate(pawn), pawn, MessageTypeDefOf.SilentInput);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static bool IsAnus(Hediff candidate)
|
||||
{
|
||||
return candidate.def.defName.ToLower().Contains("anus"); }
|
||||
|
||||
public static bool IsArtificial(Hediff candidate)
|
||||
{
|
||||
return candidate.def.defName.ToLower().Contains("bionic") || candidate.def.defName.ToLower().Contains("archo");
|
||||
}
|
||||
|
||||
public static void RemoveAllGenitalia(Pawn pawn)
|
||||
{
|
||||
var parts = Genital_Helper.get_AllPartsHediffList(pawn);
|
||||
foreach (var part in parts)
|
||||
{
|
||||
pawn.health.RemoveHediff(part);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,135 +0,0 @@
|
|||
using RimWorld;
|
||||
using Verse;
|
||||
using rjw;
|
||||
using System;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class GenitaliaUtility
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Returns the first (non) overwritten gene from the rjw_genes genitalia genes.
|
||||
/// In case the pawn has none, as default the human one is returned.
|
||||
/// </summary>
|
||||
/// <param name="pawn">the pawn whom to find genitaliagenes for</param>
|
||||
/// <returns>The first GeneDef of the pawn related to GenitaliaTypes</returns>
|
||||
public static GeneDef GetGenitaliaTypeGeneForPawn(Pawn pawn)
|
||||
{
|
||||
|
||||
foreach (var gene in pawn.genes.GenesListForReading)
|
||||
{
|
||||
if (gene.def.defName.Contains("rjw_genes") && gene.def.defName.EndsWith("_genitalia"))
|
||||
if (!gene.Overridden)
|
||||
return gene.def;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static HediffDef GetPenisForGene(GeneDef gene)
|
||||
{
|
||||
if (gene == null)
|
||||
return Genital_Helper.average_penis;
|
||||
|
||||
switch (gene.defName)
|
||||
{
|
||||
case "rjw_genes_equine_genitalia": return Genital_Helper.equine_penis;
|
||||
case "rjw_genes_canine_genitalia": return Genital_Helper.canine_penis;
|
||||
case "rjw_genes_feline_genitalia": return Genital_Helper.feline_penis;
|
||||
case "rjw_genes_demonic_genitalia": return Genital_Helper.demon_penis;
|
||||
case "rjw_genes_dragon_genitalia": return Genital_Helper.dragon_penis;
|
||||
case "rjw_genes_slime_genitalia": return Genital_Helper.slime_penis;
|
||||
case "rjw_genes_ovipositor_genitalia": return Genital_Helper.ovipositorM;
|
||||
|
||||
default: return Genital_Helper.average_penis;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static HediffDef GetVaginaForGene(GeneDef gene)
|
||||
{
|
||||
if (gene == null)
|
||||
return Genital_Helper.average_vagina;
|
||||
|
||||
switch (gene.defName)
|
||||
{
|
||||
case "rjw_genes_equine_genitalia": return Genital_Helper.equine_vagina;
|
||||
case "rjw_genes_canine_genitalia": return Genital_Helper.canine_vagina;
|
||||
case "rjw_genes_feline_genitalia": return Genital_Helper.feline_vagina;
|
||||
case "rjw_genes_demonic_genitalia": return Genital_Helper.demon_vagina;
|
||||
case "rjw_genes_dragon_genitalia": return Genital_Helper.dragon_vagina;
|
||||
case "rjw_genes_slime_genitalia": return Genital_Helper.slime_vagina;
|
||||
case "rjw_genes_ovipositor_genitalia": return Genital_Helper.ovipositorF;
|
||||
|
||||
default: return Genital_Helper.average_vagina;
|
||||
}
|
||||
}
|
||||
|
||||
public static HediffDef GetAnusForGene(GeneDef gene)
|
||||
{
|
||||
if (gene == null)
|
||||
return Genital_Helper.average_anus;
|
||||
switch (gene.defName)
|
||||
{
|
||||
//TODO: Do I want the default to be generic or average for feline,equine and canine?
|
||||
case "rjw_genes_equine_genitalia": return Genital_Helper.average_anus;
|
||||
case "rjw_genes_canine_genitalia": return Genital_Helper.average_anus;
|
||||
case "rjw_genes_feline_genitalia": return Genital_Helper.average_anus;
|
||||
case "rjw_genes_demonic_genitalia": return Genital_Helper.demon_anus;
|
||||
case "rjw_genes_dragon_genitalia": return Genital_Helper.average_anus;
|
||||
case "rjw_genes_slime_genitalia": return Genital_Helper.slime_anus;
|
||||
case "rjw_genes_ovipositor_genitalia": return Genital_Helper.insect_anus;
|
||||
|
||||
default: return Genital_Helper.generic_anus;
|
||||
}
|
||||
}
|
||||
|
||||
public static HediffDef GetBreastsForGene(GeneDef gene)
|
||||
{
|
||||
if (gene == null)
|
||||
return Genital_Helper.average_breasts;
|
||||
|
||||
switch (gene.defName)
|
||||
{
|
||||
//TODO: Do I want the default to be generic or average?
|
||||
case "rjw_genes_equine_genitalia": return Genital_Helper.average_breasts;
|
||||
case "rjw_genes_canine_genitalia": return Genital_Helper.average_breasts;
|
||||
case "rjw_genes_feline_genitalia": return Genital_Helper.average_breasts;
|
||||
case "rjw_genes_demonic_genitalia": return Genital_Helper.average_breasts;
|
||||
case "rjw_genes_dragon_genitalia": return Genital_Helper.average_breasts;
|
||||
case "rjw_genes_slime_genitalia": return Genital_Helper.slime_breasts;
|
||||
case "rjw_genes_udder_breasts": return Genital_Helper.udder_breasts;
|
||||
case "rjw_genes_ovipositor_genitalia": return Genital_Helper.average_breasts;
|
||||
|
||||
default: return Genital_Helper.generic_breasts;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool PawnStillNeedsGenitalia(Pawn pawn)
|
||||
{
|
||||
// There is the issue that the genes fire in a pseudo-random order
|
||||
// Hence it can happen that the pawn still needs genitalia
|
||||
// I wanted to make a simple lookup, but I think the genes are applied for all humans encountered so it could be huge
|
||||
// So the heuristic is to check if the pawn has any of the 3 standard genitalia OR has all genes ticked that says "I don't want genitalia".
|
||||
if (pawn == null) return false;
|
||||
|
||||
bool pawn_has_any_genitalia =
|
||||
Genital_Helper.has_genitals(pawn) || Genital_Helper.has_anus(pawn) || Genital_Helper.has_breasts(pawn);
|
||||
|
||||
bool pawn_is_not_supposed_to_have_genitalia =
|
||||
pawn.genes.GenesListForReading.Any(x => x.def.defName == "rjw_genes_no_penis");
|
||||
|
||||
if (pawn_is_not_supposed_to_have_genitalia)
|
||||
return false;
|
||||
else
|
||||
return !pawn_has_any_genitalia;
|
||||
|
||||
}
|
||||
|
||||
public static bool IsBreasts(Hediff candidate)
|
||||
{
|
||||
return candidate.def.defName.ToLower().Contains("breast");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
using HarmonyLib;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// This Patch adds behavior to all resizing genes:
|
||||
/// At Age RESIZING_MIN_AGE the Pawns Resizing Genes will trigger again, if not already triggered somewhere else.
|
||||
/// This is meant to allow kids to grow up without resized genitals, and resize later (Fixing #11).
|
||||
///
|
||||
/// See `Gene_GenitaliaResizingGene` for a short summary of Issue #34.
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(Pawn_AgeTracker), "BirthdayBiological")]
|
||||
public class Patch_ResizingOnAdulthood
|
||||
{
|
||||
|
||||
static void Postfix(Pawn ___pawn, int birthdayAge)
|
||||
{
|
||||
if (birthdayAge >= Gene_GenitaliaResizingGene.RESIZING_AGE)
|
||||
{
|
||||
foreach(Gene_GenitaliaResizingGene gene in GeneUtility.GetGenitaliaResizingGenes(___pawn))
|
||||
{
|
||||
if (!gene.ResizingWasApplied)
|
||||
{
|
||||
gene.Resize();
|
||||
gene.ResizingWasApplied = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// The CocoonWeaver Ability applies the RJW-Cocoon to a pawn.
|
||||
/// Friendly Pawns can always be cocooned, neutral and hostile pawns must be downed.
|
||||
/// </summary>
|
||||
public class CompAbilityEffect_CocoonWeaver : CompAbilityEffect
|
||||
{
|
||||
private new CompProperties_AbilityCocoonWeaver Props
|
||||
{
|
||||
get
|
||||
{
|
||||
return (CompProperties_AbilityCocoonWeaver)this.props;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override void Apply(LocalTargetInfo target, LocalTargetInfo dest)
|
||||
{
|
||||
base.Apply(target, dest);
|
||||
|
||||
Pawn CocooningPawn = this.parent.pawn;
|
||||
Pawn PawnToCocoon = target.Pawn;
|
||||
|
||||
// Error Case - Null Pawn
|
||||
if (PawnToCocoon == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
PawnToCocoon.health.AddHediff(HediffDef.Named("RJW_Cocoon"));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For validity, there are a few checks:
|
||||
/// 0. Target is not already cocooned
|
||||
/// 1. Target is either Colonist / Prisoner
|
||||
/// 2. If the Target is an enemy or neutral, it must be downed.
|
||||
/// </summary>
|
||||
public override bool Valid(LocalTargetInfo target, bool throwMessages = false)
|
||||
{
|
||||
Pawn cocoonTarget = target.Pawn;
|
||||
if (cocoonTarget != null)
|
||||
{
|
||||
bool CocoonTargetIsColonistOrPrisoner = cocoonTarget.Faction == this.parent.pawn.Faction || cocoonTarget.IsPrisonerOfColony;
|
||||
bool CocoonTargetIsHostile = cocoonTarget.HostileTo(this.parent.pawn);
|
||||
bool CocoonTargetIsDowned = cocoonTarget.Downed;
|
||||
|
||||
if (cocoonTarget.health.hediffSet.hediffs.Any(t => t.def.defName == "RJW_Cocoon"))
|
||||
{
|
||||
if (throwMessages)
|
||||
Messages.Message(cocoonTarget.Name + " is already cocooned.", cocoonTarget, MessageTypeDefOf.RejectInput, false);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!CocoonTargetIsColonistOrPrisoner && !(CocoonTargetIsHostile && CocoonTargetIsDowned))
|
||||
{
|
||||
if (throwMessages)
|
||||
{
|
||||
if(CocoonTargetIsHostile && !CocoonTargetIsDowned)
|
||||
{
|
||||
Messages.Message(cocoonTarget.Name + " is hostile, but not downed.", cocoonTarget, MessageTypeDefOf.RejectInput, false);
|
||||
}
|
||||
else if (!CocoonTargetIsColonistOrPrisoner)
|
||||
{
|
||||
Messages.Message(cocoonTarget.Name + " is not a part of the colony or hostile.", cocoonTarget, MessageTypeDefOf.RejectInput, false);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return base.Valid(target, throwMessages);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using RimWorld.Planet;
|
||||
using System;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// Spawns tame spelopedes at the caster.
|
||||
///
|
||||
/// TODO: Play some sound? I think this can be done with some CompProperties.
|
||||
/// </summary>
|
||||
public class CompAbilityEffect_SpawnSpelopede : CompAbilityEffect
|
||||
{
|
||||
public CompProperties_AbilitySpawnSpelopede Props => (CompProperties_AbilitySpawnSpelopede) this.props;
|
||||
|
||||
public override void Apply(LocalTargetInfo target, LocalTargetInfo dest)
|
||||
{
|
||||
base.Apply(target, dest);
|
||||
|
||||
|
||||
int spelopedesToSpawn = CalculateSpelopedeAmount();
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"Using Spelopede Spawn, spawning {spelopedesToSpawn}");
|
||||
|
||||
for (int i = 0; i < spelopedesToSpawn; i++) {
|
||||
var request = new PawnGenerationRequest(
|
||||
this.Props.pawnKindDef,
|
||||
faction: this.parent.pawn.Faction,
|
||||
forceGenerateNewPawn: true,
|
||||
fixedBiologicalAge: 0.0f,
|
||||
fixedChronologicalAge: 0.0f,
|
||||
canGeneratePawnRelations: false,
|
||||
colonistRelationChanceFactor: 0.0f
|
||||
);
|
||||
|
||||
|
||||
Pawn insect = PawnGenerator.GeneratePawn(request);
|
||||
PawnUtility.TrySpawnHatchedOrBornPawn(insect, this.parent.pawn);
|
||||
|
||||
if (Props.tamed)
|
||||
{
|
||||
insect.training.Train(TrainableDefOf.Tameness, this.parent.pawn, true);
|
||||
insect.training.Train(TrainableDefOf.Obedience, this.parent.pawn, true);
|
||||
insect.training.Train(TrainableDefOf.Release, this.parent.pawn, true);
|
||||
|
||||
// I could do bonding here, but I think it's nicer if the queen is not "bonded" to their offspring.
|
||||
}
|
||||
}
|
||||
|
||||
MakeDirt(1);
|
||||
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message("Finished Spelopede Spawn");
|
||||
|
||||
}
|
||||
|
||||
private int CalculateSpelopedeAmount()
|
||||
{
|
||||
Pawn caster = this.parent.pawn;
|
||||
float spelopedes = Props.sensitivityMultiplier * caster.psychicEntropy.PsychicSensitivity;
|
||||
return (spelopedes > 1.49f) ? (int)Math.Round(spelopedes) : 1;
|
||||
}
|
||||
|
||||
private void MakeDirt(int multiplier = 1)
|
||||
{
|
||||
Pawn caster = this.parent.pawn;
|
||||
|
||||
FilthMaker.TryMakeFilth(caster.Position, caster.Map, ThingDefOf.Filth_AmnioticFluid, caster.LabelIndefinite(), count: Rand.Range(5,5*multiplier));
|
||||
}
|
||||
|
||||
public override bool Valid(LocalTargetInfo target, bool throwMessages = false)
|
||||
{
|
||||
if (!target.Cell.Filled(this.parent.pawn.Map) && (target.Cell.GetEdifice(this.parent.pawn.Map) == null))
|
||||
return true;
|
||||
if (throwMessages)
|
||||
Messages.Message((string)("CannotUseAbility".Translate((NamedArgument)this.parent.def.label) + ": " + "AbilityOccupiedCells".Translate()), (LookTargets)target.ToTargetInfo(this.parent.pawn.Map), MessageTypeDefOf.RejectInput, false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class CompProperties_AbilityCocoonWeaver : CompProperties_AbilityEffect
|
||||
{
|
||||
public CompProperties_AbilityCocoonWeaver()
|
||||
{
|
||||
this.compClass = typeof(CompAbilityEffect_CocoonWeaver);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class CompProperties_AbilitySpawnSpelopede : CompProperties_AbilityEffect
|
||||
{
|
||||
public PawnKindDef pawnKindDef;
|
||||
public float sensitivityMultiplier;
|
||||
public bool tamed;
|
||||
public CompProperties_AbilitySpawnSpelopede()
|
||||
{
|
||||
this.compClass = typeof(CompAbilityEffect_SpawnSpelopede);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class HiveOffspringChanceDef : Def
|
||||
{
|
||||
|
||||
public string queenXenotype;
|
||||
|
||||
// Chance of the below should be 1 when summed up!
|
||||
// Otherwise the roll-logic fails.
|
||||
|
||||
public double queenChance;
|
||||
public double droneChance;
|
||||
public double workerChance;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// This def covers the birth of workers for each queen-xenotype.
|
||||
///
|
||||
/// It is used when a baby is born to a pawn with the queen-xenotype;
|
||||
/// There is a random check for the type of the baby, and if the baby is born to be a worker,
|
||||
/// additional genes are looked up here.
|
||||
/// </summary>
|
||||
public class QueenWorkerMappingDef : Def
|
||||
{
|
||||
public string queenXenotype;
|
||||
public List<string> workerGenes;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Checks if there are multiple queens on the map.
|
||||
/// </summary>
|
||||
public class ConditionalStatAffecter_MultipleQueens : ConditionalStatAffecter
|
||||
{
|
||||
public override string Label => (string)"StatsReport_MultipleQueens".Translate();
|
||||
|
||||
public override bool Applies(StatRequest req)
|
||||
{
|
||||
if (req.Pawn == null || !req.Pawn.Spawned)
|
||||
return false;
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(req.Pawn))
|
||||
return false;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(req.Pawn, GeneDefOf.rjw_genes_zealous_loyalty))
|
||||
{
|
||||
return HiveUtility.QueensOnMap() >= 2;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Checks if there is no queen on the map.
|
||||
/// </summary>
|
||||
public class ConditionalStatAffecter_QueenAbsent : ConditionalStatAffecter
|
||||
{
|
||||
public override string Label => (string)"StatsReport_QueenAbsent".Translate();
|
||||
|
||||
public override bool Applies(StatRequest req)
|
||||
{
|
||||
if (req.Pawn == null || !req.Pawn.Spawned)
|
||||
return false;
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(req.Pawn))
|
||||
return false;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(req.Pawn, GeneDefOf.rjw_genes_zealous_loyalty))
|
||||
{
|
||||
return HiveUtility.QueensOnMap() == 0;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Checks if there is (exactly) one queen nearby.
|
||||
/// If the pawn is a queen itself, it's checked if there are OTHER queens nearby.
|
||||
/// While this is used for mostly positive things for workers and drones, for queens it checks if there is a rival nearby.
|
||||
/// </summary>
|
||||
public class ConditionalStatAffecter_QueenCloseBy : ConditionalStatAffecter
|
||||
{
|
||||
|
||||
const float EFFECT_DISTANCE = 10.0f;
|
||||
|
||||
public override string Label => (string)"StatsReport_QueenCloseBy".Translate();
|
||||
|
||||
public override bool Applies(StatRequest req)
|
||||
{
|
||||
if (req.Pawn == null || !req.Pawn.Spawned)
|
||||
return false;
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(req.Pawn))
|
||||
return false;
|
||||
|
||||
// Case A: Check for Loyal Pawns if their One Queen is nearby
|
||||
if (GeneUtility.HasGeneNullCheck(req.Pawn, GeneDefOf.rjw_genes_zealous_loyalty) && HiveUtility.QueensOnMap() == 1)
|
||||
{
|
||||
Pawn queen = HiveUtility.GetQueensOnMap()[0];
|
||||
|
||||
return req.Pawn.Position.DistanceTo(queen.Position) <= EFFECT_DISTANCE;
|
||||
}
|
||||
|
||||
// Case A: Check for Queen if another Queen is nearby
|
||||
if (GeneUtility.HasGeneNullCheck(req.Pawn, GeneDefOf.rjw_genes_zealous_loyalty) && HiveUtility.QueensOnMap() >= 2)
|
||||
{
|
||||
foreach (Pawn queen in HiveUtility.GetQueensOnMap())
|
||||
{
|
||||
if (queen != req.Pawn && req.Pawn.Position.DistanceTo(queen.Position) <= EFFECT_DISTANCE)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// This Gene checks for all parasitic Insect-Eggs in a Pawn:
|
||||
/// 1. Is it fertilized ? => tick it down "extra".
|
||||
/// 2. Is it not fertilized? => fertilize it with the Incubator as parent
|
||||
///
|
||||
/// To save performance, this gene fires (default) every 0.5h, which also means a slight delay until fertilization happens.
|
||||
///
|
||||
/// Important: The other half of the behavior for the gene (more egg-capacity) is in `Patch_InsectINcubator_PregnancyHelper`.
|
||||
/// </summary>
|
||||
public class Gene_InsectIncubator : Gene
|
||||
{
|
||||
|
||||
const int TICK_INTERVAL = 60000 / 48; // 60k = 1 day, we want 0.5h which is 1/48th of 1 day.
|
||||
|
||||
public override void Tick()
|
||||
{
|
||||
base.Tick();
|
||||
|
||||
// Don't check too often, only in the HashTickInterval to safe some computing power
|
||||
if (this.pawn.IsHashIntervalTick(TICK_INTERVAL) && this.pawn.Map != null)
|
||||
{
|
||||
List<Hediff_InsectEgg> eggs = new List<Hediff_InsectEgg>();
|
||||
pawn.health.hediffSet.GetHediffs<Hediff_InsectEgg>(ref eggs);
|
||||
// This part works as intended and shows Non-Human Eggs too
|
||||
//if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"Gene_InsectIncubator: Found {eggs.Count} Hediff_InsectEgg in {pawn}");
|
||||
|
||||
|
||||
foreach (Hediff_InsectEgg egg in eggs)
|
||||
{
|
||||
// The implanter check checks if the egg is still in an ovipositor.
|
||||
if (egg.implanter == null || egg.implanter == pawn)
|
||||
continue;
|
||||
|
||||
if (!egg.fertilized && egg.implanter != null) {
|
||||
egg.Fertilize(pawn);
|
||||
// DevNote Issue 38: Sometimes Eggs are not fertilized here, because the normal Fertilize Function is called which has an upper Limit on Gestation.
|
||||
// I will not do anything about it here, maybe upstream, but I print here.
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
{
|
||||
if (egg.fertilized)
|
||||
ModLog.Message($"Gene_InsectIncubator: fertilized egg {egg} in {pawn}");
|
||||
else if (egg.GestationProgress > 0.5)
|
||||
ModLog.Message($"Gene_InsectIncubator: Failed to fertilize {egg} in {pawn} due to high gestation progress");
|
||||
else
|
||||
ModLog.Message($"Gene_InsectIncubator: failed to fertiliz egg {egg} in {pawn}");
|
||||
}
|
||||
}
|
||||
// DevNote: There is an issue with Eggs reaching too much gestation progress (>100%), which causes DownStream bugs. To avoid this, there are some extra checks in place.
|
||||
else if (egg.fertilized && egg.GestationProgress <= .93)
|
||||
{
|
||||
egg.lastTick += TICK_INTERVAL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,202 +0,0 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection.Emit;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// DevNote: Issue #37 came along because I checked for getMother() and getFather(), but it can happen that a pawn has two mothers.
|
||||
/// They are called Mother if they have a ParentRelation and are female.
|
||||
/// New behaviour iterates over all parents and returns the first queen/drone or null.
|
||||
/// </summary>
|
||||
public class HiveBirthLogic
|
||||
{
|
||||
/// <summary>
|
||||
/// Central function for the Hive-Birth logic used in Patches.
|
||||
/// *Only* run this, if the pawn has a queen parent (either as mother/father, or as implanter in case of egg-logic).
|
||||
/// Covers the following behavior:
|
||||
/// 1. look up the Defs for the mother and HiveOffspringChances (or defaults)
|
||||
/// 2. If there is no drone involved, default to worker
|
||||
/// 3. Roll a random dice
|
||||
/// 3.1 Make a queen
|
||||
/// 3.2 Make a drone
|
||||
/// 3.3 Make a worker
|
||||
/// </summary>
|
||||
/// <param name="pawn">The pawn born, that maybe becomes a hive-xenotype.</param>
|
||||
/// <param name="hasDroneParent">whether there was a drone parent involved</param>
|
||||
public static void ManageHiveBirth(Pawn pawn, bool hasDroneParent = false, Either<XenotypeDef, CustomXenotype> fallbackQueenDef = null, Either<XenotypeDef, CustomXenotype> fallbackDroneDef = null)
|
||||
{
|
||||
Either<XenotypeDef,CustomXenotype> queenDef = TryFindParentQueenXenotype(pawn);
|
||||
if (queenDef == null) queenDef = fallbackQueenDef;
|
||||
HiveOffspringChanceDef hiveOffspringChanceDef = HiveUtility.LookupHiveInheritanceChances(queenDef);
|
||||
|
||||
// Case 1: Mother is Queen, Father is something else. Produce Worker.
|
||||
if (!hasDroneParent)
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"{pawn} was born as a worker, as it did not have Drone Father ({100}% chance)");
|
||||
MakeWorker(pawn, queenDef);
|
||||
}
|
||||
// Case 2: Mother is Queen, Father is drone. Apply xenotype as per chance.
|
||||
else
|
||||
{
|
||||
double roll = (new Random()).NextDouble();
|
||||
// Case 2.a: New Queen born
|
||||
if (roll < hiveOffspringChanceDef.queenChance)
|
||||
{
|
||||
MakeQueen(pawn, queenDef);
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"Queen Chance: {hiveOffspringChanceDef.queenChance * 100}% chance,rolled { roll}");
|
||||
}
|
||||
// Case 2.b: New Drone born
|
||||
else if (roll < hiveOffspringChanceDef.droneChance + hiveOffspringChanceDef.queenChance)
|
||||
{
|
||||
var droneDef = TryFindParentDroneXenotype(pawn);
|
||||
MakeDrone(pawn,droneDef);
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"Drone Chance ({(hiveOffspringChanceDef.droneChance + hiveOffspringChanceDef.queenChance) * 100}% chance,rolled {roll}))");
|
||||
}
|
||||
// Case 2.c: Worker
|
||||
else
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"{pawn} born as a worker ({(hiveOffspringChanceDef.workerChance) * 100}% chance,rolled {roll}))");
|
||||
MakeWorker(pawn, queenDef);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void MakeQueen(Pawn pawnToBeQueen, Either<XenotypeDef,CustomXenotype> queenDef) {
|
||||
if (queenDef == null && pawnToBeQueen == null)
|
||||
return;
|
||||
if (queenDef.isLeft) {
|
||||
var xenotype = queenDef.left;
|
||||
pawnToBeQueen.genes.SetXenotype(xenotype);
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"{pawnToBeQueen} born as a new queen with Xenotype {xenotype.defName}");
|
||||
} else {
|
||||
var customXenotype = queenDef.right;
|
||||
|
||||
foreach (var gene in customXenotype.genes)
|
||||
pawnToBeQueen.genes.AddGene(gene, true);
|
||||
|
||||
pawnToBeQueen.genes.xenotypeName = customXenotype.name;
|
||||
pawnToBeQueen.genes.iconDef = customXenotype.iconDef;
|
||||
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"{pawnToBeQueen} born as a new queen with custom Xenotype {customXenotype.name}");
|
||||
}
|
||||
|
||||
MakeQueenBornLetter(pawnToBeQueen);
|
||||
}
|
||||
|
||||
|
||||
private static void MakeDrone(Pawn pawnToBeDrone, Either<XenotypeDef, CustomXenotype> droneDef)
|
||||
{
|
||||
if (droneDef == null && pawnToBeDrone == null)
|
||||
return;
|
||||
if (droneDef.isLeft)
|
||||
{
|
||||
var xenotype = droneDef.left;
|
||||
pawnToBeDrone.genes.SetXenotype(xenotype);
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"{pawnToBeDrone} born as a new drone with Xenotype {xenotype.defName}");
|
||||
}
|
||||
else
|
||||
{
|
||||
var customXenotype = droneDef.right;
|
||||
|
||||
foreach (var gene in customXenotype.genes)
|
||||
pawnToBeDrone.genes.AddGene(gene, true);
|
||||
|
||||
pawnToBeDrone.genes.xenotypeName = customXenotype.name;
|
||||
pawnToBeDrone.genes.iconDef = customXenotype.iconDef;
|
||||
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"{pawnToBeDrone} born as a new drone with custom Xenotype {customXenotype.name}");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Turns a given pawn into a worker, by looking up the relevant genes as per queen.
|
||||
///
|
||||
/// If the queen xenotype has no mapping, the "rjw_genes_default_worker_xenotype" are used instead.
|
||||
/// The genes are added as endogenes, so the worker can still become a xenotype.
|
||||
/// </summary>
|
||||
/// <param name="pawnTobeWorker">The pawn for which the genes are added.</param>
|
||||
/// <param name="queenDef">The xenotype of the queen, used for lookup.</param>
|
||||
private static void MakeWorker(Pawn pawnTobeWorker, Either<XenotypeDef, CustomXenotype> queenDef)
|
||||
{
|
||||
if (pawnTobeWorker == null)
|
||||
return;
|
||||
|
||||
var mappings = HiveUtility.GetQueenWorkerMappings();
|
||||
String queenDefName = HiveUtility.GetXenotypeDefName(queenDef);
|
||||
if (queenDef == null || mappings.NullOrEmpty())
|
||||
return;
|
||||
|
||||
var genes = mappings.TryGetValue(queenDefName, HiveUtility.LookupDefaultWorkerGenes());
|
||||
if (genes == null)
|
||||
return;
|
||||
|
||||
foreach (var gene in genes)
|
||||
pawnTobeWorker.genes.AddGene(gene, false);
|
||||
|
||||
pawnTobeWorker.genes.xenotypeName = "Worker";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up if there is a Xenotype with Drone-Gene for the pawns parents.
|
||||
/// This is to account that maybe father or mother are the drone (instead of hardcoding things for father).
|
||||
/// If both are drones, the mothers is returned.
|
||||
/// </summary>
|
||||
/// <param name="pawn">The pawn for whichs parent the xenotypes is looked up.</param>
|
||||
/// <returns>The Drone-Xenotype of a parent or null. If both are drones, mothers are preferred.</returns>
|
||||
public static Either<XenotypeDef,CustomXenotype> TryFindParentDroneXenotype(Pawn pawn)
|
||||
{
|
||||
if (pawn == null)
|
||||
return null;
|
||||
|
||||
List<DirectPawnRelation> parentRelations = pawn.relations.DirectRelations.FindAll(rel => rel.def.Equals(PawnRelationDefOf.Parent));
|
||||
foreach (DirectPawnRelation parent in parentRelations)
|
||||
{
|
||||
var xenotype = HiveUtility.TryGetDroneXenotype(parent.otherPawn);
|
||||
if (xenotype != null) return xenotype;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void MakeQueenBornLetter(Pawn bornQueen)
|
||||
{
|
||||
if (bornQueen == null) return;
|
||||
|
||||
var letter = LetterMaker.MakeLetter(
|
||||
"rjw_genes_queenbirth_letter_label".Translate(),
|
||||
string.Format("rjw_genes_queenbirth_letter_description".Translate(), xxx.get_pawnname(bornQueen)),
|
||||
LetterDefOf.NeutralEvent, bornQueen);
|
||||
Find.LetterStack.ReceiveLetter(letter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up if there is a Xenotype with Queen-Gene for the pawns parents.
|
||||
/// This is to account that maybe father or mother are the queen (instead of hardcoding things for father).
|
||||
/// If both are queens, the first is returned.
|
||||
/// </summary>
|
||||
/// <param name="pawn">The pawn for whichs parent the xenotypes is looked up.</param>
|
||||
/// <returns>The Queen-Xenotype of a parent or null. If both are queens, mothers are preferred.</returns>
|
||||
public static Either<XenotypeDef,CustomXenotype> TryFindParentQueenXenotype(Pawn pawn)
|
||||
{
|
||||
if (pawn == null)
|
||||
return null;
|
||||
|
||||
List<DirectPawnRelation> parentRelations = pawn.relations.DirectRelations.FindAll(rel => rel.def.Equals(PawnRelationDefOf.Parent));
|
||||
foreach (var parent in parentRelations)
|
||||
{
|
||||
var xenotype = HiveUtility.TryGetQueenXenotype(parent.otherPawn);
|
||||
if (xenotype != null) return xenotype;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,274 +0,0 @@
|
|||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
internal class HiveUtility
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Checks for existance of the RJW-Gene `queen`, if the pawn is spawned and if the pawn has reached adulthood.
|
||||
/// Despite the naming, a Queen can also be male.
|
||||
/// </summary>
|
||||
/// <param name="pawn">The pawn that could be an Adult Queen</param>
|
||||
/// <returns>Whether the pawn is an adult queen.</returns>
|
||||
public static bool IsAdultQueen(Pawn pawn)
|
||||
{
|
||||
|
||||
if (pawn == null || !pawn.Spawned)
|
||||
return false;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_queen))
|
||||
{
|
||||
return pawn.ageTracker.Adult;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static int QueensOnMap() => GetQueensOnMap().Count;
|
||||
|
||||
/// <summary>
|
||||
/// Checks for all pawns on the Players Home Map if they are an adult queen.
|
||||
/// Adultness is determined by Base-Game Logic, Queen is determined by the rjw_genes_queen GeneDefOf (Not Xenotype).
|
||||
/// </summary>
|
||||
/// <returns>A list of queens on the players HomeMap</returns>
|
||||
public static List<Pawn> GetQueensOnMap()
|
||||
{
|
||||
Map map = Find.Maps.Where(mapCandidate => mapCandidate.IsPlayerHome).First();
|
||||
|
||||
if (map != null)
|
||||
{
|
||||
List<Pawn> playersPawns = map.mapPawns.SpawnedPawnsInFaction(Faction.OfPlayer);
|
||||
return playersPawns.FindAll(pawn => pawn.Spawned && IsAdultQueen(pawn));
|
||||
}
|
||||
// Fallback: Something is wrong with Map
|
||||
return new List<Pawn>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the pawn is on the players home map.
|
||||
///
|
||||
/// Reason is that drones should only be punished for absence of queen if they are on the map and there is no queen.
|
||||
/// If they are on a mission, transport-pod etc. they should not get boni or mali.
|
||||
/// </summary>
|
||||
/// <param name="pawn">The pawn for which to check map-presence.</param>
|
||||
/// <returns>True if the pawn is on the home-map, False otherwise.</returns>
|
||||
public static bool PawnIsOnHomeMap(Pawn pawn)
|
||||
{
|
||||
if (Find.Maps.NullOrEmpty() || !Find.Maps.Where(mapCandidate => mapCandidate.IsPlayerHome).Any()) {
|
||||
return false;
|
||||
}
|
||||
Map homeMap = Find.Maps.Where(mapCandidate => mapCandidate.IsPlayerHome).First();
|
||||
return
|
||||
homeMap != null && pawn != null
|
||||
&& pawn.Spawned
|
||||
&& pawn.Map == homeMap;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the Xenotype of a pawn if the pawn has a xenotype with the queen gene.
|
||||
/// Null otherwise.
|
||||
/// </summary>
|
||||
/// <param name="pawn"></param>
|
||||
/// <returns>A xenotype with a queen gene, or null.</returns>
|
||||
public static Either<XenotypeDef,CustomXenotype> TryGetQueenXenotype(Pawn pawn)
|
||||
{
|
||||
if (pawn == null)
|
||||
return null;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_queen))
|
||||
{
|
||||
var potentialXenotype = pawn.genes.Xenotype;
|
||||
if (potentialXenotype != null && potentialXenotype.genes.Contains(GeneDefOf.rjw_genes_queen))
|
||||
{
|
||||
return new Either<XenotypeDef,CustomXenotype>(potentialXenotype);
|
||||
}
|
||||
|
||||
var potentialCustomXenotype = pawn.genes.CustomXenotype;
|
||||
if (potentialCustomXenotype != null && potentialCustomXenotype.genes.Contains(GeneDefOf.rjw_genes_queen))
|
||||
{
|
||||
return new Either<XenotypeDef, CustomXenotype>(potentialCustomXenotype);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Returns the Xenotype of a pawn if the pawn has a xenotype with the drone gene.
|
||||
/// Null otherwise.
|
||||
/// </summary>
|
||||
/// <param name="pawn"></param>
|
||||
/// <returns>A xenotype with a drone gene, or null.</returns>
|
||||
public static Either<XenotypeDef,CustomXenotype> TryGetDroneXenotype(Pawn pawn)
|
||||
{
|
||||
if (pawn == null)
|
||||
return null;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_drone))
|
||||
{
|
||||
var potentialXenotype = pawn.genes.Xenotype;
|
||||
if (potentialXenotype != null && potentialXenotype.genes.Contains(GeneDefOf.rjw_genes_drone))
|
||||
{
|
||||
return new Either<XenotypeDef,CustomXenotype>(potentialXenotype);
|
||||
}
|
||||
|
||||
var potentialCustomXenotype = pawn.genes.CustomXenotype;
|
||||
if (potentialCustomXenotype != null && potentialCustomXenotype.genes.Contains(GeneDefOf.rjw_genes_drone))
|
||||
{
|
||||
return new Either<XenotypeDef, CustomXenotype>(potentialCustomXenotype);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up the Queen-WorkerMappings and returns a cleaned / updated dictionary.
|
||||
///
|
||||
/// This method takes care of genes maybe not existing (from other mods) or misspellings etc.
|
||||
/// Prints a bigger piece of information when debug printing is enabled.
|
||||
/// </summary>
|
||||
/// <returns>A mapping which Queen-Xenotypes should produce which worker genes.</returns>
|
||||
public static Dictionary<String,List<GeneDef>> GetQueenWorkerMappings()
|
||||
{
|
||||
IEnumerable<QueenWorkerMappingDef> mappingDefs = DefDatabase<QueenWorkerMappingDef>.AllDefs;
|
||||
|
||||
Dictionary<string, List<GeneDef>> results = new Dictionary<string, List<GeneDef>>();
|
||||
|
||||
// Dev-Note: I first a nice lambda here, but I used nesting in favour of logging.
|
||||
foreach (QueenWorkerMappingDef mappingDef in mappingDefs)
|
||||
{
|
||||
// Option A) This is the default worker genes, expected, just ignore.
|
||||
if (mappingDef.defName == "rjw_genes_default_worker_genes")
|
||||
{
|
||||
// Do nothing, there is no lookup but this entry is fine and should not log a warning.
|
||||
continue;
|
||||
}
|
||||
// Option B) The Xenotype is a "static" Xenotype, from a mod or something.
|
||||
XenotypeDef queenDef = DefDatabase<XenotypeDef>.GetNamed(mappingDef.queenXenotype);
|
||||
string defName = null;
|
||||
if (queenDef != null)
|
||||
{
|
||||
defName = queenDef.defName;
|
||||
}
|
||||
else if (Current.Game != null && Current.Game.customXenotypeDatabase != null)
|
||||
{
|
||||
// Option C) The Xenotype is a Custom Xenotype, created by the player
|
||||
CustomXenotype customQueenDef = Current.Game.customXenotypeDatabase.customXenotypes.Find(f => f.name == mappingDef.defName);
|
||||
defName = customQueenDef?.name;
|
||||
}
|
||||
if (defName != null)
|
||||
{
|
||||
List<GeneDef> workerGenes = new List<GeneDef>();
|
||||
foreach (string geneName in mappingDef.workerGenes)
|
||||
{
|
||||
GeneDef workerGene = DefDatabase<GeneDef>.GetNamed(geneName);
|
||||
if (workerGene != null)
|
||||
workerGenes.Add(workerGene);
|
||||
else if(RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
ModLog.Warning($"Could not look up Gene {geneName} for {mappingDef.queenXenotype}.");
|
||||
}
|
||||
results.Add(defName, workerGenes);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Option D) Fallback, unknown
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
ModLog.Warning($"Did not find a matching xenotype for {mappingDef.queenXenotype}! Defaulting to rjw_genes_default_worker_genes.");
|
||||
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up the default genes for any queen offspring that has no other definition for it.
|
||||
/// This is done by looking for the mapping with *exactly* defName rjw_genes_default_worker_genes.
|
||||
///
|
||||
/// The idea is that players can edit the default types, but that this is a protected keyword.
|
||||
/// </summary>
|
||||
/// <returns>A list of genes for workers that do not have specific mappings defined.</returns>
|
||||
public static List<GeneDef> LookupDefaultWorkerGenes()
|
||||
{
|
||||
IEnumerable<QueenWorkerMappingDef> mappingDefs = DefDatabase<QueenWorkerMappingDef>.AllDefs;
|
||||
|
||||
List<GeneDef> workerGenes = new List<GeneDef>();
|
||||
|
||||
var defaultMapping = mappingDefs.First(m => m.defName == "rjw_genes_default_worker_genes");
|
||||
if (defaultMapping == null)
|
||||
{
|
||||
ModLog.Error("Did not find default worker genes for queen-offspring! Please make sure you did not rename the 'rjw_genes_default_worker_genes'.");
|
||||
return workerGenes;
|
||||
}
|
||||
|
||||
foreach (string geneName in defaultMapping.workerGenes)
|
||||
{
|
||||
GeneDef workerGene = DefDatabase<GeneDef>.GetNamed(geneName);
|
||||
if (workerGene != null)
|
||||
workerGenes.Add(workerGene);
|
||||
else if (RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
ModLog.Warning($"Could not look up gene {geneName} for rjw_genes_default_worker_genes.");
|
||||
}
|
||||
|
||||
return workerGenes;
|
||||
}
|
||||
|
||||
public static IEnumerable<XenotypeDef> getQueenXenotypes()
|
||||
{
|
||||
return DefDatabase<XenotypeDef>.AllDefs.Where(type => type.genes.Contains(GeneDefOf.rjw_genes_queen));
|
||||
}
|
||||
|
||||
public static IEnumerable<XenotypeDef> getDroneXenotypes()
|
||||
{
|
||||
return DefDatabase<XenotypeDef>.AllDefs.Where(type => type.genes.Contains(GeneDefOf.rjw_genes_drone));
|
||||
}
|
||||
|
||||
|
||||
public static String GetXenotypeDefName(Either<XenotypeDef, CustomXenotype> def)
|
||||
{
|
||||
if (def == null)
|
||||
return null;
|
||||
else if (def.isLeft)
|
||||
return def.left.defName;
|
||||
else
|
||||
return def.right.name;
|
||||
}
|
||||
|
||||
public static HiveOffspringChanceDef LookupDefaultHiveInheritanceChances()
|
||||
{
|
||||
IEnumerable<HiveOffspringChanceDef> offspringChanceDefs = DefDatabase<HiveOffspringChanceDef>.AllDefs;
|
||||
|
||||
List<GeneDef> workerGenes = new List<GeneDef>();
|
||||
|
||||
var defaultChance = offspringChanceDefs.First(m => m.defName == "rjw_genes_default_hive_offspring_chances");
|
||||
|
||||
if (defaultChance == null)
|
||||
ModLog.Warning("Did not find `rjw_genes_default_hive_offspring_chances`. Someone likely changed the defname!");
|
||||
|
||||
return defaultChance;
|
||||
}
|
||||
|
||||
public static HiveOffspringChanceDef LookupHiveInheritanceChances(Either<XenotypeDef, CustomXenotype> queenDef)
|
||||
{
|
||||
if (queenDef == null)
|
||||
return LookupDefaultHiveInheritanceChances();
|
||||
|
||||
String queenDefName = queenDef.isLeft ? queenDef.left.defName : queenDef.right.name;
|
||||
|
||||
IEnumerable<HiveOffspringChanceDef> offspringChanceDefs = DefDatabase<HiveOffspringChanceDef>.AllDefs;
|
||||
|
||||
return offspringChanceDefs.FirstOrFallback(t => t.queenXenotype == queenDefName, LookupDefaultHiveInheritanceChances());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
using HarmonyLib;
|
||||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// Patches the method `ApplyBirthOutcome` from `PregnancyUtility`.
|
||||
///
|
||||
/// The 'ApplyBirthOutcome' returns the finished baby, for which we alter the pawn according to our xenotypes.
|
||||
/// </summary>
|
||||
|
||||
[HarmonyPatch(typeof(PregnancyUtility), nameof(PregnancyUtility.ApplyBirthOutcome))]
|
||||
public class Patch_BirthOutcome_SetHiveGenes
|
||||
{
|
||||
|
||||
|
||||
[HarmonyPostfix]
|
||||
static void HandleHiveBasedInheritance(ref Thing __result)
|
||||
{
|
||||
|
||||
// Check: Was the born thing a pawn?
|
||||
if (__result == null || !(__result is Pawn))
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message("There was a birth of something non-human - not entering logic for queen-drone-xenotype inheritance.");
|
||||
return;
|
||||
}
|
||||
|
||||
Pawn pawn = (Pawn)__result;
|
||||
|
||||
// Important: Not all pawns have mother/father. Some Pawns are born in Growth-Vats or born from mod.
|
||||
bool hasQueenParent = HiveBirthLogic.TryFindParentQueenXenotype(pawn) != null;
|
||||
bool hasDroneParent = HiveBirthLogic.TryFindParentDroneXenotype(pawn) != null;
|
||||
|
||||
if (hasQueenParent)
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"PostFix PregnancyUtility::ApplyBirthOutcome - Checking Hive Inheritance because {pawn} has a queen parent.");
|
||||
|
||||
HiveBirthLogic.ManageHiveBirth(pawn, hasDroneParent);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"Ignoring Postfix PregnancyUtility::ApplyBirthOutcome - No Quene Parent - Doing Nothing");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,99 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using HarmonyLib;
|
||||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// This Class patches the AfterSexUtility to also fertilize eggs if Pawn A has "InsectBreeder" and Pawn B has Insect Eggs.
|
||||
/// Patched Class is https://gitgud.io/Ed86/rjw/-/blob/master/1.4/Source/Common/Helpers/SexUtility.cs
|
||||
///
|
||||
/// Normal Egg-Pregnancy logic is in https://gitgud.io/Ed86/rjw/-/blob/master/1.4/Source/Modules/Pregnancy/Pregnancy_Helper.cs
|
||||
/// Gene: rjw_genes_insectbreeder
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(SexUtility), "Aftersex")]
|
||||
static class Patch_InsectBreeder_EggFertilization
|
||||
{
|
||||
public static void Postfix(SexProps props)
|
||||
{
|
||||
// Only Fertilize on vaginal / anal sex
|
||||
if (!(props.sexType == xxx.rjwSextype.Vaginal || props.sexType == xxx.rjwSextype.Anal))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (canDoEggFertilization(props.pawn, props.partner))
|
||||
{
|
||||
// Pawn has gene and Partner has eggs
|
||||
if (props.pawn.genes.GenesListForReading.Any(x => x.def == GeneDefOf.rjw_genes_insectbreeder) && !getEggsforPawn(props.partner).NullOrEmpty())
|
||||
{
|
||||
Pawn eggHolder = props.partner;
|
||||
Pawn impregnator = props.pawn;
|
||||
|
||||
foreach (Hediff_InsectEgg egg in getEggsforPawn(eggHolder))
|
||||
{
|
||||
if (!egg.fertilized)
|
||||
egg.Fertilize(impregnator);
|
||||
}
|
||||
}
|
||||
|
||||
// Partner has gene and Pawn has eggs
|
||||
if (props.partner.genes.GenesListForReading.Any(x => x.def == GeneDefOf.rjw_genes_insectbreeder) && !getEggsforPawn(props.pawn).NullOrEmpty())
|
||||
{
|
||||
Pawn eggHolder = props.pawn;
|
||||
Pawn impregnator = props.partner;
|
||||
|
||||
foreach (Hediff_InsectEgg egg in getEggsforPawn(eggHolder))
|
||||
{
|
||||
if (!egg.fertilized)
|
||||
egg.Fertilize(impregnator);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static bool canDoEggFertilization(Pawn a, Pawn b)
|
||||
{
|
||||
|
||||
// No Partner / Other Errors
|
||||
if (a != null || b != null)
|
||||
return false;
|
||||
// None of the pawns has the relevant gene
|
||||
if (!a.genes.GenesListForReading.Any(x => x.def == GeneDefOf.rjw_genes_insectbreeder) && !b.genes.GenesListForReading.Any(x => x.def == GeneDefOf.rjw_genes_insectbreeder))
|
||||
return false;
|
||||
// None of the pawns has eggs
|
||||
if (getEggsforPawn(a).NullOrEmpty() && getEggsforPawn(b).NullOrEmpty())
|
||||
return false;
|
||||
|
||||
// A has gene and B has eggs
|
||||
if (a.genes.GenesListForReading.Any(x => x.def == GeneDefOf.rjw_genes_insectbreeder) && !getEggsforPawn(b).NullOrEmpty())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// B has gene and A has eggs
|
||||
if (b.genes.GenesListForReading.Any(x => x.def == GeneDefOf.rjw_genes_insectbreeder) && !getEggsforPawn(a).NullOrEmpty())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// Any other case: Do nothing
|
||||
return false;
|
||||
}
|
||||
|
||||
private static List<Hediff_InsectEgg> getEggsforPawn(Pawn pawn)
|
||||
{
|
||||
List<Hediff_InsectEgg> eggs = new List<Hediff_InsectEgg>();
|
||||
pawn.health.hediffSet.GetHediffs(ref eggs);
|
||||
foreach (var egg in eggs)
|
||||
egg.Fertilize(pawn);
|
||||
|
||||
return eggs;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
using HarmonyLib;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// Patches the method `ProcessHumanLikeInsectEgg` from `Hediff_InsectEgg`.
|
||||
///
|
||||
/// The 'ProcessHumanLikeInsectEgg' returns the finished baby, for which we alter the pawn according to our xenotypes.
|
||||
/// Note: This covers Insect-Egg Pregnancies only, and there is a (very similar) class `Patch_BirthOutCome_SetHiveGenes.cs` that handles normal pregnancies
|
||||
/// </summary>
|
||||
|
||||
[HarmonyPatch(typeof(Hediff_InsectEgg), "ProcessHumanLikeInsectEgg")]
|
||||
public class Patch_InsectEgg_BirthBaby_SetHiveGenes
|
||||
{
|
||||
|
||||
|
||||
[HarmonyPostfix]
|
||||
static void HandleHiveBasedInheritance(ref Thing __result, ref Hediff_InsectEgg __instance)
|
||||
{
|
||||
// Check: Was the born thing a pawn?
|
||||
if (__result == null || !(__result is Pawn))
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message("There was a birth of something non-human - not entering logic for queen-drone-xenotype inheritance.");
|
||||
return;
|
||||
}
|
||||
|
||||
Pawn pawn = (Pawn)__result;
|
||||
|
||||
Either<XenotypeDef,CustomXenotype> queenDef = HiveBirthLogic.TryFindParentQueenXenotype(pawn) ?? TryFindParentQueenXenotypeFromEgg(__instance);
|
||||
Either<XenotypeDef, CustomXenotype> droneDef = HiveBirthLogic.TryFindParentDroneXenotype(pawn) ?? TryFindParentDroneXenotypeFromEgg(__instance);
|
||||
|
||||
bool hasQueenParent = queenDef != null;
|
||||
bool hasDroneParent = droneDef != null;
|
||||
|
||||
if (hasQueenParent)
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"PostFix Hediff_InsectEgg::ProcessHumanLikeInsectEgg - Checking Hive Inheritance because {pawn} has a queen parent.");
|
||||
HiveBirthLogic.ManageHiveBirth(pawn, hasDroneParent, fallbackQueenDef: queenDef, fallbackDroneDef: droneDef);
|
||||
} else
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug) ModLog.Message($"Ignoring Postfix Hediff_InsectEgg::ProcessHumanLikeInsectEgg - No Queen Parent - No Action.");
|
||||
|
||||
// Extra Debug for #56
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
{
|
||||
ModLog.Message($"Implanter was: ({__instance.implanter.genes.xenotypeName}|{__instance.implanter.genes.Xenotype}), Fertilizer was: ({__instance.father.genes.xenotypeName}|{__instance.father.genes.Xenotype})");
|
||||
ModLog.Message($"Implanter Xenotype From helper: {HiveUtility.TryGetQueenXenotype(__instance.implanter)} and has Queen {__instance.implanter.genes.HasGene(GeneDefOf.rjw_genes_queen)}");
|
||||
ModLog.Message($"Father Xenotype From helper: {HiveUtility.TryGetDroneXenotype(__instance.implanter)} and has Drone {__instance.father.genes.HasGene(GeneDefOf.rjw_genes_drone)}");
|
||||
CustomXenotype custom = __instance.implanter.genes.CustomXenotype;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tries to retrieve a queen-xenotype-def from a given egg.
|
||||
/// Checking priority goes: Implanter > Fertilizer > Null Otherwise.
|
||||
///
|
||||
/// This is meant to be a fallback to the parent-relations which were not present in RJW 5.3.1.
|
||||
/// Some comments and thoughts are captured in Issue #37.
|
||||
/// </summary>
|
||||
/// <param name="egg">An Egg for which queens are looked up for</param>
|
||||
/// <returns>The relevant xenotypedef of a queen, or null.</returns>
|
||||
public static Either<XenotypeDef, CustomXenotype> TryFindParentQueenXenotypeFromEgg(Hediff_InsectEgg egg)
|
||||
{
|
||||
Either<XenotypeDef, CustomXenotype> queenDef = null;
|
||||
if (egg == null)
|
||||
return null;
|
||||
|
||||
if (egg.implanter != null)
|
||||
queenDef = HiveUtility.TryGetQueenXenotype(egg.implanter);
|
||||
|
||||
if (queenDef == null && egg.father != null)
|
||||
queenDef = HiveUtility.TryGetQueenXenotype(egg.implanter);
|
||||
|
||||
return queenDef;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Tries to retrieve a drone-xenotype-def from a given egg.
|
||||
/// Checking priority goes: Implanter > Fertilizer > Null Otherwise.
|
||||
///
|
||||
/// This is meant to be a fallback to the parent-relations which were not present in RJW 5.3.1.
|
||||
/// Some comments and thoughts are captured in Issue #37.
|
||||
/// </summary>
|
||||
/// <param name="egg">An Egg for which drones are looked up for</param>
|
||||
/// <returns>The relevant xenotypedef of a drone, or null.</returns>
|
||||
public static Either<XenotypeDef, CustomXenotype> TryFindParentDroneXenotypeFromEgg(Hediff_InsectEgg egg)
|
||||
{
|
||||
Either<XenotypeDef, CustomXenotype> droneDef = null;
|
||||
if (egg == null)
|
||||
return null;
|
||||
|
||||
if (egg.implanter != null)
|
||||
droneDef = HiveUtility.TryGetQueenXenotype(egg.implanter);
|
||||
|
||||
if (droneDef == null && egg.father != null)
|
||||
droneDef = HiveUtility.TryGetQueenXenotype(egg.implanter);
|
||||
|
||||
return droneDef;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection.Emit;
|
||||
using System.Reflection;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using HarmonyLib;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// This Class patches the RJW-DoEgg to allow up to MaxEggSizeMul times the original amount of eggs.
|
||||
/// This harmony patch was kindly provided by 'shabalox' https://github.com/Shabalox/RJW_Genes_Addons/
|
||||
///
|
||||
/// For Gene: rjw_genes_insectincubator
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(PregnancyHelper), "DoEgg")]
|
||||
static class Patch_InsectIncubator_PregnancyHelper
|
||||
{
|
||||
[HarmonyTranspiler]
|
||||
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator il)
|
||||
{
|
||||
//MethodInfo isinsectincubator = AccessTools.Method(typeof(GeneUtility), "IsInsectIncubator");
|
||||
MethodInfo maxeggsizemul = AccessTools.Method(typeof(GeneUtility), "MaxEggSizeMul");
|
||||
FieldInfo partner = AccessTools.Field(typeof(SexProps), "partner");
|
||||
|
||||
Label skiplabel = il.DefineLabel();
|
||||
bool finished = false;
|
||||
foreach (CodeInstruction codeInstruction in instructions)
|
||||
{
|
||||
if (!finished)
|
||||
{
|
||||
if (codeInstruction.opcode == OpCodes.Ldc_R4 && codeInstruction.operand.ToString() == "0")
|
||||
{
|
||||
yield return new CodeInstruction(OpCodes.Ldarg_0, null);
|
||||
yield return new CodeInstruction(OpCodes.Ldfld, partner);
|
||||
//yield return new CodeInstruction(OpCodes.Call, isinsectincubator);
|
||||
yield return new CodeInstruction(OpCodes.Callvirt, maxeggsizemul);
|
||||
//yield return new CodeInstruction(OpCodes.Brfalse_S, skiplabel);
|
||||
yield return new CodeInstruction(OpCodes.Ldloc_0, null);
|
||||
//yield return new CodeInstruction(OpCodes.Ldc_R4, 2f);
|
||||
yield return new CodeInstruction(OpCodes.Mul, null);
|
||||
yield return new CodeInstruction(OpCodes.Stloc_0, null);
|
||||
//codeInstruction.labels.Add(skiplabel);
|
||||
finished = true;
|
||||
}
|
||||
}
|
||||
yield return codeInstruction;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class ThoughtWorker_QueenPresent_Social : ThoughtWorker
|
||||
{
|
||||
protected override ThoughtState CurrentSocialStateInternal(Pawn p, Pawn other)
|
||||
{
|
||||
// p is the pawn `thinking`, and other is the pawn being thought about.
|
||||
// here: p = loyal pawn, other = potential queen
|
||||
|
||||
if (!p.RaceProps.Humanlike)
|
||||
return (ThoughtState) false;
|
||||
|
||||
if (!other.RaceProps.Humanlike)
|
||||
return (ThoughtState) false;
|
||||
|
||||
if (!RelationsUtility.PawnsKnowEachOther(p, other))
|
||||
return (ThoughtState) false;
|
||||
|
||||
// Only check if they are spawned
|
||||
if (!p.Spawned || !other.Spawned)
|
||||
return (ThoughtState)false;
|
||||
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(p))
|
||||
return (ThoughtState)false;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(p, GeneDefOf.rjw_genes_zealous_loyalty) && HiveUtility.QueensOnMap() == 1)
|
||||
{
|
||||
return (ThoughtState) HiveUtility.IsAdultQueen(other);
|
||||
}
|
||||
|
||||
return (ThoughtState)false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class ThoughtWorker_RivalQueen_Social : ThoughtWorker
|
||||
{
|
||||
protected override ThoughtState CurrentSocialStateInternal(Pawn p, Pawn other)
|
||||
{
|
||||
if (!p.RaceProps.Humanlike)
|
||||
return (ThoughtState)false;
|
||||
if (!other.RaceProps.Humanlike)
|
||||
return (ThoughtState)false;
|
||||
|
||||
if (!RelationsUtility.PawnsKnowEachOther(p, other))
|
||||
return (ThoughtState)false;
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(p))
|
||||
return (ThoughtState)false;
|
||||
|
||||
// Only check if they are spawned
|
||||
if (!p.Spawned || !other.Spawned)
|
||||
{
|
||||
return (ThoughtState)false;
|
||||
}
|
||||
|
||||
if(HiveUtility.IsAdultQueen(p) && HiveUtility.IsAdultQueen(other))
|
||||
{
|
||||
return (ThoughtState)true;
|
||||
}
|
||||
return (ThoughtState)false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class ThoughtWorker_WorkerDespised_Social : ThoughtWorker
|
||||
{
|
||||
protected override ThoughtState CurrentSocialStateInternal(Pawn p, Pawn other)
|
||||
{
|
||||
// p is the pawn `thinking`, and other is the pawn being thought about.
|
||||
// here: p = queen, other = potential worker
|
||||
|
||||
if (!p.RaceProps.Humanlike)
|
||||
return (ThoughtState) false;
|
||||
|
||||
if (!other.RaceProps.Humanlike)
|
||||
return (ThoughtState) false;
|
||||
|
||||
if (!RelationsUtility.PawnsKnowEachOther(p, other))
|
||||
return (ThoughtState) false;
|
||||
|
||||
// Only check if they are spawned
|
||||
if (!p.Spawned || !other.Spawned)
|
||||
return (ThoughtState)false;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(p, GeneDefOf.rjw_genes_queen) && GeneUtility.HasGeneNullCheck(other, GeneDefOf.rjw_genes_worker))
|
||||
{
|
||||
return (ThoughtState)true;
|
||||
}
|
||||
|
||||
return (ThoughtState)false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Thoughtworker_MultipleQueens_Mood : ThoughtWorker
|
||||
{
|
||||
|
||||
protected override ThoughtState CurrentStateInternal(Pawn p)
|
||||
{
|
||||
// Error Handling and Check for Pawn being on Map
|
||||
if (p == null || !p.Spawned)
|
||||
return (ThoughtState) false;
|
||||
// Queens cannot have loyalty thoughts
|
||||
if (GeneUtility.HasGeneNullCheck(p, GeneDefOf.rjw_genes_queen))
|
||||
return (ThoughtState)false;
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(p))
|
||||
return (ThoughtState)false;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(p, GeneDefOf.rjw_genes_zealous_loyalty) && HiveUtility.QueensOnMap() >= 2)
|
||||
{
|
||||
return (ThoughtState)true;
|
||||
}
|
||||
|
||||
return (ThoughtState) false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Thoughtworker_QueenAbsent_Mood : ThoughtWorker
|
||||
{
|
||||
|
||||
protected override ThoughtState CurrentStateInternal(Pawn p)
|
||||
{
|
||||
// Error Handling and Check for Pawn being on Map
|
||||
if (p == null || !p.Spawned)
|
||||
return (ThoughtState) false;
|
||||
// Queens cannot have loyalty thoughts
|
||||
if (GeneUtility.HasGeneNullCheck(p, GeneDefOf.rjw_genes_queen))
|
||||
return (ThoughtState)false;
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(p))
|
||||
return (ThoughtState)false;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(p, GeneDefOf.rjw_genes_zealous_loyalty) && HiveUtility.QueensOnMap() == 0)
|
||||
{
|
||||
return (ThoughtState)true;
|
||||
}
|
||||
|
||||
return (ThoughtState) false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Thoughtworker_QueenPresent_Mood : ThoughtWorker
|
||||
{
|
||||
|
||||
protected override ThoughtState CurrentStateInternal(Pawn p)
|
||||
{
|
||||
// Error Handling and Check for Pawn being on Map
|
||||
if (p == null || !p.Spawned)
|
||||
return (ThoughtState) false;
|
||||
// Queens cannot have loyalty thoughts
|
||||
if (GeneUtility.HasGeneNullCheck(p, GeneDefOf.rjw_genes_queen))
|
||||
return (ThoughtState)false;
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(p))
|
||||
return (ThoughtState)false;
|
||||
|
||||
if (GeneUtility.HasGeneNullCheck(p, GeneDefOf.rjw_genes_zealous_loyalty) && HiveUtility.QueensOnMap() == 1)
|
||||
{
|
||||
return (ThoughtState)true;
|
||||
}
|
||||
|
||||
return (ThoughtState) false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Thoughtworker_RivalQueen_Mood : ThoughtWorker
|
||||
{
|
||||
|
||||
protected override ThoughtState CurrentStateInternal(Pawn p)
|
||||
{
|
||||
if (p == null || !p.Spawned)
|
||||
return (ThoughtState) false;
|
||||
// If the pawn is not on Map (e.g. caravan), no mali
|
||||
if (!HiveUtility.PawnIsOnHomeMap(p))
|
||||
return (ThoughtState)false;
|
||||
|
||||
if (HiveUtility.IsAdultQueen(p) && HiveUtility.QueensOnMap() >= 2)
|
||||
{
|
||||
return (ThoughtState) true;
|
||||
}
|
||||
|
||||
return (ThoughtState) false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,135 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
using Verse.AI.Group;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class IncidentWorker_SuccubusDreamVisit : IncidentWorker
|
||||
{
|
||||
//This incidint will only fire if there is a pawn asleep and sexneed is lower than 0.25
|
||||
protected override bool CanFireNowSub(IncidentParms parms)
|
||||
{
|
||||
if (!base.CanFireNowSub(parms))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Map map = (Map)parms.target;
|
||||
if (!map.mapTemperature.SeasonAcceptableFor(ThingDefOf.Human))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!RJW_Genes_Settings.rjw_genes_sexdemon_visit_incubi && !RJW_Genes_Settings.rjw_genes_sexdemon_visit_succubi)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (Pawn pawn in map.mapPawns.FreeColonistsAndPrisonersSpawned)
|
||||
{
|
||||
if (pawn.jobs.curDriver.asleep && xxx.need_some_sex(pawn) > 1f)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
protected override bool TryExecuteWorker(IncidentParms parms)
|
||||
{
|
||||
Map map = (Map)parms.target;
|
||||
List < Pawn > victims = ValidVictims(map).ToList();
|
||||
if(victims.NullOrEmpty())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Faction faction;
|
||||
if (!this.TryFindFormerFaction(out faction))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int pawn_amount = RJW_Genes_Settings.rjw_genes_sexdemon_visit_groups ? Rand.Range(1, victims.Count) : 1;
|
||||
List<Pawn> new_sexdemons = new List<Pawn>();
|
||||
for (int i = 0; i < pawn_amount; i++)
|
||||
{
|
||||
Pawn victim = victims.RandomElement();
|
||||
IntVec3 loc = victim.Position;
|
||||
|
||||
PawnKindDef pawnKindDef;
|
||||
Gender gender;
|
||||
if (victim.gender == Gender.Male || !RJW_Genes_Settings.rjw_genes_sexdemon_visit_incubi)
|
||||
{
|
||||
|
||||
}
|
||||
if ((Rand.Bool && RJW_Genes_Settings.rjw_genes_sexdemon_visit_succubi) || !RJW_Genes_Settings.rjw_genes_sexdemon_visit_incubi)
|
||||
{
|
||||
pawnKindDef = PawnKindDef.Named("rjw_genes_succubus");
|
||||
gender = Gender.Female;
|
||||
}
|
||||
else
|
||||
{
|
||||
pawnKindDef = PawnKindDef.Named("rjw_genes_incubus");
|
||||
gender = Gender.Male;
|
||||
}
|
||||
|
||||
//Spawn succubus at pawn
|
||||
Pawn sexdemon = PawnGenerator.GeneratePawn(new PawnGenerationRequest(pawnKindDef, faction, PawnGenerationContext.NonPlayer, -1,
|
||||
false, false, false, true, false, 1f, false, true, false, true, true, false, false, false, false, 0f, 0f, null, 1f, null, null,
|
||||
null, null, null, null, null, gender, null, null, null, null, false, false, false, false, null, null, null, null, null, 0f,
|
||||
DevelopmentalStage.Adult, null, null, null, false));
|
||||
sexdemon.SetFaction(null, null);
|
||||
GenSpawn.Spawn(sexdemon, loc, map, WipeMode.Vanish);
|
||||
List<Pawn> sexdemons = new List<Pawn> { sexdemon };
|
||||
new_sexdemons.Add(sexdemon);
|
||||
|
||||
|
||||
LordMaker.MakeNewLord(Faction.OfPlayer, this.CreateLordJob(parms, sexdemon, victim), map, sexdemons);
|
||||
|
||||
//Make succubus rape victim.
|
||||
if (RJWSettings.rape_enabled)
|
||||
{
|
||||
//follow rjw rules
|
||||
if (SexAppraiser.would_fuck(sexdemon,victim) > 0f)
|
||||
{
|
||||
sexdemon.pather.StopDead();
|
||||
sexdemon.jobs.StopAll();
|
||||
Job newJob = JobMaker.MakeJob(xxx.RapeRandom, victim);
|
||||
sexdemon.jobs.StartJob(newJob, JobCondition.InterruptForced, null, false, true, null, null, false, false, null, false, true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Find.LetterStack.ReceiveLetter("rjw_genes_sexdemon_visit_incident_label".Translate(), "rjw_genes_sexdemon_visit_incident_description".Translate(), LetterDefOf.PositiveEvent, new_sexdemons, null, null, null, null);
|
||||
//base.SendStandardLetter(baseLetterLabel, baseLetterText, this.def.letterDef, parms, succubus, Array.Empty<NamedArgument>());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private IEnumerable<Pawn> ValidVictims(Map map)
|
||||
{
|
||||
foreach (Pawn pawn in map.mapPawns.FreeColonistsAndPrisonersSpawned)
|
||||
{
|
||||
if (pawn.jobs.curDriver.asleep && xxx.need_some_sex(pawn) > 1f)
|
||||
{
|
||||
yield return pawn;
|
||||
}
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
private bool TryFindFormerFaction(out Faction formerFaction)
|
||||
{
|
||||
return Find.FactionManager.TryGetRandomNonColonyHumanlikeFaction(out formerFaction, false, true, TechLevel.Undefined, false);
|
||||
}
|
||||
|
||||
protected virtual LordJob_SuccubusVisit CreateLordJob(IncidentParms parms, Pawn succubus, Pawn target)
|
||||
{
|
||||
return new LordJob_SuccubusVisit(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,102 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Verse;
|
||||
using Verse.AI.Group;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
namespace RJW_Genes
|
||||
{
|
||||
//Based on LordJob_VisitColony
|
||||
public class LordJob_SuccubusVisit : LordJob
|
||||
{
|
||||
public LordJob_SuccubusVisit(){}
|
||||
public LordJob_SuccubusVisit(Pawn target)
|
||||
{
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
//
|
||||
//Stategraph has lordtoils which say what a pawn should be doing
|
||||
//Transitions say when active lordtoil for pawn should change
|
||||
//
|
||||
public override StateGraph CreateGraph()
|
||||
{
|
||||
StateGraph stateGraph = new StateGraph();
|
||||
|
||||
//Flirt
|
||||
LordToil_Flirt lordToil_Flirt = new LordToil_Flirt(this.target, 7f);
|
||||
stateGraph.AddToil(lordToil_Flirt);
|
||||
stateGraph.StartingToil = lordToil_Flirt;
|
||||
|
||||
//Leave
|
||||
LordToil_ExitMapRandom lordToil_ExitMapRandom = new LordToil_ExitMapRandom();
|
||||
stateGraph.AddToil(lordToil_ExitMapRandom);
|
||||
LordToil_ExitMapAndDefendSelf lordToil_ExitMapAndDefendSelf = new LordToil_ExitMapAndDefendSelf();
|
||||
stateGraph.AddToil(lordToil_ExitMapAndDefendSelf);
|
||||
|
||||
//Leave after some time
|
||||
Transition transition1 = new Transition(lordToil_Flirt, lordToil_ExitMapRandom, false, true);
|
||||
int tickLimit;
|
||||
if (this.durationTicks != null)
|
||||
{
|
||||
tickLimit = this.durationTicks.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
tickLimit = Rand.Range(60000, 180000); //~1-3 days
|
||||
}
|
||||
transition1.AddTrigger(new Trigger_TicksPassed(tickLimit));
|
||||
transition1.AddPreAction(new TransitionAction_Custom(new Action(this.SuccubiLeave))); //Join or leave colony
|
||||
stateGraph.AddTransition(transition1);
|
||||
|
||||
//If they become hostile
|
||||
Transition transition3 = new Transition(lordToil_Flirt, lordToil_ExitMapAndDefendSelf, false, true);
|
||||
transition3.AddSource(lordToil_ExitMapRandom); //Not sure what this does
|
||||
transition3.AddTrigger(new Trigger_BecamePlayerEnemy());
|
||||
transition3.AddTrigger(new Trigger_PawnKilled());
|
||||
transition3.AddPostAction(new TransitionAction_EndAllJobs());
|
||||
stateGraph.AddTransition(transition3, false);
|
||||
|
||||
Transition transition4 = new Transition(lordToil_ExitMapRandom, lordToil_ExitMapAndDefendSelf, false, true);
|
||||
transition4.AddSource(lordToil_Flirt); //Not sure what this does
|
||||
transition4.AddTrigger(new Trigger_PawnHarmed(1f, true, Faction.OfPlayer));
|
||||
stateGraph.AddTransition(transition4, false);
|
||||
|
||||
return stateGraph;
|
||||
}
|
||||
|
||||
//add toggleable gizmo to allow playes to have colonists sex the succubus into joining your colony
|
||||
//comfort pawn? cooldown?
|
||||
public override IEnumerable<Gizmo> GetPawnGizmos(Pawn p)
|
||||
{
|
||||
return base.GetPawnGizmos(p);
|
||||
}
|
||||
|
||||
public override void ExposeData()
|
||||
{
|
||||
Scribe_Values.Look<int?>(ref this.durationTicks, "durationTicks", null, false);
|
||||
Scribe_References.Look<Pawn>(ref this.target, "target", false);
|
||||
}
|
||||
|
||||
public void SuccubiLeave()
|
||||
{
|
||||
foreach (Pawn pawn in this.lord.ownedPawns)
|
||||
{
|
||||
if(colonyJoiners.Contains(pawn))
|
||||
{
|
||||
RecruitUtility.Recruit(pawn, Faction.OfPlayer);
|
||||
Find.LetterStack.ReceiveLetter("rjw_genes_succubus_joins_letter_label".Translate(), string.Format("rjw_genes_succubus_joins_letter_description".Translate(), xxx.get_pawnname(pawn)), LetterDefOf.PositiveEvent, pawn, null, null, null, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
Messages.Message("SuccubusLeaving".Translate(xxx.get_pawnname(pawn)), pawn, MessageTypeDefOf.NeutralEvent, true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Pawn target;
|
||||
private int? durationTicks;
|
||||
public List<Pawn> colonyJoiners = new List<Pawn>();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class HediffComp_SeverityFromFertilin : HediffComp
|
||||
{
|
||||
public HediffCompProperties_SeverityFromFertilin Props
|
||||
{
|
||||
get
|
||||
{
|
||||
return (HediffCompProperties_SeverityFromFertilin)this.props;
|
||||
}
|
||||
}
|
||||
public override bool CompShouldRemove
|
||||
{
|
||||
get
|
||||
{
|
||||
Pawn_GeneTracker genes = base.Pawn.genes;
|
||||
return ((genes != null) ? genes.GetFirstGeneOfType<Gene_LifeForce>() : null) == null;
|
||||
}
|
||||
}
|
||||
private Gene_LifeForce LifeForce
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.cachedLifeForceGene == null)
|
||||
{
|
||||
this.cachedLifeForceGene = base.Pawn.genes.GetFirstGeneOfType<Gene_LifeForce>();
|
||||
}
|
||||
return this.cachedLifeForceGene;
|
||||
}
|
||||
}
|
||||
public override void CompPostTick(ref float severityAdjustment)
|
||||
{
|
||||
base.CompPostTick(ref severityAdjustment);
|
||||
severityAdjustment += ((this.LifeForce.Value > 0f) ? this.Props.severityPerHourHemogen : this.Props.severityPerHourEmpty) / 2500f;
|
||||
this.MentalBreak();
|
||||
}
|
||||
|
||||
public void MentalBreak()
|
||||
{
|
||||
if (cachedLifeForceGene.Resource.Value <= cachedLifeForceGene.Resource.MinLevelForAlert && this.Pawn.IsHashIntervalTick(2500) && Rand.Chance(0.03f)) //~50% chance each day for mental break
|
||||
{
|
||||
if (this.Pawn.genes.HasGene(GeneDefOf.rjw_genes_cum_eater)
|
||||
|| this.Pawn.genes.HasGene(GeneDefOf.rjw_genes_fertilin_absorber) || this.Pawn.genes.HasGene(GeneDefOf.rjw_genes_drainer))
|
||||
{
|
||||
//TODO: use mentalstatedef instead of mentalbreakdef
|
||||
MentalBreakDef randomrape = GeneDefOf.rjw_genes_lifeforce_randomrape;
|
||||
if (ModsConfig.BiotechActive &&
|
||||
this.Pawn.Spawned && !this.Pawn.InMentalState && !this.Pawn.Downed &&
|
||||
randomrape.Worker.BreakCanOccur(this.Pawn))
|
||||
{
|
||||
randomrape.Worker.TryStart(this.Pawn, "MentalBreakNoFertilin".Translate(), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Gene_LifeForce cachedLifeForceGene;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
using RimWorld;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// This class checks for pawns with LifeForce and Cumeater Gene to add Fertilin when eating cum (the Item from RJW-Sexperience).
|
||||
/// </summary>
|
||||
public class IngestionOutcomeDoer_LifeForceOffset : IngestionOutcomeDoer
|
||||
{
|
||||
public const float DEFAULT_FERTILIN_PER_UNIT = 1f;
|
||||
public float FertilinPerUnit = 1f;
|
||||
|
||||
protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested)
|
||||
{
|
||||
if (GeneUtility.HasLifeForce(pawn) && GeneUtility.IsCumEater(pawn))
|
||||
{
|
||||
float num = ingested.stackCount * this.FertilinPerUnit / 100;
|
||||
GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(pawn), num);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
using rjw;
|
||||
using rjw.Modules.Interactions.Enums;
|
||||
using rjw.Modules.Interactions.Helpers;
|
||||
using rjw.Modules.Interactions.Objects;
|
||||
using rjw.Modules.Interactions.Contexts;
|
||||
using rjw.Modules.Interactions.Implementation;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
//Modified JobDriver_SexBaseRecieverLoved from rjw
|
||||
public class JobDriver_SexOnSpotReciever : JobDriver_SexBaseReciever
|
||||
{
|
||||
protected override IEnumerable<Toil> MakeNewToils()
|
||||
{
|
||||
base.setup_ticks();
|
||||
this.parteners.Add(base.Partner);
|
||||
if (this.pawn.relations.OpinionOf(base.Partner) < 0)
|
||||
{
|
||||
this.ticks_between_hearts += 50;
|
||||
}
|
||||
else if (this.pawn.relations.OpinionOf(base.Partner) > 60)
|
||||
{
|
||||
this.ticks_between_hearts -= 25;
|
||||
}
|
||||
this.FailOnDespawnedOrNull(this.iTarget);
|
||||
this.FailOn(() => !base.Partner.health.capacities.CanBeAwake);
|
||||
this.FailOn(() => this.pawn.Drafted);
|
||||
this.FailOn(() => base.Partner.Drafted);
|
||||
yield return Toils_Reserve.Reserve(this.iTarget, 1, 0, null);
|
||||
Toil toil2 = this.MakeSexToil();
|
||||
toil2.handlingFacing = false;
|
||||
yield return toil2;
|
||||
yield break;
|
||||
}
|
||||
|
||||
private Toil MakeSexToil()
|
||||
{
|
||||
Toil toil = new Toil();
|
||||
toil.defaultCompleteMode = ToilCompleteMode.Never;
|
||||
toil.socialMode = RandomSocialMode.Off;
|
||||
toil.handlingFacing = true;
|
||||
toil.tickAction = delegate ()
|
||||
{
|
||||
if (this.pawn.IsHashIntervalTick(this.ticks_between_hearts))
|
||||
{
|
||||
base.ThrowMetaIconF(this.pawn.Position, this.pawn.Map, FleckDefOf.Heart);
|
||||
}
|
||||
};
|
||||
toil.AddEndCondition(delegate
|
||||
{
|
||||
if (this.parteners.Count <= 0)
|
||||
{
|
||||
return JobCondition.Succeeded;
|
||||
}
|
||||
return JobCondition.Ongoing;
|
||||
});
|
||||
toil.AddFinishAction(delegate
|
||||
{
|
||||
if (xxx.is_human(this.pawn))
|
||||
{
|
||||
this.pawn.Drawer.renderer.graphics.ResolveApparelGraphics();
|
||||
}
|
||||
GlobalTextureAtlasManager.TryMarkPawnFrameSetDirty(this.pawn);
|
||||
Hediff submitting = this.pawn.health.hediffSet.GetFirstHediffOfDef(xxx.submitting);
|
||||
if (submitting != null)
|
||||
{
|
||||
this.pawn.health.RemoveHediff(submitting);
|
||||
this.pawn.stances.stunner.StunFor(60, this.pawn, true, true);
|
||||
}
|
||||
});
|
||||
toil.socialMode = RandomSocialMode.Off;
|
||||
return toil;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,188 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using rjw;
|
||||
using RJWSexperience;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
using Verse.AI.Group;
|
||||
using UnityEngine;
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class JobGiver_TryQuickieWith : ThinkNode_JobGiver
|
||||
{
|
||||
protected override Job TryGiveJob(Pawn pawn)
|
||||
{
|
||||
Pawn target = pawn.mindState.duty.focus.Pawn;
|
||||
Pawn_JobTracker jobs = target.jobs;
|
||||
string pawn_name = xxx.get_pawnname(pawn);
|
||||
string target_name = xxx.get_pawnname(target);
|
||||
//can reserve eachother
|
||||
if (pawn.CanReserveAndReach(target, PathEndMode.InteractionCell, Danger.Some) && target.CanReserve(pawn, 1, 0, null, false))
|
||||
{
|
||||
//Dont interrupt player
|
||||
if (!(((jobs != null) ? jobs.curJob : null) != null && jobs.curJob.playerForced))
|
||||
{
|
||||
float willingness = TargetWillingness(pawn, target);
|
||||
if (Rand.Chance(willingness))
|
||||
{
|
||||
Job newJob =JobMaker.MakeJob(xxx.quick_sex, target);
|
||||
|
||||
//Pawn joins faction when lordJob ends instead of leaving
|
||||
//in the future determine the chance of this another way
|
||||
if (Rand.Chance(JoinChance(pawn, target)))
|
||||
{
|
||||
Lord lord = pawn.GetLord();
|
||||
LordJob_SuccubusVisit lordJob = lord == null? null : lord.LordJob as LordJob_SuccubusVisit;
|
||||
if (lordJob != null)
|
||||
{
|
||||
if (!lordJob.colonyJoiners.Contains(pawn))
|
||||
{
|
||||
lordJob.colonyJoiners.Add(pawn);
|
||||
}
|
||||
}
|
||||
}
|
||||
return newJob;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (RJWSettings.DebugLogJoinInBed) //change this when we have our own settigns
|
||||
{
|
||||
ModLog.Message(string.Format("{0} was not interested in having sex with {1}: ({2} chance)", pawn_name, target_name, willingness));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (RJWSettings.DebugLogJoinInBed) //change this when we have our own settigns
|
||||
{
|
||||
//ModLog.Message(string.Format(" find_pawn_to_fuck({0}): lover has important job ({1}), skipping", pawn_name, target.jobs.curJob.def));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (RJWSettings.DebugLogJoinInBed) //change this when we have our own settigns
|
||||
{
|
||||
ModLog.Message(" (" + pawn_name + "): cannot reach or reserve " + target_name);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public static float TargetWillingness(Pawn pawn, Pawn target)
|
||||
{
|
||||
string pawn_name = xxx.get_pawnname(pawn);
|
||||
float willingness = SexAppraiser.would_fuck(target,pawn);
|
||||
bool nymph = xxx.is_nympho(target);
|
||||
bool loverelation = LovePartnerRelationUtility.LovePartnerRelationExists(pawn, target);
|
||||
if (nymph || loverelation)
|
||||
{
|
||||
willingness *= 2;
|
||||
}
|
||||
if (xxx.HasNonPolyPartner(pawn, false) && !loverelation)
|
||||
{
|
||||
if (RJWHookupSettings.NymphosCanCheat && nymph && xxx.is_frustrated(pawn))
|
||||
{
|
||||
if (RJWSettings.DebugLogJoinInBed)
|
||||
{
|
||||
ModLog.Message(" find_partner(" + pawn_name + "): I'm a nympho and I'm so frustrated that I'm going to cheat");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!pawn.health.hediffSet.HasHediff(HediffDef.Named("AlcoholHigh"), false))
|
||||
{
|
||||
if (RJWSettings.DebugLogJoinInBed)
|
||||
{
|
||||
ModLog.Message(" find_partner(" + pawn_name + "): I interested in banging but that's cheating");
|
||||
}
|
||||
//Succubus has a small chance to seduce even if target is in relationship
|
||||
willingness *= 0.1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (RJWSettings.DebugLogJoinInBed)
|
||||
{
|
||||
ModLog.Message(" find_partner(" + pawn_name + "): I want to bang and im too drunk to care if its cheating");
|
||||
}
|
||||
//No change
|
||||
}
|
||||
}
|
||||
}
|
||||
return willingness;
|
||||
}
|
||||
|
||||
public static float JoinChance(Pawn pawn ,Pawn target)
|
||||
{
|
||||
|
||||
float chance = 0.1f;
|
||||
|
||||
//Sex satisfaction, how good the target is at sex
|
||||
chance *= xxx.get_sex_satisfaction(target);
|
||||
|
||||
//Succubus mood
|
||||
if (pawn.needs != null && pawn.needs.mood != null)
|
||||
{
|
||||
chance *= pawn.needs.mood.CurLevelPercentage + 0.5f;
|
||||
}
|
||||
|
||||
//Size of genitals
|
||||
bool size_matters = true; //To be placed in modsettings
|
||||
if (size_matters)
|
||||
{
|
||||
//The larger the penis to greater the chance
|
||||
if (RelationsUtility.AttractedToGender(pawn, Gender.Male))
|
||||
{
|
||||
chance *= GetGenitalSize(target, true) + 0.5f;
|
||||
}
|
||||
|
||||
//The tighter the vagine the greater the chance, a size above 1 is considered as 1
|
||||
if (RelationsUtility.AttractedToGender(pawn, Gender.Female))
|
||||
{
|
||||
chance *= 1f - Mathf.Min(GetGenitalSize(target, false),1f) + 0.5f;
|
||||
}
|
||||
}
|
||||
|
||||
//Sex ability from sexperience
|
||||
if (ModsConfig.IsActive("rjw.sexperience"))
|
||||
{
|
||||
chance *= RJWSexperience.PawnExtensions.GetSexStat(pawn);
|
||||
}
|
||||
return Mathf.Max(chance,0f);
|
||||
}
|
||||
|
||||
//Gets the size of the largest penis or the tightest vagina
|
||||
public static float GetGenitalSize(Pawn pawn, bool penis_else_vagina)
|
||||
{
|
||||
List<Hediff> genitals = rjw.PawnExtensions.GetGenitalsList(pawn);
|
||||
if(!genitals.NullOrEmpty())
|
||||
{
|
||||
if (penis_else_vagina)
|
||||
{
|
||||
List<Hediff> penises = genitals.Where(genital => Genital_Helper.is_penis(genital)).ToList();
|
||||
{
|
||||
if (!penises.NullOrEmpty())
|
||||
{
|
||||
return penises.Max(genital => genital.Severity);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
List<Hediff> vaginas = genitals.Where(genital => Genital_Helper.is_vagina(genital)).ToList();
|
||||
{
|
||||
if (!vaginas.NullOrEmpty())
|
||||
{
|
||||
return vaginas.Min(genital => genital.Severity);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0f;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,203 +0,0 @@
|
|||
using HarmonyLib;
|
||||
using rjw;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// This Patch hooks after "SatisfyPersonal"(i.E. when the pawn finished fucking) and covers LifeForceGain.
|
||||
/// If the pawn has LifeForce, all relevant Genes are checked and applied.
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(SexUtility), nameof(SexUtility.SatisfyPersonal))]
|
||||
public static class Patch_SatisfyPersonal_LifeForceGain
|
||||
{
|
||||
public const float LIFEFORCE_GAINED_FROM_DRAINER_GENE = 0.25f;
|
||||
|
||||
public static void Postfix(SexProps props)
|
||||
{
|
||||
// ShortCuts: Exit Early if Pawn or Partner are null (can happen with Animals or Masturbation)
|
||||
if (props.pawn == null || !props.hasPartner())
|
||||
return;
|
||||
|
||||
// Exit if pawn has fertilin themself, it won't give any if it has lifeforce themself.
|
||||
if (GeneUtility.HasLifeForce(props.pawn))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//Summary//
|
||||
//We use the positions of the pawn (dom or sub) and based on that which interactions will transfer fertilin
|
||||
//By checking isreceiver we know if the succubus is the dom or the sub and if the situation is reverse we also swap the function we use
|
||||
float absorb_factor = 0f;
|
||||
if (GeneUtility.HasLifeForce(props.partner))
|
||||
{
|
||||
Pawn PawnWithLifeForce = props.partner;
|
||||
|
||||
if (!props.isRevese)
|
||||
{
|
||||
if (props.isReceiver)
|
||||
{
|
||||
// Scenario Dom Succubus, normal
|
||||
absorb_factor = BaseDom(props, PawnWithLifeForce);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Scenario Sub Succubus, normal
|
||||
absorb_factor = BaseSub(props, PawnWithLifeForce);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (props.isReceiver)
|
||||
{
|
||||
// Scenario Dom Succubus, Reverse
|
||||
absorb_factor = BaseSub(props, PawnWithLifeForce);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Scenario Sub Succubus, Reverse
|
||||
absorb_factor = BaseDom(props, PawnWithLifeForce);
|
||||
}
|
||||
}
|
||||
|
||||
// If we remove this check fertilin is always lost, but the succubus doesn't always gain any
|
||||
if (absorb_factor != 0f)
|
||||
{
|
||||
TransferFertilin(props, absorb_factor);
|
||||
}
|
||||
|
||||
// Handle Gene: Sexual_Drainer
|
||||
// to be drained, a pawn must not-be-drained-already and drainers cannot be drained either.
|
||||
if (GeneUtility.IsSexualDrainer(PawnWithLifeForce)
|
||||
&& !props.pawn.health.hediffSet.HasHediff(HediffDefOf.rjw_genes_succubus_drained)
|
||||
&& !GeneUtility.IsSexualDrainer(props.pawn))
|
||||
{
|
||||
if (GeneUtility.IsGenerousDonor(props.pawn) && RJW_Genes_Settings.rjw_genes_generous_donor_cheatmode)
|
||||
{
|
||||
// Cheatmode is on, do not drain but give life
|
||||
GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(PawnWithLifeForce), LIFEFORCE_GAINED_FROM_DRAINER_GENE);
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
ModLog.Message($"{props.pawn.Name} was not (sexually) drained by {PawnWithLifeForce.Name}, because Cheatmode for Generous Donors is on");
|
||||
} else
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
ModLog.Message($"{props.pawn.Name} has been (sexually) drained by {PawnWithLifeForce.Name}");
|
||||
props.pawn.health.AddHediff(HediffDefOf.rjw_genes_succubus_drained);
|
||||
GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(PawnWithLifeForce), LIFEFORCE_GAINED_FROM_DRAINER_GENE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void TransferFertilin(SexProps props, float absorb_percentage = 1f)
|
||||
{
|
||||
Pawn_GeneTracker genes = props.partner.genes;
|
||||
Gene_LifeForce gene = genes.GetFirstGeneOfType<Gene_LifeForce>();
|
||||
|
||||
Hediff fertilin_lost = props.pawn.health.hediffSet.GetFirstHediffOfDef(HediffDefOf.rjw_genes_fertilin_lost);
|
||||
//Around quarter get ejected everytime pawn cums
|
||||
float multiplier = Rand.Range(0.10f, 0.40f);
|
||||
|
||||
if (GeneUtility.IsGenerousDonor(props.pawn) && RJW_Genes_Settings.rjw_genes_generous_donor_cheatmode)
|
||||
{
|
||||
// Do nothing, Cheatmode is on
|
||||
multiplier = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Create a new ferilin_lost hediff or increase it
|
||||
if (fertilin_lost == null)
|
||||
{
|
||||
Hediff new_fertilin_lost = HediffMaker.MakeHediff(HediffDefOf.rjw_genes_fertilin_lost, props.pawn);
|
||||
props.pawn.health.AddHediff(new_fertilin_lost);
|
||||
new_fertilin_lost.Severity = multiplier;
|
||||
} else
|
||||
{
|
||||
multiplier *= 1 - fertilin_lost.Severity;
|
||||
fertilin_lost.Severity += multiplier;
|
||||
}
|
||||
}
|
||||
|
||||
multiplier *= absorb_percentage;
|
||||
//Currently taking the sum of all penises, maybe I should just consider one at random
|
||||
float valuechange = TotalFertilinAmount(props, multiplier);
|
||||
|
||||
if (props.partner.IsAnimal())
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
ModLog.Message($"Fertilin-Source of {props.pawn.Name} was an Animal, Fertilin-Gain is being adjusted by {RJW_Genes_Settings.rjw_genes_fertilin_from_animals_factor}%");
|
||||
valuechange *= RJW_Genes_Settings.rjw_genes_fertilin_from_animals_factor;
|
||||
}
|
||||
|
||||
GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(props.partner), valuechange);
|
||||
}
|
||||
|
||||
public static float TotalFertilinAmount(SexProps props, float multiplier)
|
||||
{
|
||||
float total_fluid = CumUtility.GetTotalFluidAmount(props.pawn) / 100;
|
||||
|
||||
//More in the tank means more to give
|
||||
if (props.pawn.Has(Quirk.Messy))
|
||||
{
|
||||
total_fluid *= 2;
|
||||
}
|
||||
if (props.pawn.RaceProps.Animal)
|
||||
{
|
||||
total_fluid *= 0.1f; //Should make this settable in settings
|
||||
}
|
||||
|
||||
return total_fluid;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the Case that the Life-Force wielder initiated the Sex (They are "Dom").
|
||||
/// </summary>
|
||||
/// <param name="props">The summary of the sex act, used for checking conditions.</param>
|
||||
/// <param name="PawnWithLifeForce">The pawn that might gain LifeForce through this method.</param>
|
||||
/// <returns>A factor between 0 and 1 how much of output-fertilin will be used for input-lifeforce</returns>
|
||||
public static float BaseDom(SexProps props, Pawn PawnWithLifeForce)
|
||||
{
|
||||
float absorb_factor = 0f;
|
||||
if (props.sexType == xxx.rjwSextype.Sixtynine && GeneUtility.IsCumEater(PawnWithLifeForce))
|
||||
{
|
||||
absorb_factor += 1f;
|
||||
}
|
||||
return absorb_factor;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the Case that the Life-Force wielder got initiated into sex (They are "Sub").
|
||||
/// </summary>
|
||||
/// <param name="props">The summary of the sex act, used for checking conditions.</param>
|
||||
/// <param name="PawnWithLifeForce">The pawn that might gain LifeForce through this method.</param>
|
||||
/// <returns>A factor between 0 and 1 how much of output-fertilin will be used for input-lifeforce</returns>
|
||||
public static float BaseSub(SexProps props, Pawn PawnWithLifeForce)
|
||||
{
|
||||
float absorb_factor = 0f;
|
||||
if ((props.sexType == xxx.rjwSextype.Oral || props.sexType == xxx.rjwSextype.Fellatio || props.sexType == xxx.rjwSextype.Sixtynine)
|
||||
&& GeneUtility.IsCumEater(PawnWithLifeForce))
|
||||
{
|
||||
absorb_factor += 1f;
|
||||
}
|
||||
else if (props.sexType == xxx.rjwSextype.Vaginal && GeneUtility.HasGeneNullCheck(PawnWithLifeForce, GeneDefOf.rjw_genes_fertilin_absorber))
|
||||
{
|
||||
absorb_factor += 1f;
|
||||
}
|
||||
else if (props.sexType == xxx.rjwSextype.Anal && GeneUtility.HasGeneNullCheck(PawnWithLifeForce, GeneDefOf.rjw_genes_fertilin_absorber))
|
||||
{
|
||||
absorb_factor += 1f;
|
||||
}
|
||||
else if (props.sexType == xxx.rjwSextype.DoublePenetration && GeneUtility.HasGeneNullCheck(PawnWithLifeForce, GeneDefOf.rjw_genes_fertilin_absorber))
|
||||
{
|
||||
absorb_factor += 1f;
|
||||
}
|
||||
else if (props.sexType == xxx.rjwSextype.Scissoring || props.sexType == xxx.rjwSextype.Cunnilingus)
|
||||
{
|
||||
//with vaginal cum absorbtion
|
||||
//absorb_factor += 1f;
|
||||
}
|
||||
return absorb_factor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,79 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using HarmonyLib;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
/// <summary>
|
||||
/// This Patch is applied to add a absorption gene for fertilin if it has none, but it does have the fertilin gene
|
||||
/// First tries to get one from the parents else chooses one of them at random
|
||||
/// the genes are determined and "simply added".
|
||||
///
|
||||
/// This fixes the potential problem that Pawns could inherit Fertilin, but no gene to gain Fertilin.
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(PregnancyUtility), "GetInheritedGeneSet", new Type[]
|
||||
{
|
||||
typeof(Pawn),
|
||||
typeof(Pawn)
|
||||
}
|
||||
)]
|
||||
public static class Patch_Vanilla_Inheritance_Fertilin
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
public static void InheritedGenes(Pawn father, Pawn mother, ref GeneSet __result)
|
||||
{
|
||||
//Also make a setting for this
|
||||
if (__result.GenesListForReading.Contains(GeneDefOf.rjw_genes_lifeforce))
|
||||
{
|
||||
List<GeneDef> babies_genes = __result.GenesListForReading;
|
||||
|
||||
//If there is no absorption gene get one from the parents, else a random one
|
||||
if(!Has_Fertilin_Source_Gene(babies_genes))
|
||||
{
|
||||
if (RJW_Genes_Settings.rjw_genes_detailed_debug)
|
||||
ModLog.Message($"Child of ({father.Name};{mother.Name}) has Genes with LifeForce-Resource but no Source-Gene, adding one of parents random if possible or any random otherwise.");
|
||||
// Gather Parents Source-Genes
|
||||
List<GeneDef> absorption_genes_parents = new List<GeneDef>();
|
||||
foreach (GeneDef geneDef in FertilinSourceGenes)
|
||||
{
|
||||
if(mother.genes != null && mother.genes.HasGene(geneDef))
|
||||
absorption_genes_parents.Add(geneDef);
|
||||
|
||||
if (father.genes != null && father.genes.HasGene(geneDef))
|
||||
absorption_genes_parents.Add(geneDef);
|
||||
}
|
||||
// Parents had Genes - Pick a random one of them
|
||||
if (!absorption_genes_parents.NullOrEmpty())
|
||||
__result.AddGene(absorption_genes_parents.RandomElement());
|
||||
// Create a fully random one for your little Cumfueled missbreed
|
||||
else
|
||||
__result.AddGene(FertilinSourceGenes.RandomElement());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static List<GeneDef> FertilinSourceGenes = new List<GeneDef>() {
|
||||
GeneDefOf.rjw_genes_drainer,
|
||||
GeneDefOf.rjw_genes_cum_eater,
|
||||
GeneDefOf.rjw_genes_fertilin_absorber,
|
||||
GeneDefOf.rjw_genes_cockeater
|
||||
};
|
||||
|
||||
private static bool Has_Fertilin_Source_Gene(List<GeneDef> genes)
|
||||
{
|
||||
foreach (GeneDef gene in genes)
|
||||
{
|
||||
if (FertilinSourceGenes.Contains(gene))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue