mirror of
https://gitgud.io/Stardust3D/rjw-plasticsurgeries.git
synced 2024-08-14 23:57:25 +00:00
Merge branch 'release/4943.0.1.5'
This commit is contained in:
commit
213aa43a04
10 changed files with 164 additions and 8 deletions
Binary file not shown.
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
<Manifest>
|
<Manifest>
|
||||||
<identifier>RJW PlasticSurgeries</identifier>
|
<identifier>RJW PlasticSurgeries</identifier>
|
||||||
<version>4943.0.1.3</version>
|
<version>4943.0.1.4</version>
|
||||||
</Manifest>
|
</Manifest>
|
Binary file not shown.
72
Defs/Recipe_Surgery/Recipes_Surgery_Penoplasty.xml
Normal file
72
Defs/Recipe_Surgery/Recipes_Surgery_Penoplasty.xml
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<Defs>
|
||||||
|
<RecipeDef Name="Surgery_Penoplasty_X" Abstract="True">
|
||||||
|
<defName>Surgery_Penoplasty</defName>
|
||||||
|
<label>Penoplasty</label>
|
||||||
|
<description>Surgically enlarges the pawn's Penis by 25%.</description>
|
||||||
|
<!--<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Penoplasty</workerClass>-->
|
||||||
|
<jobString>enlarging Penis</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_Penoplasty_X">
|
||||||
|
<defName>Surgery_Penoplasty_Micro</defName>
|
||||||
|
<label>Penoplasty (micro)</label>
|
||||||
|
<description>Surgically gives the pawn an micro Penis.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Penoplasty_Micro</workerClass>
|
||||||
|
<jobString>alter Penis size to micro</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Penoplasty_X">
|
||||||
|
<defName>Surgery_Penoplasty_Small</defName>
|
||||||
|
<label>Penoplasty (small)</label>
|
||||||
|
<description>Surgically gives the pawn an small Penis.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Penoplasty_Small</workerClass>
|
||||||
|
<jobString>alter Penis size to small</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Penoplasty_X">
|
||||||
|
<defName>Surgery_Penoplasty_Average</defName>
|
||||||
|
<label>Penoplasty (average)</label>
|
||||||
|
<description>Surgically gives the pawn an average Penis.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Penoplasty_Average</workerClass>
|
||||||
|
<jobString>alter Penis size to average</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Penoplasty_X">
|
||||||
|
<defName>Surgery_Penoplasty_Large</defName>
|
||||||
|
<label>Penoplasty (large)</label>
|
||||||
|
<description>Surgically gives the pawn an accomodating Penis.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Penoplasty_Large</workerClass>
|
||||||
|
<jobString>alter Penis size to large</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
<RecipeDef ParentName="Surgery_Penoplasty_X">
|
||||||
|
<defName>Surgery_Penoplasty_Huge</defName>
|
||||||
|
<label>Penoplasty (huge)</label>
|
||||||
|
<description>Surgically gives the pawn an huge Penis.</description>
|
||||||
|
<workerClass>RJW_PlasticSurgeries.Recipe_Surgery_Penoplasty_Huge</workerClass>
|
||||||
|
<jobString>alter Penis size to huge</jobString>
|
||||||
|
</RecipeDef>
|
||||||
|
</Defs>
|
|
@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("RJW Vaginoplasty")]
|
[assembly: AssemblyTitle("RJW PlasticSurgeries")]
|
||||||
[assembly: AssemblyDescription("Surgically alter pawn's genitals.")]
|
[assembly: AssemblyDescription("Surgically alter pawn's genitals.")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
|
@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("4943.0.1.3")]
|
[assembly: AssemblyVersion("4943.0.1.5")]
|
||||||
[assembly: AssemblyFileVersion("4943.0.1.3")]
|
[assembly: AssemblyFileVersion("4943.0.1.5")]
|
|
@ -48,8 +48,7 @@
|
||||||
<DelaySign>false</DelaySign>
|
<DelaySign>false</DelaySign>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyOriginatorKeyFile>
|
<AssemblyOriginatorKeyFile>RJW_PlasticSurgeries.snk</AssemblyOriginatorKeyFile>
|
||||||
</AssemblyOriginatorKeyFile>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Assembly-CSharp">
|
<Reference Include="Assembly-CSharp">
|
||||||
|
@ -72,6 +71,7 @@
|
||||||
<Compile Include="Mod.cs" />
|
<Compile Include="Mod.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Recipe_Surgery_Mammoplasty.cs" />
|
<Compile Include="Recipe_Surgery_Mammoplasty.cs" />
|
||||||
|
<Compile Include="Recipe_Surgery_Penoplasty.cs" />
|
||||||
<Compile Include="Recipe_Surgery_Sphinctoplasty.cs" />
|
<Compile Include="Recipe_Surgery_Sphinctoplasty.cs" />
|
||||||
<Compile Include="Recipe_Surgery_Beautify.cs" />
|
<Compile Include="Recipe_Surgery_Beautify.cs" />
|
||||||
<Compile Include="Recipe_Surgery_Vaginoplasty.cs" />
|
<Compile Include="Recipe_Surgery_Vaginoplasty.cs" />
|
||||||
|
@ -89,6 +89,9 @@
|
||||||
<Content Include="..\..\Defs\Recipe_Surgery\Recipes_Surgery_Mammoplasty.xml">
|
<Content Include="..\..\Defs\Recipe_Surgery\Recipes_Surgery_Mammoplasty.xml">
|
||||||
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Mammoplasty.xml</Link>
|
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Mammoplasty.xml</Link>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="..\..\Defs\Recipe_Surgery\Recipes_Surgery_Penoplasty.xml">
|
||||||
|
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Penoplasty.xml</Link>
|
||||||
|
</Content>
|
||||||
<Content Include="..\..\Defs\Recipe_Surgery\Recipes_Surgery_Sphinctoplasty.xml">
|
<Content Include="..\..\Defs\Recipe_Surgery\Recipes_Surgery_Sphinctoplasty.xml">
|
||||||
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Sphinctoplasty.xml</Link>
|
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Sphinctoplasty.xml</Link>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -96,5 +99,8 @@
|
||||||
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Vaginoplasty.xml</Link>
|
<Link>Defs\Recipe_Surgery\Recipes_Surgery_Vaginoplasty.xml</Link>
|
||||||
</Content>
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="RJW_PlasticSurgeries.snk" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
BIN
Source/RJW_PlasticSurgeries/RJW_PlasticSurgeries.snk
Normal file
BIN
Source/RJW_PlasticSurgeries/RJW_PlasticSurgeries.snk
Normal file
Binary file not shown.
78
Source/RJW_PlasticSurgeries/Recipe_Surgery_Penoplasty.cs
Normal file
78
Source/RJW_PlasticSurgeries/Recipe_Surgery_Penoplasty.cs
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Dyspareunia;
|
||||||
|
using RimWorld;
|
||||||
|
using rjw;
|
||||||
|
using Verse;
|
||||||
|
using DamageDefOf = Dyspareunia.DamageDefOf;
|
||||||
|
|
||||||
|
namespace RJW_PlasticSurgeries
|
||||||
|
{
|
||||||
|
public abstract class Recipe_Surgery_Penoplasty : 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_penis_fertile(pawn, hediffs) ||
|
||||||
|
Genital_Helper.has_penis_infertile(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_penis).ForEach(hed =>
|
||||||
|
{
|
||||||
|
hed.Severity = severity;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
PenetrationUtility.AddDamageHediff(DamageDefOf.SexStretch, 0.5f, hed, null);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Log.Error("Try enabling Dyspareunia for sore genitals");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Penoplasty_Micro : Recipe_Surgery_Penoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn) => SurgeryX(pawn, 0.1f);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Penoplasty_Small : Recipe_Surgery_Penoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn) => SurgeryX(pawn, 0.3f);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Penoplasty_Average : Recipe_Surgery_Penoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn) => SurgeryX(pawn, 0.5f);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Penoplasty_Large : Recipe_Surgery_Penoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn) => SurgeryX(pawn, 0.7f);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Recipe_Surgery_Penoplasty_Huge : Recipe_Surgery_Penoplasty
|
||||||
|
{
|
||||||
|
public override void SurgeryResult(Pawn pawn) => SurgeryX(pawn, 0.9f);
|
||||||
|
}
|
||||||
|
}
|
|
@ -11,7 +11,7 @@ plugins {
|
||||||
//id("com.ullink.nunit") version "1.12"
|
//id("com.ullink.nunit") version "1.12"
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "4943.0.1.3"
|
version = "4943.0.1.5"
|
||||||
val friendlyName = "rjw-plasticsurgeries"
|
val friendlyName = "rjw-plasticsurgeries"
|
||||||
|
|
||||||
tasks.register<com.ullink.Msbuild>("buildC#") {
|
tasks.register<com.ullink.Msbuild>("buildC#") {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
Loading…
Reference in a new issue