Compare commits

..

47 commits

Author SHA1 Message Date
Telanda
b70b975b67
Merge 2.6.2 Update (#228)
* - Seperation of Animal Gene code from base RJW_Genes

* - Clean-up of leftover XML Files
- Minor update to README.md

* Fixed missing translation text
Fixed Missing B&S Undead Patch
Fixed Anal Fertility Errors, might be broken again.

DLL Included for Merge.
2026-02-28 23:15:14 +11:00
Telanda-DDS
4946df511e - Recompiled Cumpliation plugin against newest version of Cumpilation.
- Fixed Indentation
2025-10-18 10:45:32 +11:00
Telanda-DDS
ef953fa1b7 - Fixes to address changed RJW Settings Variables. 2025-10-16 16:18:28 +11:00
Telanda-DDS
be27255832 - Updated All Version Information. 2025-09-05 16:42:35 +10:00
Telanda
83e9f9ef5b
Dev (#222)
- Seperation of Animal Gene code from base RJW_Genes
- Minor update to README.md
2025-09-05 16:37:32 +10:00
Telanda-DDS
45a451a127 - Added additional Debug Message Check. 2025-08-21 09:46:51 +10:00
Telanda-DDS
7692ce3425 - Fixed bug with beastiality gene inheritance null reference. 2025-08-18 14:40:02 +10:00
Telanda-DDS
b13f761ede - Versioning Updates 2025-08-18 12:26:00 +10:00
Telanda-DDS
ed761327d2 - Fixed bug with fertile Anus not correctly detecting if penetrating partner was fertile. 2025-08-18 12:20:00 +10:00
Telanda-DDS
e0a333f539 - Fixed incorrect reference to Sexperience mod. 2025-08-04 10:27:19 +10:00
Telanda-DDS
5025700727 - Fixed potential null varaible exception in ElToro Stretching patch.
- Fixed Orgasm Rush not triggering when partner was an Animal.
2025-08-03 12:06:16 +10:00
Telanda-DDS
a407f3f400 - 2.5.5 Version Update & CHANGELOG.md 2025-07-25 14:11:06 +10:00
Telanda-DDS
6e26d596cf - Updated Elastic gene to also increase speed at which stretched parts return to normal under ElToro's streching Mod.
- Removed Unnecessary packages.config
2025-07-25 14:06:02 +10:00
Telanda-DDS
670361a748 - Support for RJW RC-5
- Fixed Typo in Disease ThoughtDef
2025-07-25 11:25:52 +10:00
Telanda-DDS
c7ea7144dc - Fixed ElToro Stretching support causing an error if not present. 2025-07-25 09:51:45 +10:00
Telanda-DDS
97eabd540d - Fixed incorrect consciousness value. 2025-07-24 18:03:03 +10:00
Telanda-DDS
61fdb2c3b7 - Fixed Load bug with VRE-Genie Sexperience interaction. 2025-07-24 16:30:29 +10:00
Telanda-DDS
27511a29f3 - Fixed regressed CHANGELOG.md 2025-07-24 14:04:28 +10:00
Telanda-DDS
ef05a5bbc3 - Incremented version in mod settings. 2025-07-24 14:01:21 +10:00
Telanda-DDS
7f6dc2a668 - Added in Elasticity support for Cumpilation and Eltoro Stretching.
- Updated Breeding Pulse c# with more debugging information.
- Updated Vanilla Genes Expanded Genie with updated function call.
- Removed Licentia XML & method calls from Gene_Elasticity.cs
- Fixed MatingCall Ability & checked to make sure Pheromone Spit was still functional.
- Fixed incorrect mod requirement for sex curiosity Gene.
2025-07-24 13:41:47 +10:00
Telanda-DDS
ba53413687 - Migrated all textures to the Common Directory 2025-07-20 10:50:45 +10:00
Telanda-DDS
aa3d3985bc - Removed incorrectly located DLL. 2025-07-19 22:10:05 +10:00
Telanda-DDS
11226249b3 ###Fixes###
- Fixed "Big and Small - Heaven and Hell" XML patch being applied incorrectly, again.
- Fixed issue that was causing Extra genitals,Anus,breasts being added to pawns when a gene was applied.
- Removed some code duplication in the Gender specific Genes, I cannot see any situations where this code was required, but but there are some notes in other genes relating to character editor, I'm leaving other genes As they are for now, and will wait to see if it breaks some strange edge case I didn't test for.
2025-07-19 16:49:52 +10:00
Telanda-DDS
dde1c98b18 - Incremented version to 2.5.1
- Removed DDS Files
- Added Initial Support for Rimworld 1.6
- Added Additional mod requirement to PatchBSShared.xml to prevent premature loading.
- Refactored Cumpilation integration to make it optional rather then a Required Mod.
- Disabled succubus tail interactions pending rewrite for RJW's new interactions system.
- Disabled Quirks pending rewrite RJW separating them into their own mod.
2025-07-17 21:07:51 +10:00
DukeElToro
7540b96ecb
Added Cumpilation dependancy to the about.xml 2024-11-26 11:10:52 +03:00
vegapnk
b0da74ebd3
Merge pull request #202 from vegapnk/dev
2.4.2
2024-11-25 20:54:02 +08:00
vegapnk
e9fa05d218
Update CHANGELOG.md 2024-11-25 20:53:33 +08:00
DukeElToro
8577c3ee55 Updated manifest 2024-11-20 08:37:48 +03:00
DukeElToro
19148cc768 Removed HugsLib from about.xml 2024-11-20 07:59:17 +03:00
ElToro
72acfbb8bf Return of Pig and Orc genitalia 2024-11-18 01:55:35 +03:00
ElToro
f5975212b1 Not to forget permament fix for EvergrowingGenitalia gene 2024-11-17 01:50:35 +03:00
ElToro
f1ea695516 More fixes 2024-11-17 01:47:48 +03:00
ElToro
2d055a134f RJW 5.6 fix 2024-11-16 23:24:54 +03:00
vegapnk
e402a6b2a8
Merge pull request #191 from vegapnk/dev
2.4.1
2024-10-22 08:39:37 +02:00
Vegapnk
f5898523a9 2.4.1 Release Artifacts 2024-10-22 08:38:26 +02:00
Vegapnk
f3bf271381 Mentions Nazeems addon Gene in Changelog (#101) 2024-10-22 08:14:45 +02:00
Vegapnk
626ae5bbd4 Fixed Typo in LilGlutton Xenotype Patch (closes #122) 2024-10-22 08:00:31 +02:00
Vegapnk
8e272db117 Added Issue Templates 2024-10-22 07:57:25 +02:00
Vegapnk
93e9c5471c Attribution & Summary for #188 2024-10-22 07:56:03 +02:00
Vegapnk
b336c3059e Merge branch 'dev' of https://github.com/vegapnk/RJW-Genes into dev 2024-10-22 07:49:57 +02:00
vegapnk
89028f361b
Merge pull request #188 from casualArtifice/main
Add patches for more xenotypes
2024-10-22 07:49:45 +02:00
Vegapnk
f470213a3c Added more code-checks for living cumbucket (fixes #190) 2024-10-22 07:47:51 +02:00
casualArtifice
67cd837166
Update PatchBSRaces.xml
fixed typo from previous commit
2024-10-17 10:28:57 -04:00
casualArtifice
5aadcffcb1
Update PatchBSRaces.xml
Swapped instances of Licentia genes to Cumpilation equivalents where applicable
2024-10-17 10:28:34 -04:00
casualArtifice
44c0fff37e
Update PatchBSHeavHell.xml
Removed Licentia Labs requirement for Generous Donor gene
Swapped instances of Licentia genes to Cumpilation equivalents where applicable
2024-10-17 10:27:40 -04:00
casualArtifice
74b16b9ff3
Add files via upload 2024-10-17 10:15:45 -04:00
vegapnk
4712e5fdf2
Merge pull request #187 from vegapnk/dev
Dev
2024-10-17 14:55:03 +02:00
699 changed files with 20087 additions and 100 deletions

31
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View file

@ -0,0 +1,31 @@
---
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 Normal file
View file

@ -0,0 +1,19 @@
---
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
View file

@ -255,3 +255,5 @@ paket-files/
# Python Tools for Visual Studio (PTVS) # Python Tools for Visual Studio (PTVS)
__pycache__/ __pycache__/
*.pyc *.pyc
*.dds

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

View file

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<GeneDef ParentName="GeneGenitalTypeBase">
<defName>rjw_genes_Pig_genitalia</defName>
<label>Pig genitalia</label>
<description>Carriers of this gene develop pig genitalia.</description>
<iconPath>Genes/Icons/Genitalia_screw_icon</iconPath>
<modExtensions>
<li Class="RJW_Genes.GenitaliaTypeExtension">
<penis>PigPenis</penis>
<vagina>PigVagina</vagina>
</li>
</modExtensions>
<displayOrderInCategory>807</displayOrderInCategory>
</GeneDef>
<GeneDef ParentName="GeneGenitalTypeBase">
<defName>rjw_genes_Orc_genitalia</defName>
<label>Orc genitalia</label>
<description>Carriers of this gene develop orc genitalia.</description>
<iconPath>Genes/Icons/Genitalia_orc_icon</iconPath>
<modExtensions>
<li Class="RJW_Genes.GenitaliaTypeExtension">
<penis>OrcPenis</penis>
<vagina>OrcVagina</vagina>
</li>
</modExtensions>
<displayOrderInCategory>807</displayOrderInCategory>
</GeneDef>
</Defs>

View file

@ -12,7 +12,7 @@
<li>rjw_genes_big_male_genitalia</li> <li>rjw_genes_big_male_genitalia</li>
<li>rjw_genes_big_breasts</li> <li>rjw_genes_big_breasts</li>
<li>rjw_genes_no_sex_need</li> <li>rjw_genes_no_sex_need</li>
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_generous_donor</li> <li>rjw_genes_generous_donor</li>
<li MayRequire="rjw.sexperience">AptitudePoor_Sex</li> <li MayRequire="rjw.sexperience">AptitudePoor_Sex</li>
</value> </value>
</li> </li>
@ -20,7 +20,7 @@
<xpath>Defs/XenotypeDef[defName="BS_Malakim"]/genes</xpath> <xpath>Defs/XenotypeDef[defName="BS_Malakim"]/genes</xpath>
<value> <value>
<li>rjw_genes_small_breasts</li> <li>rjw_genes_small_breasts</li>
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_generous_donor</li> <li>rjw_genes_generous_donor</li>
<li MayRequire="rjw.sexperience">AptitudeTerrible_Sex</li> <li MayRequire="rjw.sexperience">AptitudeTerrible_Sex</li>
</value> </value>
</li> </li>
@ -35,7 +35,7 @@
<li Class="PatchOperationAdd"> <li Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="BS_Grigori"]/genes</xpath> <xpath>Defs/XenotypeDef[defName="BS_Grigori"]/genes</xpath>
<value> <value>
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_generous_donor</li> <li>rjw_genes_generous_donor</li>
<li MayRequire="rjw.sexperience">AptitudeStrong_Sex</li> <li MayRequire="rjw.sexperience">AptitudeStrong_Sex</li>
</value> </value>
</li> </li>
@ -62,7 +62,7 @@
<li>rjw_genes_loose_anus</li> <li>rjw_genes_loose_anus</li>
<li>rjw_genes_extra_vagina</li> <li>rjw_genes_extra_vagina</li>
<li>rjw_genes_extra_anus</li> <li>rjw_genes_extra_anus</li>
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_cumflation_immunity</li> <li MayRequire="vegapnk.cumpilation">rjw_genes_un_inflatable</li>
<li MayRequire="rjw.sexperience">AptitudeStrong_Sex</li> <li MayRequire="rjw.sexperience">AptitudeStrong_Sex</li>
</value> </value>
</li> </li>
@ -75,8 +75,8 @@
<li>rjw_genes_tight_anus</li> <li>rjw_genes_tight_anus</li>
<li>rjw_genes_extra_vagina</li> <li>rjw_genes_extra_vagina</li>
<li>rjw_genes_extra_anus</li> <li>rjw_genes_extra_anus</li>
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_likes_cumflation</li> <li MayRequire="vegapnk.cumpilation">rjw_genes_inflatable</li>
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_elastic</li> <li MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
<li MayRequire="rjw.sexperience">AptitudeStrong_Sex</li> <li MayRequire="rjw.sexperience">AptitudeStrong_Sex</li>
</value> </value>
</li> </li>
@ -85,4 +85,4 @@
</operations> </operations>
</match> </match>
</Operation> </Operation>
</Patch> </Patch>

View file

@ -59,7 +59,7 @@
<li>rjw_genes_tight_female_genitalia</li> <li>rjw_genes_tight_female_genitalia</li>
<li>rjw_genes_tight_anus</li> <li>rjw_genes_tight_anus</li>
<li>rjw_genes_very_much_fluid</li> <li>rjw_genes_very_much_fluid</li>
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_likes_cumflation</li> <li MayRequire="vegapnk.cumpilation">rjw_genes_inflatable</li>
</value> </value>
</li> </li>
<li Class="PatchOperationAdd"> <li Class="PatchOperationAdd">
@ -87,4 +87,4 @@
</operations> </operations>
</match> </match>
</Operation> </Operation>
</Patch> </Patch>

View file

@ -0,0 +1,105 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Obsidia Expansion - Arachnas Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="OE_WidowArachna" or defName="OE_WolfArachna" or defName="OE_GoliathArachna"]/genes</xpath>
<value>
<li>rjw_genes_ovipositor_genitalia</li>
<li>rjw_genes_insectbreeder</li>
<li>rjw_genes_fluid_insect_spunk</li>
<li>rjw_genes_cocoonweaver</li>
</value>
</match>
</Operation>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Obsidia Expansion - Axotl Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="OE_Axotl"]/genes</xpath>
<value>
<li>rjw_genes_small_male_genitalia</li>
<li MayRequire="vegapnk.cumpilation">rjw_genes_living_cumbucket</li>
</value>
</match>
</Operation>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Obsidia Expansion - Ceratons Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="OE_Protoceraton" or defName="OE_Styracodon" or defName="OE_Triceraton"]/genes</xpath>
<value>
<li>rjw_genes_crocodilian_genitalia</li>
<li>rjw_genes_big_male_genitalia</li>
<li>rjw_genes_loose_female_genitalia</li>
<li>rjw_genes_big_breasts</li>
</value>
</match>
</Operation>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Obsidia Expansion - Liches Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="OE_Lich" or defName="OE_Archlich"]/genes</xpath>
<value>
<li>rjw_genes_no_fluid</li>
<li>rjw_genes_featureless_chest</li>
<li>rjw_genes_no_sex_need</li>
<li>rjw_genes_no_penis</li>
<li>rjw_genes_no_vagina</li>
</value>
</match>
</Operation>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Obsidia Expansion - Mothoids Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="OE_Mothoid" or defName="OE_MothoidPrime" or defName="OE_MothoidAtlant"]/genes</xpath>
<value>
<li>rjw_genes_insectincubator</li>
<li>rjw_genes_fluid_insect_spunk</li>
</value>
</match>
</Operation>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Obsidia Expansion - Slimes Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="OE_Slime" or defName="OE_SlimeWaste" or defName="OE_SlimeBloody" or defName="OE_SlimePrime"]/genes</xpath>
<value>
<li>rjw_genes_slime_genitalia</li>
<li>rjw_genes_very_much_fluid</li>
<li>rjw_genes_loose_anus</li>
<li>rjw_genes_loose_female_genitalia</li>
<li MayRequire="vegapnk.cumpilation">rjw_genes_inflatable</li>
<li MayRequire="LustLicentia.RJWLabs">rjw_genes_elasticity</li>
</value>
</match>
</Operation>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Obsidia Expansion - Tortle Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="OE_Tortle"]/genes</xpath>
<value>
<li>rjw_genes_reptilian_genitalia</li>
</value>
</match>
</Operation>
</Patch>

View file

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Rimsenal Xenotype Pack - Askbarn</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="Askbarn"]/genes</xpath>
<value>
<li>rjw_genes_electric_satisfaction</li>
<li>rjw_genes_pheromone_spit</li>
<li>rjw_genes_loose_anus</li>
<li>rjw_genes_bisexual</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="Uredd"]/genes</xpath>
<value>
<li>rjw_genes_electric_satisfaction</li>
<li>rjw_genes_dragon_genitalia</li>
<li>rjw_genes_big_male_genitalia</li>
<li>rjw_genes_big_breasts</li>
</value>
</li>
</operations>
</match>
</Operation>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Rimsenal Xenotype Pack - Harana</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="Harana"]/genes</xpath>
<value>
<li>rjw_genes_small_male_genitalia</li>
<li>rjw_genes_tight_female_genitalia</li>
<li>rjw_genes_unbreakable</li>
</value>
</match>
</Operation>
</Patch>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Roo's Faun Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="RBSF_Faun"]/genes</xpath>
<value>
<li>rjw_genes_equine_genitalia</li>
<li>rjw_genes_zoophile</li>
<li>rjw_genes_mating_call</li>
<li>rjw_genes_tight_female_genitalia</li>
</value>
</match>
</Operation>
</Patch>

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Roo's Minotaur Xenotype</li>
</mods>
<match Class="PatchOperationAdd">
<xpath>Defs/XenotypeDef[defName="RBM_Minotaur"]/genes</xpath>
<value>
<li>rjw_genes_equine_genitalia</li>
<li>rjw_genes_much_fluid</li>
<li>rjw_genes_big_male_genitalia</li>
<li>rjw_genes_loose_female_genitalia</li>
<li>rjw_genes_big_breasts</li>
</value>
</match>
</Operation>
</Patch>

View file

@ -1,17 +1,14 @@
 
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using System.Reflection.Emit; using System.Reflection.Emit;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HarmonyLib; using HarmonyLib;
using rjw; using rjw;
using Verse;
namespace RJW_Genes namespace RJW_Genes
{ {
/// <summary> /// <summary>
/// This Class patches the RJW-Mechbirth to not deal damage when the pawn has the MechBreeder Gene. /// This Class patches the RJW-Mechbirth to not deal damage when the pawn has the MechBreeder Gene.
/// This harmony patch was kindly provided by 'shabalox' https://github.com/Shabalox/RJW_Genes_Addons/ /// This harmony patch was kindly provided by 'shabalox' https://github.com/Shabalox/RJW_Genes_Addons/
@ -22,43 +19,36 @@ namespace RJW_Genes
[HarmonyTranspiler] [HarmonyTranspiler]
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator il) public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator il)
{ {
bool found_call = false; bool found_call = false;
bool found_skip = false; bool finished = false;
Label skip_label = il.DefineLabel(); Label skip_label = il.DefineLabel();
MethodInfo ismechbreeder = AccessTools.Method(typeof(GeneUtility), "IsMechbreeder"); MethodInfo removeHediff = AccessTools.Method(typeof(Pawn_HealthTracker), nameof(Pawn_HealthTracker.RemoveHediff));
foreach (CodeInstruction codeInstruction in instructions) MethodInfo ismechbreeder = AccessTools.Method(typeof(GeneUtility), "IsMechbreeder");
{ foreach (CodeInstruction codeInstruction in instructions)
//Check if the first opcode after endfinally ldloc_0 is and in that case add the label to skip the code {
if (found_skip && codeInstruction.opcode == OpCodes.Ldloc_0) yield return codeInstruction;
{
codeInstruction.labels.Add(skip_label); if (finished)
} {
found_skip = false; continue;
if (codeInstruction.opcode == OpCodes.Endfinally) }
{
found_skip = true; if (!found_call && codeInstruction.Calls(removeHediff))
} {
//Load pawn, call function to check if a mechbreeder, and skip past the part which does damage
yield return codeInstruction; yield return new CodeInstruction(OpCodes.Ldloc_0);
yield return new CodeInstruction(OpCodes.Call, ismechbreeder);
if (codeInstruction.opcode == OpCodes.Call) yield return new CodeInstruction(OpCodes.Brfalse_S, skip_label);
{ yield return new CodeInstruction(OpCodes.Ret);
if (codeInstruction.operand.ToString() == "Boolean TryMakeFilth(Verse.IntVec3, Verse.Map, Verse.ThingDef, System.String, Int32, RimWorld.FilthSourceFlags)") found_call = true;
{ }
found_call = true; else if (found_call)
} {
} // next instruction after the insert
//Triggers after the pop opcode (after generating filth in c#). codeInstruction.labels.Add(skip_label);
else if (found_call) finished = true;
{ }
//Load pawn, call function to check if a mechbreeder, and skip past the part which does damage }
yield return new CodeInstruction(OpCodes.Ldloc_0, null);
yield return new CodeInstruction(OpCodes.Call, ismechbreeder);
yield return new CodeInstruction(OpCodes.Brtrue_S, skip_label);
found_call = false;
}
}
yield break;
} }
} }
} }

View file

@ -16,7 +16,7 @@ namespace RJW_Genes
{ {
// Right now: Ignore Breasts, only do // Right now: Ignore Breasts, only do
if (part is ISexPartHediff sexPart && (Genital_Helper.is_penis(part) || Genital_Helper.is_vagina(part))) if (part is ISexPartHediff sexPart && (Genital_Helper.is_penis(part) || Genital_Helper.is_vagina(part)))
sexPart.GetPartComp().partFluidFactor *= multiplier; sexPart.GetPartComp().partFluidMultiplier *= multiplier;
} }
} }

View file

@ -9,6 +9,7 @@ namespace RJW_Genes
{ {
public class Patch_Cumpilation_BlockCumflation public class Patch_Cumpilation_BlockCumflation
{ {
public static bool Prepare() => ModsConfig.IsActive("vegapnk.cumpilation");
public static void PostFix(Pawn pawn,ref bool __result) { public static void PostFix(Pawn pawn,ref bool __result) {
if (pawn != null && pawn.genes != null && pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_un_inflatable)) if (pawn != null && pawn.genes != null && pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_un_inflatable))
__result = false; __result = false;

View file

@ -9,6 +9,8 @@ namespace RJW_Genes
{ {
public class Patch_Cumpilation_BlockStuffing public class Patch_Cumpilation_BlockStuffing
{ {
public static bool Prepare() => ModsConfig.IsActive("vegapnk.cumpilation");
public static void PostFix(Pawn pawn,ref bool __result) { public static void PostFix(Pawn pawn,ref bool __result) {
if (pawn != null && pawn.genes != null && pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_un_inflatable)) if (pawn != null && pawn.genes != null && pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_un_inflatable))
__result = false; __result = false;

View file

@ -12,15 +12,11 @@ using Verse;
namespace RJW_Genes namespace RJW_Genes
{ {
/// <summary>
/// Changes LicentiaLabs (if Present) to add a cumflation-counter hediff, when the pawn is cumflated.
/// The counter hediff takes away the negative stats of the original hediff.
/// This code is exercised / loaded in the HarmonyInit.
/// Patched File: https://gitgud.io/John-the-Anabaptist/licentia-labs/-/blob/master/Source/LicentiaLabs/LicentiaLabs/Cumflation.cs
/// </summary>
///
class Patch_Cumpilation_Inflatable class Patch_Cumpilation_Inflatable
{ {
public static bool Prepare() => ModsConfig.IsActive("vegapnk.cumpilation");
// This patch does not need the normal Harmony Targetting, // This patch does not need the normal Harmony Targetting,
// as it needs to be added only on demand (See HarmonyInit.cs) // as it needs to be added only on demand (See HarmonyInit.cs)
public static void PostFix(SexProps props) public static void PostFix(SexProps props)

View file

@ -11,7 +11,6 @@ using static System.Net.Mime.MediaTypeNames;
namespace RJW_Genes namespace RJW_Genes
{ {
[HarmonyPatch(typeof(SexUtility), nameof(SexUtility.SatisfyPersonal))]
public class Patch_LivingCumbucket_StackHediff public class Patch_LivingCumbucket_StackHediff
{ {
@ -20,12 +19,10 @@ namespace RJW_Genes
/// The hediff can still be increased over 1.0. /// The hediff can still be increased over 1.0.
/// </summary> /// </summary>
const float fluid_amount_required_for_hediff_severity_ = 100.0f; const float fluid_amount_required_for_hediff_severity_ = 100.0f;
public static bool Prepare() => ModsConfig.IsActive("vegapnk.cumpilation");
public static void Postfix(SexProps props) public static void PostFix(SexProps props)
{ {
if (!ModsConfig.IsActive("vegapnk.cumpilation"))
return;
// ShortCuts: Exit Early if Pawn or Partner are null (can happen with Masturbation or other nieche-cases) // ShortCuts: Exit Early if Pawn or Partner are null (can happen with Masturbation or other nieche-cases)
if (props == null || props.pawn == null || !props.hasPartner()) if (props == null || props.pawn == null || !props.hasPartner())
return; return;

View file

@ -2,13 +2,11 @@
using RimWorld; using RimWorld;
using rjw; using rjw;
using System.Collections.Generic; using System.Collections.Generic;
using System;
namespace RJW_Genes namespace RJW_Genes
{ {
public class Gene_EvergrowingGenitalia : RJW_Gene public class Gene_EvergrowingGenitalia : RJW_Gene
{ {
const int BASE_TICKS = 60000; const int BASE_TICKS = 60000;
public override void Tick() public override void Tick()
@ -27,20 +25,21 @@ namespace RJW_Genes
private void GrowPenisses() private void GrowPenisses()
{ {
List<Hediff> AllPenisses = Genital_Helper.get_AllPartsHediffList(pawn).FindAll(x => Genital_Helper.is_penis(x)); List<Hediff> AllPenisses = Genital_Helper.get_AllPartsHediffList(pawn).FindAll(x => Genital_Helper.is_penis(x));
foreach(Hediff penis in AllPenisses) float bodySizeOverride = -1f; //this is just hackjob to temporary fix an issue. It need to be remade
foreach (Hediff penis in AllPenisses)
{ {
HediffComp_SexPart CompHediff = penis.TryGetComp<rjw.HediffComp_SexPart>(); HediffComp_SexPart CompHediff = penis.TryGetComp<rjw.HediffComp_SexPart>();
if (CompHediff.baseSize <= 1.00f) if (CompHediff.baseSize <= 1.00f)
CompHediff.baseSize += 0.10f; CompHediff.baseSize += 0.10f;
else else
{ {
if (CompHediff.bodySizeOverride <= 1.0) CompHediff.bodySizeOverride = 1.0f; if (bodySizeOverride <= 1.0) bodySizeOverride = 1.0f;
CompHediff.bodySizeOverride += 0.05f; bodySizeOverride += 0.05f;
} }
CompHediff.UpdateSeverity(); CompHediff.UpdateSeverity();
if (CompHediff.bodySizeOverride > 3.0f) if (bodySizeOverride > 3.0f)
{ {
// Add Mental Hediff // Add Mental Hediff
HandleGenitaliaSizeThoughts(pawn); HandleGenitaliaSizeThoughts(pawn);
@ -48,13 +47,14 @@ namespace RJW_Genes
// Increase Fluid // Increase Fluid
if (CompHediff != null) if (CompHediff != null)
CompHediff.partFluidFactor *= 1.05f; CompHediff.partFluidMultiplier *= 1.05f;
} }
} }
private void GrowVaginas() private void GrowVaginas()
{ {
List<Hediff> AllVaginas = Genital_Helper.get_AllPartsHediffList(pawn).FindAll(x => Genital_Helper.is_vagina(x)); List<Hediff> AllVaginas = Genital_Helper.get_AllPartsHediffList(pawn).FindAll(x => Genital_Helper.is_vagina(x));
float bodySizeOverride = -1f; //this is just hackjob to temporary fix an issue. It need to be remade
foreach (Hediff vagina in AllVaginas) foreach (Hediff vagina in AllVaginas)
{ {
HediffComp_SexPart CompHediff = vagina.TryGetComp<rjw.HediffComp_SexPart>(); HediffComp_SexPart CompHediff = vagina.TryGetComp<rjw.HediffComp_SexPart>();
@ -62,21 +62,21 @@ namespace RJW_Genes
CompHediff.baseSize += 0.10f; CompHediff.baseSize += 0.10f;
else else
{ {
if (CompHediff.bodySizeOverride <= 1.0) CompHediff.bodySizeOverride = 1.0f; if (bodySizeOverride <= 1.0) bodySizeOverride = 1.0f;
CompHediff.bodySizeOverride += 0.05f; bodySizeOverride += 0.05f;
} }
//CompHediff.ForceSize(CompHediff.Size + 0.05f); //CompHediff.ForceSize(CompHediff.Size + 0.05f);
//CompHediff.originalOwnerSize += 0.05f; //CompHediff.originalOwnerSize += 0.05f;
CompHediff.UpdateSeverity(); CompHediff.UpdateSeverity();
if (CompHediff.bodySizeOverride > 3.0f) if (bodySizeOverride > 3.0f)
{ {
// Add Mental Hediff // Add Mental Hediff
HandleGenitaliaSizeThoughts(pawn); HandleGenitaliaSizeThoughts(pawn);
} }
// Increase Fluid // Increase Fluid
if (CompHediff != null) if (CompHediff != null)
CompHediff.partFluidFactor *= 1.025f; CompHediff.partFluidMultiplier *= 1.025f;
} }
} }

View file

@ -29,13 +29,13 @@ namespace RJW_Genes.Interactions
{ {
weight *= 2.5f; weight *= 2.5f;
} }
if (pawn.genes.HasGene(GeneDefOf.rjw_genes_cum_eater)) if (pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_cum_eater))
{ {
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Mouth); yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Mouth);
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Beak); yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Beak);
} }
if (pawn.genes.HasGene(GeneDefOf.rjw_genes_fertilin_absorber)) if (pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_fertilin_absorber))
{ {
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Vagina); yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Vagina);
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Anus); yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Anus);
@ -62,7 +62,7 @@ namespace RJW_Genes.Interactions
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Mouth); yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Mouth);
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Beak); yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Beak);
if (pawn.genes.HasGene(GeneDefOf.rjw_genes_fertilin_absorber)) if (pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_fertilin_absorber))
{ {
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Vagina); yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Vagina);
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Anus); yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Anus);

View file

@ -61,7 +61,7 @@ namespace RJW_Genes
// Increase Fluid // Increase Fluid
if (CompHediff != null) if (CompHediff != null)
CompHediff.partFluidFactor *= cum_multiplier; CompHediff.partFluidMultiplier *= cum_multiplier;
} }
} }

View file

@ -65,6 +65,9 @@ namespace RJW_Genes
// Gene: Inflation-Resistance [Postfix Patch] // Gene: Inflation-Resistance [Postfix Patch]
harmony.Patch(AccessTools.Method(typeof(Cumpilation.Cumflation.StuffingUtility), nameof(Cumpilation.Cumflation.StuffingUtility.CanBeStuffed)), harmony.Patch(AccessTools.Method(typeof(Cumpilation.Cumflation.StuffingUtility), nameof(Cumpilation.Cumflation.StuffingUtility.CanBeStuffed)),
postfix: new HarmonyMethod(typeof(Patch_Cumpilation_BlockStuffing), nameof(Patch_Cumpilation_BlockStuffing.PostFix))); postfix: new HarmonyMethod(typeof(Patch_Cumpilation_BlockStuffing), nameof(Patch_Cumpilation_BlockStuffing.PostFix)));
// Gene: Living Cumbucket [Postfix Patch]
harmony.Patch(AccessTools.Method(typeof(SexUtility), nameof(SexUtility.SatisfyPersonal)),
postfix: new HarmonyMethod(typeof(Patch_LivingCumbucket_StackHediff), nameof(Patch_LivingCumbucket_StackHediff.PostFix)));
} }
}))(); }))();
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Some files were not shown because too many files have changed in this diff Show more