dyspareunia support for vaginoplasty

This commit is contained in:
Stardust3D 2021-12-29 20:55:19 +01:00
parent d6114f8de0
commit 05caabf067
6 changed files with 14 additions and 4 deletions

View File

@ -20,6 +20,11 @@
<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>

View File

@ -2,5 +2,5 @@
<Manifest>
<identifier>RJW PlasticSurgeries</identifier>
<version>4942.0.1.0</version>
<version>4942.0.1.1</version>
</Manifest>

Binary file not shown.

View File

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// 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")]
[assembly: AssemblyVersion("4942.0.1.1")]
[assembly: AssemblyFileVersion("4942.0.1.1")]

View File

@ -1,6 +1,7 @@
using RimWorld;
using rjw;
using System.Collections.Generic;
using Dyspareunia;
using Verse;
namespace RJW_PlasticSurgeries
@ -31,7 +32,11 @@ namespace RJW_PlasticSurgeries
protected void SurgeryResult(Pawn pawn)
{
pawn.GetGenitalsList().FindAll(Genital_Helper.is_vagina).ForEach(hed => hed.Severity *= 0.75f);
pawn.GetGenitalsList().FindAll(Genital_Helper.is_vagina).ForEach(hed =>
{
hed.Severity *= 0.75f;
PenetrationUtility.AddDamageHediff(Dyspareunia.DamageDefOf.SexStretch, 0.5f, hed, null);
});
}
}
}