From 9588010e98e20afe96afb4c907e6963a27c1487b Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 25 Jan 2023 07:56:14 +1100 Subject: [PATCH] more cleanup --- Source/DefOf/HediffDefOf.cs | 14 --------- Source/Hediffs/Infatuo.cs | 57 ---------------------------------- Source/LitterBiotech.cs | 3 -- Source/LitterBiotech.csproj | 2 -- Source/Settings/LBTSettings.cs | 3 -- 5 files changed, 79 deletions(-) delete mode 100644 Source/DefOf/HediffDefOf.cs delete mode 100644 Source/Hediffs/Infatuo.cs diff --git a/Source/DefOf/HediffDefOf.cs b/Source/DefOf/HediffDefOf.cs deleted file mode 100644 index b1c4dfb..0000000 --- a/Source/DefOf/HediffDefOf.cs +++ /dev/null @@ -1,14 +0,0 @@ -using RimWorld; -using Verse; - -namespace LitterBiotech -{ - [RimWorld.DefOf] - public static class HediffDefOf - { - // public static HediffDef Infatuo; - // public static HediffDef InfatuoCalibrating; - public static HediffDef OvaryAgitator; - public static HediffDef Bioscaffold; - } -} \ No newline at end of file diff --git a/Source/Hediffs/Infatuo.cs b/Source/Hediffs/Infatuo.cs deleted file mode 100644 index d2aa986..0000000 --- a/Source/Hediffs/Infatuo.cs +++ /dev/null @@ -1,57 +0,0 @@ -// FOR ANYONE (THAT ISN"T ME (BOEUF)) THAT CARES -// ===================== -// This is an idea for an implant that I had that basically forces a pawn to romantically obsess about another pawn, but I'm taking a break from working on it -// because I'm too smoothbrain to work out relation defs and making custom relations, and the multibirth stuff was taking up my time as is -// If you want to mess with it, this code is here for shits and gigs - modify it, throw it out, make something new, idgaf - -/*using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace LitterBiotech.Hediffs -{ - class Infatuo - { - public class PawnRelationWorker_InfatuoInfatuated : PawnRelationWorker - { - // BaseGenerationChanceFactor - should NEVER autogenerate on pawns (for now, anyway) - new public float BaseGenerationChanceFactor(Pawn generated, Pawn other, PawnGenerationRequest request) - { - return 0.0f; - } - - // CreateRelation - shouldn't be needed for now since we're not autogenerating infatuo relations, but may be used in future - public override void CreateRelation(Pawn generated, Pawn other, ref PawnGenerationRequest request) - { - return; - } - - // GenerationChance - should NEVER autogenerate on pawns (for now, anyway) - public override float GenerationChance(Pawn generated, Pawn other, PawnGenerationRequest request) - { - return 0.0f; - } - - public override bool InRelation(Pawn me, Pawn other) - { - return (me.health.hediffSet.GetFirstHediff().target == other); - } - } - - public class Hediff_Infatuo : Hediff - { - public Hediff_Infatuo(Pawn intTarget) - { - target = intTarget; - } - public Pawn target; - } - - public class Hediff_InfatuoCalibrating : Hediff - { - - } - } -}*/ diff --git a/Source/LitterBiotech.cs b/Source/LitterBiotech.cs index c127eed..ac9dbae 100644 --- a/Source/LitterBiotech.cs +++ b/Source/LitterBiotech.cs @@ -136,9 +136,6 @@ namespace LitterBiotech if (currentLaborState.birthTotal == currentLaborState.birthCount) { laborStateMap.Remove(__instance.pawn.ThingID); - if (__instance.pawn.health.hediffSet.HasHediff(HediffDef.Named("Bioscaffold"))) { - __instance.pawn.health.RemoveHediff(__instance.pawn.health.hediffSet.GetFirstHediffOfDef(LitterBiotech.HediffDefOf.Bioscaffold)); - } return; } diff --git a/Source/LitterBiotech.csproj b/Source/LitterBiotech.csproj index b8c97c2..3bac35b 100644 --- a/Source/LitterBiotech.csproj +++ b/Source/LitterBiotech.csproj @@ -52,8 +52,6 @@ - - diff --git a/Source/Settings/LBTSettings.cs b/Source/Settings/LBTSettings.cs index f6243b1..dab63e6 100644 --- a/Source/Settings/LBTSettings.cs +++ b/Source/Settings/LBTSettings.cs @@ -39,8 +39,6 @@ namespace LitterBiotech listingStandard.Begin(inRect); listingStandard.Gap(4f); listingStandard.CheckboxLabeled("EnableLBTDevLogging".Translate(), ref devMode, "EnableLBTDevLoggingDesc".Translate()); - listingStandard.Gap(4f); - listingStandard.CheckboxLabeled("RegretStealingLovinThoughtDisabled".Translate(), ref regretStealingLovinThoughtDisabled, "RegretStealingLovinThoughtDisabledDesc".Translate()); listingStandard.End(); } @@ -48,7 +46,6 @@ namespace LitterBiotech { base.ExposeData(); Scribe_Values.Look(ref devMode, "EnableLBTDevLogging", devMode, true); - Scribe_Values.Look(ref regretStealingLovinThoughtDisabled, "regretStealingLovinThoughtDisabled", regretStealingLovinThoughtDisabled, true); } } }