mirror of
https://gitgud.io/Stardust3D/rjw-plasticsurgeries.git
synced 2024-08-14 23:57:25 +00:00
Merge branch 'hotfix/fix_gender_filters'
This commit is contained in:
commit
11238c81c9
17 changed files with 933 additions and 0 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -301,3 +301,9 @@ __pycache__/
|
||||||
*.btm.cs
|
*.btm.cs
|
||||||
*.odx.cs
|
*.odx.cs
|
||||||
*.xsd.cs
|
*.xsd.cs
|
||||||
|
/Assemblies/RJW.dll
|
||||||
|
/Assemblies/RJW_PlasticSurgeries.pdb
|
||||||
|
/Assemblies/0Harmony.dll
|
||||||
|
/Assemblies/0Harmony.xml
|
||||||
|
/Assemblies/0MultiplayerAPI.dll
|
||||||
|
/Assemblies/Dyspareunia.dll
|
||||||
|
|
BIN
1.3/Assemblies/RJW_PlasticSurgeries.dll
Normal file
BIN
1.3/Assemblies/RJW_PlasticSurgeries.dll
Normal file
Binary file not shown.
34
About/About.xml
Normal file
34
About/About.xml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<ModMetaData>
|
||||||
|
<name>RJW PlasticSurgeries</name>
|
||||||
|
<author>Stardust3D</author>
|
||||||
|
<supportedVersions>
|
||||||
|
<li>1.3</li>
|
||||||
|
</supportedVersions>
|
||||||
|
<packageId>Stardust3D.RJW.PlasticSurgeries</packageId>
|
||||||
|
<description>Surgically alter pawn's genitals.</description>
|
||||||
|
<modDependencies>
|
||||||
|
<li>
|
||||||
|
<packageId>rim.job.world</packageId>
|
||||||
|
<displayName>RimJobWorld</displayName>
|
||||||
|
<downloadUrl>https://gitgud.io/Ed86/rjw</downloadUrl>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<packageId>brrainz.harmony</packageId>
|
||||||
|
<displayName>Harmony</displayName>
|
||||||
|
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl>
|
||||||
|
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<packageId>NuttySquabble.Dyspareunia</packageId>
|
||||||
|
<displayName>Dyspareunia</displayName>
|
||||||
|
<downloadUrl>https://gitgud.io/NuttySquabble/Dyspareunia</downloadUrl>
|
||||||
|
</li>
|
||||||
|
</modDependencies>
|
||||||
|
<loadAfter>
|
||||||
|
<li>Ludeon.RimWorld</li>
|
||||||
|
<li>rim.job.world</li>
|
||||||
|
<li>NuttySquabble.Dyspareunia</li>
|
||||||
|
</loadAfter>
|
||||||
|
</ModMetaData>
|
6
About/Manifest.xml
Normal file
6
About/Manifest.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
|
||||||
|
<Manifest>
|
||||||
|
<identifier>RJW PlasticSurgeries</identifier>
|
||||||
|
<version>4942.0.1.2</version>
|
||||||
|
</Manifest>
|
BIN
Assemblies/RJW_PlasticSurgeries.dll
Normal file
BIN
Assemblies/RJW_PlasticSurgeries.dll
Normal file
Binary file not shown.
14
Assemblies/RJW_PlasticSurgeries.xml
Normal file
14
Assemblies/RJW_PlasticSurgeries.xml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>RJW_PlasticSurgeries</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="M:RJW_PlasticSurgeries.Recipe_Surgery_Sphinctoplasty.ApplyOnPawn(Verse.Pawn,Verse.BodyPartRecord,Verse.Pawn,System.Collections.Generic.List{Verse.Thing},RimWorld.Bill)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:RJW_PlasticSurgeries.Recipe_Surgery_Vaginoplasty.ApplyOnPawn(Verse.Pawn,Verse.BodyPartRecord,Verse.Pawn,System.Collections.Generic.List{Verse.Thing},RimWorld.Bill)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
163
Defs/Recipe_Surgery/Recipes_Surgery_Mammoplasty.xml
Normal file
163
Defs/Recipe_Surgery/Recipes_Surgery_Mammoplasty.xml
Normal file
|
@ -0,0 +1,163 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<Defs>
|
||||||
|
<RecipeDef Name="Surgery_Mammoplasty_X" Abstract="True">
|
||||||
|
<defName>Surgery_Mammoplasty</defName>
|
||||||
|
<label>mammoplasty</label>
|
||||||
|
<description>Surgically increases the pawn's breast size by 25%.</description>
|
||||||
|
<!--<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty</workerClass>-->
|
||||||
|
<jobString>increasing breast size</jobString>
|
||||||
|
<effectWorking>Surgery</effectWorking>
|
||||||
|
<soundWorking>Recipe_Surgery</soundWorking>
|
||||||
|
<workSpeedStat>MedicalOperationSpeed</workSpeedStat>
|
||||||
|
<workSkill>Medicine</workSkill>
|
||||||
|
<workSkillLearnFactor>0.2</workSkillLearnFactor>
|
||||||
|
<workAmount>400</workAmount>
|
||||||
|
<anesthetize>true</anesthetize>
|
||||||
|
<recipeUsers>
|
||||||
|
<li>Human</li>
|
||||||
|
</recipeUsers>
|
||||||
|
<surgerySuccessChanceFactor>95</surgerySuccessChanceFactor>
|
||||||
|
<ingredients>
|
||||||
|
<li>
|
||||||
|
<filter>
|
||||||
|
<categories>
|
||||||
|
<li>Medicine</li>
|
||||||
|
</categories>
|
||||||
|
</filter>
|
||||||
|
<count>1</count>
|
||||||
|
</li>
|
||||||
|
</ingredients>
|
||||||
|
<fixedIngredientFilter>
|
||||||
|
<categories>
|
||||||
|
<li>Medicine</li>
|
||||||
|
</categories>
|
||||||
|
</fixedIngredientFilter>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_A</defName>
|
||||||
|
<label>mammoplasty (A Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an A cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_A</workerClass>
|
||||||
|
<jobString>alter cup size to A</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_B</defName>
|
||||||
|
<label>mammoplasty (B Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an B cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_B</workerClass>
|
||||||
|
<jobString>alter cup size to B</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_C</defName>
|
||||||
|
<label>mammoplasty (C Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an C cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_C</workerClass>
|
||||||
|
<jobString>alter cup size to C</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_D</defName>
|
||||||
|
<label>mammoplasty (D Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an D cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_D</workerClass>
|
||||||
|
<jobString>alter cup size to D</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_E</defName>
|
||||||
|
<label>mammoplasty (E Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an E cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_E</workerClass>
|
||||||
|
<jobString>alter cup size to E</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_F</defName>
|
||||||
|
<label>mammoplasty (F Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an F cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_F</workerClass>
|
||||||
|
<jobString>alter cup size to F</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_G</defName>
|
||||||
|
<label>mammoplasty (G Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an G cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_G</workerClass>
|
||||||
|
<jobString>alter cup size to G</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_H</defName>
|
||||||
|
<label>mammoplasty (H Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an H cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_H</workerClass>
|
||||||
|
<jobString>alter cup size to H</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_J</defName>
|
||||||
|
<label>mammoplasty (J Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an J cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_J</workerClass>
|
||||||
|
<jobString>alter cup size to J</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_K</defName>
|
||||||
|
<label>mammoplasty (K Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an K cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_K</workerClass>
|
||||||
|
<jobString>alter cup size to K</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_L</defName>
|
||||||
|
<label>mammoplasty (L Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an L cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_L</workerClass>
|
||||||
|
<jobString>alter cup size to L</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_M</defName>
|
||||||
|
<label>mammoplasty (M Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an M cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_M</workerClass>
|
||||||
|
<jobString>alter cup size to M</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_N</defName>
|
||||||
|
<label>mammoplasty (N Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an N cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_N</workerClass>
|
||||||
|
<jobString>alter cup size to N</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_O</defName>
|
||||||
|
<label>mammoplasty (O Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an O cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_O</workerClass>
|
||||||
|
<jobString>alter cup size to O</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_P</defName>
|
||||||
|
<label>mammoplasty (P Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an P cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_P</workerClass>
|
||||||
|
<jobString>alter cup size to P</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_Q</defName>
|
||||||
|
<label>mammoplasty (Q Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an Q cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_Q</workerClass>
|
||||||
|
<jobString>alter cup size to Q</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_R</defName>
|
||||||
|
<label>mammoplasty (R Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an R cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_R</workerClass>
|
||||||
|
<jobString>alter cup size to R</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Mammoplasty_X">
|
||||||
|
<defName>Surgery_Mammoplasty_Unknown</defName>
|
||||||
|
<label>mammoplasty (??? Cup)</label>
|
||||||
|
<description>Surgically gives the pawn an ??? cup.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Mammoplasty_Unknown</workerClass>
|
||||||
|
<jobString>alter cup size to ???</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
</Defs>
|
72
Defs/Recipe_Surgery/Recipes_Surgery_Sphinctoplasty.xml
Normal file
72
Defs/Recipe_Surgery/Recipes_Surgery_Sphinctoplasty.xml
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<Defs>
|
||||||
|
<RecipeDef Name="Surgery_Sphinctoplasty_X" Abstract="True">
|
||||||
|
<defName>Surgery_Sphinctoplasty</defName>
|
||||||
|
<label>sphinctoplasty</label>
|
||||||
|
<description>Surgically tightens the pawn's Sphincter by 25%.</description>
|
||||||
|
<!--<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Sphinctoplasty</workerClass>-->
|
||||||
|
<jobString>tightening Sphincter</jobString>
|
||||||
|
<effectWorking>Surgery</effectWorking>
|
||||||
|
<soundWorking>Recipe_Surgery</soundWorking>
|
||||||
|
<workSpeedStat>MedicalOperationSpeed</workSpeedStat>
|
||||||
|
<workSkill>Medicine</workSkill>
|
||||||
|
<workSkillLearnFactor>0.2</workSkillLearnFactor>
|
||||||
|
<workAmount>400</workAmount>
|
||||||
|
<anesthetize>true</anesthetize>
|
||||||
|
<recipeUsers>
|
||||||
|
<li>Human</li>
|
||||||
|
</recipeUsers>
|
||||||
|
<surgerySuccessChanceFactor>95</surgerySuccessChanceFactor>
|
||||||
|
<ingredients>
|
||||||
|
<li>
|
||||||
|
<filter>
|
||||||
|
<categories>
|
||||||
|
<li>Medicine</li>
|
||||||
|
</categories>
|
||||||
|
</filter>
|
||||||
|
<count>1</count>
|
||||||
|
</li>
|
||||||
|
</ingredients>
|
||||||
|
<fixedIngredientFilter>
|
||||||
|
<categories>
|
||||||
|
<li>Medicine</li>
|
||||||
|
</categories>
|
||||||
|
</fixedIngredientFilter>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Sphinctoplasty_X">
|
||||||
|
<defName>Surgery_Sphinctoplasty_Micro</defName>
|
||||||
|
<label>sphinctoplasty (micro)</label>
|
||||||
|
<description>Surgically gives the pawn an micro Sphincter.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Sphinctoplasty_Micro</workerClass>
|
||||||
|
<jobString>alter Sphincter size to micro</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Sphinctoplasty_X">
|
||||||
|
<defName>Surgery_Sphinctoplasty_Tight</defName>
|
||||||
|
<label>sphinctoplasty (tight)</label>
|
||||||
|
<description>Surgically gives the pawn an tight Sphincter.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Sphinctoplasty_Tight</workerClass>
|
||||||
|
<jobString>alter Sphincter size to tight</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Sphinctoplasty_X">
|
||||||
|
<defName>Surgery_Sphinctoplasty_Average</defName>
|
||||||
|
<label>sphinctoplasty (average)</label>
|
||||||
|
<description>Surgically gives the pawn an average Sphincter.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Sphinctoplasty_Average</workerClass>
|
||||||
|
<jobString>alter Sphincter size to average</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Sphinctoplasty_X">
|
||||||
|
<defName>Surgery_Sphinctoplasty_Accomodating</defName>
|
||||||
|
<label>sphinctoplasty (accomodating)</label>
|
||||||
|
<description>Surgically gives the pawn an accomodating Sphincter.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Sphinctoplasty_Accomodating</workerClass>
|
||||||
|
<jobString>alter Sphincter size to accomodating</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Sphinctoplasty_X">
|
||||||
|
<defName>Surgery_Sphinctoplasty_Cavernous</defName>
|
||||||
|
<label>sphinctoplasty (cavernous)</label>
|
||||||
|
<description>Surgically gives the pawn an cavernous Sphincter.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Sphinctoplasty_Cavernous</workerClass>
|
||||||
|
<jobString>alter Sphincter size to cavernous</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
</Defs>
|
72
Defs/Recipe_Surgery/Recipes_Surgery_Vaginoplasty.xml
Normal file
72
Defs/Recipe_Surgery/Recipes_Surgery_Vaginoplasty.xml
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<Defs>
|
||||||
|
<RecipeDef Name="Surgery_Vaginoplasty_X" Abstract="True">
|
||||||
|
<defName>Surgery_Vaginoplasty</defName>
|
||||||
|
<label>vaginoplasty</label>
|
||||||
|
<description>Surgically tightens the pawn's Vagina by 25%.</description>
|
||||||
|
<!--<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Vaginoplasty</workerClass>-->
|
||||||
|
<jobString>tightening Vagina</jobString>
|
||||||
|
<effectWorking>Surgery</effectWorking>
|
||||||
|
<soundWorking>Recipe_Surgery</soundWorking>
|
||||||
|
<workSpeedStat>MedicalOperationSpeed</workSpeedStat>
|
||||||
|
<workSkill>Medicine</workSkill>
|
||||||
|
<workSkillLearnFactor>0.2</workSkillLearnFactor>
|
||||||
|
<workAmount>400</workAmount>
|
||||||
|
<anesthetize>true</anesthetize>
|
||||||
|
<recipeUsers>
|
||||||
|
<li>Human</li>
|
||||||
|
</recipeUsers>
|
||||||
|
<surgerySuccessChanceFactor>95</surgerySuccessChanceFactor>
|
||||||
|
<ingredients>
|
||||||
|
<li>
|
||||||
|
<filter>
|
||||||
|
<categories>
|
||||||
|
<li>Medicine</li>
|
||||||
|
</categories>
|
||||||
|
</filter>
|
||||||
|
<count>1</count>
|
||||||
|
</li>
|
||||||
|
</ingredients>
|
||||||
|
<fixedIngredientFilter>
|
||||||
|
<categories>
|
||||||
|
<li>Medicine</li>
|
||||||
|
</categories>
|
||||||
|
</fixedIngredientFilter>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Vaginoplasty_X">
|
||||||
|
<defName>Surgery_Vaginoplasty_Micro</defName>
|
||||||
|
<label>vaginoplasty (micro)</label>
|
||||||
|
<description>Surgically gives the pawn an micro Vagina.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Vaginoplasty_Micro</workerClass>
|
||||||
|
<jobString>alter Vagina size to micro</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Vaginoplasty_X">
|
||||||
|
<defName>Surgery_Vaginoplasty_Tight</defName>
|
||||||
|
<label>vaginoplasty (tight)</label>
|
||||||
|
<description>Surgically gives the pawn an tight Vagina.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Vaginoplasty_Tight</workerClass>
|
||||||
|
<jobString>alter Vagina size to tight</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Vaginoplasty_X">
|
||||||
|
<defName>Surgery_Vaginoplasty_Average</defName>
|
||||||
|
<label>vaginoplasty (average)</label>
|
||||||
|
<description>Surgically gives the pawn an average Vagina.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Vaginoplasty_Average</workerClass>
|
||||||
|
<jobString>alter Vagina size to average</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Vaginoplasty_X">
|
||||||
|
<defName>Surgery_Vaginoplasty_Accomodating</defName>
|
||||||
|
<label>vaginoplasty (accomodating)</label>
|
||||||
|
<description>Surgically gives the pawn an accomodating Vagina.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Vaginoplasty_Accomodating</workerClass>
|
||||||
|
<jobString>alter Vagina size to accomodating</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Vaginoplasty_X">
|
||||||
|
<defName>Surgery_Vaginoplasty_Cavernous</defName>
|
||||||
|
<label>vaginoplasty (cavernous)</label>
|
||||||
|
<description>Surgically gives the pawn an cavernous Vagina.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Vaginoplasty_Cavernous</workerClass>
|
||||||
|
<jobString>alter Vagina size to cavernous</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
</Defs>
|
BIN
Source/Preview.psd
Normal file
BIN
Source/Preview.psd
Normal file
Binary file not shown.
25
Source/RJW_PlasticSurgeries.sln
Normal file
25
Source/RJW_PlasticSurgeries.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.31911.196
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RJW PlasticSurgeries", "RJW_PlasticSurgeries\RJW PlasticSurgeries.csproj", "{F17C6B3F-BA9D-4133-A201-1265A64BCB71}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{F17C6B3F-BA9D-4133-A201-1265A64BCB71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{F17C6B3F-BA9D-4133-A201-1265A64BCB71}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{F17C6B3F-BA9D-4133-A201-1265A64BCB71}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{F17C6B3F-BA9D-4133-A201-1265A64BCB71}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {DBAFE1CE-D76E-4E7B-9E31-5DBC343D7281}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
9
Source/RJW_PlasticSurgeries/Mod.cs
Normal file
9
Source/RJW_PlasticSurgeries/Mod.cs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
using HugsLib;
|
||||||
|
|
||||||
|
namespace RJW_PlasticSurgeries
|
||||||
|
{
|
||||||
|
public class Mod : ModBase
|
||||||
|
{
|
||||||
|
public override string ModIdentifier => "Stardust3D.RJW.PlasticSurgeries";
|
||||||
|
}
|
||||||
|
}
|
35
Source/RJW_PlasticSurgeries/Properties/AssemblyInfo.cs
Normal file
35
Source/RJW_PlasticSurgeries/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("RJW Vaginoplasty")]
|
||||||
|
[assembly: AssemblyDescription("Surgically alter pawn's genitals.")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("RJW_PlasticSurgeries")]
|
||||||
|
[assembly: AssemblyCopyright("©2021 Stardust3D")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("eefbb469-e5e0-48be-bf4d-c5e838d1362b")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("4942.0.1.2")]
|
||||||
|
[assembly: AssemblyFileVersion("4942.0.1.2")]
|
93
Source/RJW_PlasticSurgeries/RJW PlasticSurgeries.csproj
Normal file
93
Source/RJW_PlasticSurgeries/RJW PlasticSurgeries.csproj
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{F17C6B3F-BA9D-4133-A201-1265A64BCB71}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>RJW_PlasticSurgeries</RootNamespace>
|
||||||
|
<AssemblyName>RJW_PlasticSurgeries</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<TargetFrameworkProfile>
|
||||||
|
</TargetFrameworkProfile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>portable</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>..\..\Assemblies\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
<DocumentationFile>
|
||||||
|
</DocumentationFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>portable</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>..\..\Assemblies\</OutputPath>
|
||||||
|
<DefineConstants>
|
||||||
|
</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
<DocumentationFile>..\..\Assemblies\RJW_PlasticSurgeries.xml</DocumentationFile>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<SignAssembly>true</SignAssembly>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<DelaySign>false</DelaySign>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Assembly-CSharp">
|
||||||
|
<HintPath>..\..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Dyspareunia">
|
||||||
|
<HintPath>..\..\..\dyspareunia\Assemblies\Dyspareunia.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="HugsLib">
|
||||||
|
<HintPath>..\..\..\..\..\..\workshop\content\294100\818773962\Assemblies\HugsLib.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="RJW">
|
||||||
|
<HintPath>..\..\..\rjw-base\1.3\Assemblies\RJW.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Mod.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="Recipe_Surgery_Mammoplasty.cs" />
|
||||||
|
<Compile Include="Recipe_Surgery_Sphinctoplasty.cs" />
|
||||||
|
<Compile Include="Recipe_Surgery_Vaginoplasty.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="..\..\About\About.xml">
|
||||||
|
<Link>About\About.xml</Link>
|
||||||
|
</Content>
|
||||||
|
<Content Include="..\..\About\Manifest.xml">
|
||||||
|
<Link>About\Manifest.xml</Link>
|
||||||
|
</Content>
|
||||||
|
<Content Include="..\..\Defs\Recipe_Surgery\Recipes_Surgery_Mammoplasty.xml">
|
||||||
|
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Mammoplasty.xml</Link>
|
||||||
|
</Content>
|
||||||
|
<Content Include="..\..\Defs\Recipe_Surgery\Recipes_Surgery_Sphinctoplasty.xml">
|
||||||
|
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Sphinctoplasty.xml</Link>
|
||||||
|
</Content>
|
||||||
|
<Content Include="..\..\Defs\Recipe_Surgery\Recipes_Surgery_Vaginoplasty.xml">
|
||||||
|
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Vaginoplasty.xml</Link>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
221
Source/RJW_PlasticSurgeries/Recipe_Surgery_Mammoplasty.cs
Normal file
221
Source/RJW_PlasticSurgeries/Recipe_Surgery_Mammoplasty.cs
Normal file
|
@ -0,0 +1,221 @@
|
||||||
|
using RimWorld;
|
||||||
|
using rjw;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using Verse;
|
||||||
|
|
||||||
|
namespace RJW_PlasticSurgeries
|
||||||
|
{
|
||||||
|
public abstract class Recipe_Surgery_Mammoplasty : Recipe_Surgery
|
||||||
|
{
|
||||||
|
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
||||||
|
{
|
||||||
|
var part = Genital_Helper.get_genitalsBPR(pawn);
|
||||||
|
if (part != null)
|
||||||
|
{
|
||||||
|
var hediffs = Genital_Helper.get_PartsHediffList(pawn, part);
|
||||||
|
if (Genital_Helper.has_breasts(pawn, hediffs) && pawn.GetBreastList().Any(hed => hed.Severity >= 0.02f))
|
||||||
|
yield return part;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients,
|
||||||
|
Bill bill)
|
||||||
|
{
|
||||||
|
if (billDoer != null)
|
||||||
|
{
|
||||||
|
TaleRecorder.RecordTale(TaleDefOf.DidSurgery, billDoer, pawn);
|
||||||
|
SurgeryResult(pawn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract void SurgeryResult(Pawn pawn);
|
||||||
|
/*{
|
||||||
|
pawn.GetBreastList().ForEach(hed => hed.Severity = Math.Min(1.0f, hed.Severity * 1.25f));
|
||||||
|
//Log.Message($"Cup sizes: {pawn.GetBreastList().SelectMany(hed => hed.def.GetModExtension<PartSizeExtension>().cupSizes.Join()).Join(delimiter: ";")}");
|
||||||
|
float val = 0;
|
||||||
|
PartSizeExtension.TryGetCupSize(pawn.GetBreastList().First(), out val);
|
||||||
|
pawn.GetBreastList().First().def.stages.First();
|
||||||
|
Log.Message($"Cup size: {val}");
|
||||||
|
}*/
|
||||||
|
|
||||||
|
protected void SurgeryCupX(Pawn pawn, int stage)
|
||||||
|
{
|
||||||
|
pawn.GetBreastList().ForEach(hed =>
|
||||||
|
{
|
||||||
|
float severity;
|
||||||
|
if (TryGetSeverityFromSize(hed, stage, out severity))
|
||||||
|
{
|
||||||
|
hed.Severity = severity;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool TryGetSeverityFromSize(Hediff hediff, float cupSize, out float severity)
|
||||||
|
{
|
||||||
|
if (!hediff.def.HasModExtension<PartSizeExtension>())
|
||||||
|
{
|
||||||
|
severity = 0f;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
var extension = hediff.def.GetModExtension<PartSizeExtension>();
|
||||||
|
var list = extension.cupSizes;
|
||||||
|
|
||||||
|
if (list == null)
|
||||||
|
{
|
||||||
|
severity = 0f;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
var curve = new SimpleCurve(hediff.def.stages.Zip(list,
|
||||||
|
(stage, s) => new CurvePoint(s, stage.minSeverity)));
|
||||||
|
severity = curve.Evaluate(cupSize);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_A : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_B : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_C : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_D : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_E : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_F : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 7);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_G : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 9);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_H : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 11);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_J : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 13);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_K : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 15);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_L : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 17);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_M : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 19);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_N : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 21);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_O : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 23);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_P : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 25);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_Q : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 27);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_R : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 29);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Mammoplasty_Unknown : Recipe_Surgery_Mammoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryCupX(pawn, 31);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
91
Source/RJW_PlasticSurgeries/Recipe_Surgery_Sphinctoplasty.cs
Normal file
91
Source/RJW_PlasticSurgeries/Recipe_Surgery_Sphinctoplasty.cs
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
using System;
|
||||||
|
using RimWorld;
|
||||||
|
using rjw;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Dyspareunia;
|
||||||
|
using Verse;
|
||||||
|
|
||||||
|
namespace RJW_PlasticSurgeries
|
||||||
|
{
|
||||||
|
public abstract class Recipe_Surgery_Sphinctoplasty : Recipe_Surgery
|
||||||
|
{
|
||||||
|
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
||||||
|
{
|
||||||
|
var part = Genital_Helper.get_anusBPR(pawn);
|
||||||
|
if (part != null)
|
||||||
|
{
|
||||||
|
var hediffs = Genital_Helper.get_PartsHediffList(pawn, part);
|
||||||
|
if (Genital_Helper.has_anus(pawn, hediffs)) yield return part;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients,
|
||||||
|
Bill bill)
|
||||||
|
{
|
||||||
|
if (billDoer != null)
|
||||||
|
{
|
||||||
|
TaleRecorder.RecordTale(TaleDefOf.DidSurgery, billDoer, pawn);
|
||||||
|
SurgeryResult(pawn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract void SurgeryResult(Pawn pawn);
|
||||||
|
|
||||||
|
protected void SurgeryX(Pawn pawn, float severity)
|
||||||
|
{
|
||||||
|
pawn.GetAnusList().ForEach(hed =>
|
||||||
|
{
|
||||||
|
hed.Severity = severity;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
PenetrationUtility.AddDamageHediff(Dyspareunia.DamageDefOf.SexStretch, 0.5f, hed, null);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Log.Error("Try enabling Dyspareunia for sore genitals");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Sphinctoplasty_Micro : Recipe_Surgery_Sphinctoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.1f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Sphinctoplasty_Tight : Recipe_Surgery_Sphinctoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.3f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Sphinctoplasty_Average : Recipe_Surgery_Sphinctoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.5f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Sphinctoplasty_Accomodating : Recipe_Surgery_Sphinctoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.7f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Sphinctoplasty_Cavernous : Recipe_Surgery_Sphinctoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.9f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
92
Source/RJW_PlasticSurgeries/Recipe_Surgery_Vaginoplasty.cs
Normal file
92
Source/RJW_PlasticSurgeries/Recipe_Surgery_Vaginoplasty.cs
Normal file
|
@ -0,0 +1,92 @@
|
||||||
|
using System;
|
||||||
|
using RimWorld;
|
||||||
|
using rjw;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using Dyspareunia;
|
||||||
|
using Verse;
|
||||||
|
|
||||||
|
namespace RJW_PlasticSurgeries
|
||||||
|
{
|
||||||
|
public abstract class Recipe_Surgery_Vaginoplasty : Recipe_Surgery
|
||||||
|
{
|
||||||
|
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
||||||
|
{
|
||||||
|
var part = Genital_Helper.get_genitalsBPR(pawn);
|
||||||
|
if (part != null)
|
||||||
|
{
|
||||||
|
var hediffs = Genital_Helper.get_PartsHediffList(pawn, part);
|
||||||
|
if (Genital_Helper.has_vagina(pawn, hediffs)) yield return part;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients,
|
||||||
|
Bill bill)
|
||||||
|
{
|
||||||
|
if (billDoer != null)
|
||||||
|
{
|
||||||
|
TaleRecorder.RecordTale(TaleDefOf.DidSurgery, billDoer, pawn);
|
||||||
|
SurgeryResult(pawn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract void SurgeryResult(Pawn pawn);
|
||||||
|
|
||||||
|
protected void SurgeryX(Pawn pawn, float severity)
|
||||||
|
{
|
||||||
|
pawn.GetGenitalsList().FindAll(Genital_Helper.is_vagina).ForEach(hed =>
|
||||||
|
{
|
||||||
|
hed.Severity = severity;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
PenetrationUtility.AddDamageHediff(Dyspareunia.DamageDefOf.SexStretch, 0.5f, hed, null);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Log.Error("Try enabling Dyspareunia for sore genitals");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Vaginoplasty_Micro : Recipe_Surgery_Vaginoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.1f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Vaginoplasty_Tight : Recipe_Surgery_Vaginoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.3f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Vaginoplasty_Average : Recipe_Surgery_Vaginoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.5f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Vaginoplasty_Accomodating : Recipe_Surgery_Vaginoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.7f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Vaginoplasty_Cavernous : Recipe_Surgery_Vaginoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn)
|
||||||
|
{
|
||||||
|
this.SurgeryX(pawn, 0.9f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue