mirror of
				https://gitgud.io/Stardust3D/rjw-plasticsurgeries.git
				synced 2024-08-14 23:57:25 +00:00 
			
		
		
		
	done
This commit is contained in:
		
							parent
							
								
									ed7646a76f
								
							
						
					
					
						commit
						44a9d7eb78
					
				
					 22 changed files with 884 additions and 35 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,6 @@ namespace RJW_PlasticSurgeries
 | 
			
		|||
{
 | 
			
		||||
    public abstract class Recipe_Plastic_Surgery : Recipe_Surgery
 | 
			
		||||
    {
 | 
			
		||||
        protected readonly bool HasDyspareunia = false; // ModLister.HasActiveModWithName("Dyspareunia");
 | 
			
		||||
        protected readonly bool HasLicentia = ModLister.HasActiveModWithName("RimJobWorld - Licentia Labs");
 | 
			
		||||
 | 
			
		||||
        public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
 | 
			
		||||
| 
						 | 
				
			
			@ -35,18 +34,11 @@ namespace RJW_PlasticSurgeries
 | 
			
		|||
 | 
			
		||||
        protected abstract void SurgeryResult(Pawn pawn);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        /// <Compatibility />
 | 
			
		||||
        private static void DamageHediff(Hediff hed)
 | 
			
		||||
        {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        protected void SurgeryX(Pawn pawn, float severity, bool damagePart = false)
 | 
			
		||||
        {
 | 
			
		||||
            GetHediffs(pawn).ForEach(hed =>
 | 
			
		||||
            {
 | 
			
		||||
                hed.Severity = severity;
 | 
			
		||||
                if (damagePart && HasDyspareunia) DamageHediff(hed);
 | 
			
		||||
                if (damagePart && HasLicentia)
 | 
			
		||||
                {
 | 
			
		||||
                    var (type, damage) = GetLicentiaDamage();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,16 +22,10 @@
 | 
			
		|||
            <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>
 | 
			
		||||
        <li>LustLicentia.RJWLabs</li>
 | 
			
		||||
    </loadAfter>
 | 
			
		||||
</ModMetaData>
 | 
			
		||||
| 
						 | 
				
			
			@ -36,9 +36,6 @@
 | 
			
		|||
        <PackageReference Include="UnlimitedHugs.Rimworld.HugsLib" Version="11.0.3" />
 | 
			
		||||
    </ItemGroup>
 | 
			
		||||
    <ItemGroup>
 | 
			
		||||
        <Reference Include="Dyspareunia">
 | 
			
		||||
            <HintPath>..\..\..\dyspareunia\1.3\Assemblies\Dyspareunia.dll</HintPath>
 | 
			
		||||
        </Reference>
 | 
			
		||||
        <Reference Include="LicentiaLabs">
 | 
			
		||||
            <HintPath>..\..\..\licentia-labs\Assemblies\LicentiaLabs.dll</HintPath>
 | 
			
		||||
        </Reference>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,9 +36,6 @@
 | 
			
		|||
        <PackageReference Include="UnlimitedHugs.Rimworld.HugsLib" Version="11.0.3" />
 | 
			
		||||
    </ItemGroup>
 | 
			
		||||
    <ItemGroup>
 | 
			
		||||
        <Reference Include="Dyspareunia">
 | 
			
		||||
            <HintPath>..\..\..\dyspareunia\1.4\Assemblies\Dyspareunia.dll</HintPath>
 | 
			
		||||
        </Reference>
 | 
			
		||||
        <Reference Include="LicentiaLabs">
 | 
			
		||||
            <HintPath>..\..\..\licentia-labs\Assemblies\LicentiaLabs.dll</HintPath>
 | 
			
		||||
        </Reference>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,9 +36,6 @@
 | 
			
		|||
        <PackageReference Include="UnlimitedHugs.Rimworld.HugsLib" Version="11.0.3" />
 | 
			
		||||
    </ItemGroup>
 | 
			
		||||
    <ItemGroup>
 | 
			
		||||
        <!--<Reference Include="Dyspareunia">
 | 
			
		||||
            <HintPath>..\..\..\dyspareunia\1.5\Assemblies\Dyspareunia.dll</HintPath>
 | 
			
		||||
        </Reference>-->
 | 
			
		||||
        <Reference Include="LicentiaLabs">
 | 
			
		||||
            <HintPath>..\..\..\licentia-labs\Assemblies\LicentiaLabs.dll</HintPath>
 | 
			
		||||
        </Reference>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,15 +1,12 @@
 | 
			
		|||
using System.Collections.Generic;
 | 
			
		||||
using Dyspareunia;
 | 
			
		||||
using RimWorld;
 | 
			
		||||
using rjw;
 | 
			
		||||
using Verse;
 | 
			
		||||
using DamageDefOf = Dyspareunia.DamageDefOf;
 | 
			
		||||
 | 
			
		||||
namespace RJW_PlasticSurgeries
 | 
			
		||||
{
 | 
			
		||||
    public abstract class Recipe_Plastic_Surgery : Recipe_Surgery
 | 
			
		||||
    {
 | 
			
		||||
        protected readonly bool HasDyspareunia = ModLister.HasActiveModWithName("Dyspareunia");
 | 
			
		||||
        protected readonly bool HasLicentia = ModLister.HasActiveModWithName("RimJobWorld - Licentia Labs");
 | 
			
		||||
 | 
			
		||||
        public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
 | 
			
		||||
| 
						 | 
				
			
			@ -37,17 +34,11 @@ namespace RJW_PlasticSurgeries
 | 
			
		|||
 | 
			
		||||
        protected abstract void SurgeryResult(Pawn pawn);
 | 
			
		||||
 | 
			
		||||
        private static void DamageHediff(Hediff hed)
 | 
			
		||||
        {
 | 
			
		||||
            PenetrationUtility.AddDamageHediff(DamageDefOf.SexStretch, 0.5f, hed, null);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        protected void SurgeryX(Pawn pawn, float severity, bool damagePart = false)
 | 
			
		||||
        {
 | 
			
		||||
            GetHediffs(pawn).ForEach(hed =>
 | 
			
		||||
            {
 | 
			
		||||
                hed.Severity = severity;
 | 
			
		||||
                if (damagePart && HasDyspareunia) DamageHediff(hed);
 | 
			
		||||
                if (damagePart && HasLicentia)
 | 
			
		||||
                {
 | 
			
		||||
                    var (type, damage) = GetLicentiaDamage();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@ tasks.register<com.ullink.Msbuild>("buildC#_1.5") {
 | 
			
		|||
 | 
			
		||||
tasks.register<Exec>("sign_1.3") {
 | 
			
		||||
    dependsOn("buildC#_1.3")
 | 
			
		||||
    workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.3/net48")
 | 
			
		||||
    workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.3/net472")
 | 
			
		||||
    executable = "H:\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\signtool.exe"
 | 
			
		||||
    args = listOf(
 | 
			
		||||
        "sign",
 | 
			
		||||
| 
						 | 
				
			
			@ -70,7 +70,7 @@ tasks.register<Exec>("sign_1.3") {
 | 
			
		|||
 | 
			
		||||
tasks.register<Exec>("sign_1.4") {
 | 
			
		||||
    dependsOn("buildC#_1.4")
 | 
			
		||||
    workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.4/net48")
 | 
			
		||||
    workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.4/net472")
 | 
			
		||||
    executable = "H:\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\signtool.exe"
 | 
			
		||||
    args = listOf(
 | 
			
		||||
        "sign",
 | 
			
		||||
| 
						 | 
				
			
			@ -88,7 +88,7 @@ tasks.register<Exec>("sign_1.4") {
 | 
			
		|||
 | 
			
		||||
tasks.register<Exec>("sign_1.5") {
 | 
			
		||||
    dependsOn("buildC#_1.5")
 | 
			
		||||
    workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.5/net48")
 | 
			
		||||
    workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.5/net472")
 | 
			
		||||
    executable = "H:\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\signtool.exe"
 | 
			
		||||
    args = listOf(
 | 
			
		||||
        "sign",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue