mirror of
				https://gitgud.io/Stardust3D/rjw-plasticsurgeries.git
				synced 2024-08-14 23:57:25 +00:00 
			
		
		
		
	relative vaginoplasty and absolute mammoplasty working
This commit is contained in:
		
							parent
							
								
									9c5e39738c
								
							
						
					
					
						commit
						defb76bb95
					
				
					 18 changed files with 776 additions and 0 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								1.3/Assemblies/RJW_PlasticSurgeries.dll
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								1.3/Assemblies/RJW_PlasticSurgeries.dll
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										29
									
								
								About/About.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								About/About.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
<?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>
 | 
			
		||||
	</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.0</version>
 | 
			
		||||
</Manifest>
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								Assemblies/RJW_PlasticSurgeries.dll
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assemblies/RJW_PlasticSurgeries.dll
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										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>
 | 
			
		||||
							
								
								
									
										37
									
								
								Defs/Recipe_Surgery/Recipes_Surgery_Vaginoplasty.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								Defs/Recipe_Surgery/Recipes_Surgery_Vaginoplasty.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,37 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
 | 
			
		||||
<Defs>
 | 
			
		||||
	<RecipeDef>
 | 
			
		||||
		<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>
 | 
			
		||||
</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
 | 
			
		||||
							
								
								
									
										29
									
								
								Source/RJW_PlasticSurgeries/About.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Source/RJW_PlasticSurgeries/About.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
<?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>
 | 
			
		||||
	</modDependencies>
 | 
			
		||||
	<loadAfter>
 | 
			
		||||
		<li>Ludeon.RimWorld</li>
 | 
			
		||||
		<li>rim.job.world</li>
 | 
			
		||||
		<li>NuttySquabble.Dyspareunia</li>
 | 
			
		||||
	</loadAfter>
 | 
			
		||||
</ModMetaData>
 | 
			
		||||
							
								
								
									
										6
									
								
								Source/RJW_PlasticSurgeries/Manifest.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								Source/RJW_PlasticSurgeries/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.0</version>
 | 
			
		||||
</Manifest>
 | 
			
		||||
							
								
								
									
										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.0")]
 | 
			
		||||
[assembly: AssemblyFileVersion("4942.0.1.0")]
 | 
			
		||||
							
								
								
									
										100
									
								
								Source/RJW_PlasticSurgeries/RJW PlasticSurgeries.csproj
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										100
									
								
								Source/RJW_PlasticSurgeries/RJW PlasticSurgeries.csproj
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,100 @@
 | 
			
		|||
<?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="0Harmony, Version=2.1.1.0, Culture=neutral, processorArchitecture=MSIL">
 | 
			
		||||
      <HintPath>..\packages\Lib.Harmony.2.1.1\lib\net472\0Harmony.dll</HintPath>
 | 
			
		||||
    </Reference>
 | 
			
		||||
    <Reference Include="Assembly-CSharp">
 | 
			
		||||
      <HintPath>..\..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
 | 
			
		||||
      <Private>False</Private>
 | 
			
		||||
    </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" />
 | 
			
		||||
    <Reference Include="System.Core" />
 | 
			
		||||
    <Reference Include="System.Xml.Linq" />
 | 
			
		||||
    <Reference Include="System.Data.DataSetExtensions" />
 | 
			
		||||
    <Reference Include="System.Data" />
 | 
			
		||||
    <Reference Include="System.Xml" />
 | 
			
		||||
    <Reference Include="UnityEngine">
 | 
			
		||||
      <HintPath>..\..\..\..\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath>
 | 
			
		||||
      <Private>False</Private>
 | 
			
		||||
    </Reference>
 | 
			
		||||
    <Reference Include="UnityEngine.CoreModule">
 | 
			
		||||
      <HintPath>..\..\..\..\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
 | 
			
		||||
      <Private>False</Private>
 | 
			
		||||
    </Reference>
 | 
			
		||||
    <Reference Include="UnityEngine.IMGUIModule">
 | 
			
		||||
      <HintPath>..\..\..\..\RimWorldWin64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
 | 
			
		||||
      <Private>False</Private>
 | 
			
		||||
    </Reference>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Compile Include="Mod.cs" />
 | 
			
		||||
    <Compile Include="Properties\AssemblyInfo.cs" />
 | 
			
		||||
    <Compile Include="Recipe_Surgery_Mammoplasty.cs" />
 | 
			
		||||
    <Compile Include="Recipe_Surgery_Vaginoplasty.cs" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <None Include="packages.config" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Content Include="About.xml" />
 | 
			
		||||
    <Content Include="Manifest.xml" />
 | 
			
		||||
    <Content Include="Recipes_Surgery_Mammoplasty.xml" />
 | 
			
		||||
    <Content Include="Recipes_Surgery_Vaginoplasty.xml" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 | 
			
		||||
</Project>
 | 
			
		||||
							
								
								
									
										222
									
								
								Source/RJW_PlasticSurgeries/Recipe_Surgery_Mammoplasty.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										222
									
								
								Source/RJW_PlasticSurgeries/Recipe_Surgery_Mammoplasty.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,222 @@
 | 
			
		|||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using RimWorld;
 | 
			
		||||
using rjw;
 | 
			
		||||
using Verse;
 | 
			
		||||
 | 
			
		||||
namespace RJW_PlasticSurgeries
 | 
			
		||||
{
 | 
			
		||||
    public abstract class Recipe_Surgery_Mammoplasty : Recipe_Surgery
 | 
			
		||||
    {
 | 
			
		||||
        public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
 | 
			
		||||
        {
 | 
			
		||||
            if (pawn.gender != Gender.Female) yield break;
 | 
			
		||||
 | 
			
		||||
            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)) 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);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										37
									
								
								Source/RJW_PlasticSurgeries/Recipe_Surgery_Vaginoplasty.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								Source/RJW_PlasticSurgeries/Recipe_Surgery_Vaginoplasty.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,37 @@
 | 
			
		|||
using System.Collections.Generic;
 | 
			
		||||
using RimWorld;
 | 
			
		||||
using rjw;
 | 
			
		||||
using Verse;
 | 
			
		||||
 | 
			
		||||
namespace RJW_PlasticSurgeries
 | 
			
		||||
{
 | 
			
		||||
    public class Recipe_Surgery_Vaginoplasty : Recipe_Surgery
 | 
			
		||||
    {
 | 
			
		||||
        public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
 | 
			
		||||
        {
 | 
			
		||||
            if (pawn.gender != Gender.Female) yield break;
 | 
			
		||||
 | 
			
		||||
            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;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        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);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        protected void SurgeryResult(Pawn pawn)
 | 
			
		||||
        {
 | 
			
		||||
            pawn.GetGenitalsList().FindAll(Genital_Helper.is_vagina).ForEach(hed => hed.Severity *= 0.75f);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										37
									
								
								Source/RJW_PlasticSurgeries/Recipes_Surgery_Mammoplasty.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								Source/RJW_PlasticSurgeries/Recipes_Surgery_Mammoplasty.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,37 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
 | 
			
		||||
<Defs>
 | 
			
		||||
	<RecipeDef>
 | 
			
		||||
		<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>
 | 
			
		||||
</Defs>
 | 
			
		||||
							
								
								
									
										37
									
								
								Source/RJW_PlasticSurgeries/Recipes_Surgery_Vaginoplasty.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								Source/RJW_PlasticSurgeries/Recipes_Surgery_Vaginoplasty.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,37 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
 | 
			
		||||
<Defs>
 | 
			
		||||
	<RecipeDef>
 | 
			
		||||
		<defName>Surgery_Vaginoplasty</defName>
 | 
			
		||||
		<label>vaginoplasty</label>
 | 
			
		||||
		<description>Surgically tightens the pawn's Vagina by 25%.</description>
 | 
			
		||||
		<workerClass>RJW_Vaginoplasty.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>
 | 
			
		||||
</Defs>
 | 
			
		||||
							
								
								
									
										4
									
								
								Source/RJW_PlasticSurgeries/packages.config
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Source/RJW_PlasticSurgeries/packages.config
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<packages>
 | 
			
		||||
  <package id="Lib.Harmony" version="2.1.1" targetFramework="net472" />
 | 
			
		||||
</packages>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue