From 89a7d410df1cd7060623618318501386053050d0 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Sat, 15 Apr 2023 07:59:00 -0700 Subject: [PATCH] Cut down on the savefile size by not writing default values --- .../RJW_Menstruation/Configurations.cs | 84 +++++++++---------- .../RJW_Menstruation/RJW_Menstruation/Cum.cs | 10 +-- .../HediffComps/HediffComp_Menstruation.cs | 6 +- .../RJW_Menstruation/Things.cs | 10 +-- 4 files changed, 55 insertions(+), 55 deletions(-) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs index 25d8ce1..41b3732 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs @@ -189,51 +189,51 @@ namespace RJW_Menstruation public override void ExposeData() { - Scribe_Values.Look(ref ImplantationChanceAdjust, "ImplantationChanceAdjust", ImplantationChanceAdjust, true); - Scribe_Values.Look(ref ImplantationChance, "ImplantationChance", ImplantationChance, true); - Scribe_Values.Look(ref FertilizeChanceAdjust, "FertilizeChanceAdjust", FertilizeChanceAdjust, true); - Scribe_Values.Look(ref FertilizeChance, "FertilizeChance", FertilizeChance, true); - Scribe_Values.Look(ref CumDecayRatioAdjust, "CumDecayRatioAdjust", CumDecayRatioAdjust, true); - Scribe_Values.Look(ref CumDecayRatio, "CumDecayRatio", CumDecayRatio, true); - Scribe_Values.Look(ref CumFertilityDecayRatioAdjust, "CumFertilityDecayRatioAdjust", CumFertilityDecayRatioAdjust, true); - Scribe_Values.Look(ref CumFertilityDecayRatio, "CumFertilityDecayRatio", CumFertilityDecayRatio, true); - Scribe_Values.Look(ref CycleAcceleration, "CycleAcceleration", CycleAcceleration, true); - Scribe_Values.Look(ref ColonistTickInterval, "ColonistTickInterval", ColonistTickInterval, true); - Scribe_Values.Look(ref NonColonistTickInterval, "NonColonistTickInterval", NonColonistTickInterval, true); - Scribe_Values.Look(ref AnimalTickInterval, "AnimalTickInterval", AnimalTickInterval, true); - Scribe_Values.Look(ref EnableWombIcon, "EnableWombIcon", EnableWombIcon, true); - Scribe_Values.Look(ref EnableDraftedIcon, "EnableDraftedIcon", EnableDraftedIcon, true); - Scribe_Values.Look(ref EnableAnimalCycle, "EnableAnimalCycle", EnableAnimalCycle, true); - Scribe_Values.Look(ref DrawWombStatus, "DrawWombStatus", DrawWombStatus, true); - Scribe_Values.Look(ref DrawVaginaStatus, "DrawVaginaStatus", DrawVaginaStatus, true); - Scribe_Values.Look(ref DrawEggOverlay, "DrawEggOvray", DrawEggOverlay, true); - Scribe_Values.Look(ref Debug, "Debug", Debug, true); - Scribe_Values.Look(ref infoDetail, "InfoDetail", infoDetail, true); - Scribe_Values.Look(ref EnableMenopause, "EnableMenopause", EnableMenopause, true); - Scribe_Values.Look(ref EstrusOverridesHookupSettings, "EstrusOverridesHookupSettings", EstrusOverridesHookupSettings, true); + Scribe_Values.Look(ref ImplantationChanceAdjust, "ImplantationChanceAdjust", ImplantationChanceAdjustDefault); + Scribe_Values.Look(ref ImplantationChance, "ImplantationChance", ImplantationChanceDefault); + Scribe_Values.Look(ref FertilizeChanceAdjust, "FertilizeChanceAdjust", FertilizeChanceAdjustDefault); + Scribe_Values.Look(ref FertilizeChance, "FertilizeChance", FertilizeChanceDefault); + Scribe_Values.Look(ref CumDecayRatioAdjust, "CumDecayRatioAdjust", CumDecayRatioAdjustDefault); + Scribe_Values.Look(ref CumDecayRatio, "CumDecayRatio", CumDecayRatioDefault); + Scribe_Values.Look(ref CumFertilityDecayRatioAdjust, "CumFertilityDecayRatioAdjust", CumFertilityDecayRatioAdjustDefault); + Scribe_Values.Look(ref CumFertilityDecayRatio, "CumFertilityDecayRatio", CumFertilityDecayRatioDefault); + Scribe_Values.Look(ref CycleAcceleration, "CycleAcceleration", CycleAccelerationDefault); + Scribe_Values.Look(ref ColonistTickInterval, "ColonistTickInterval", ColonistTickIntervalDefault); + Scribe_Values.Look(ref NonColonistTickInterval, "NonColonistTickInterval", NonColonistTickIntervalDefault); + Scribe_Values.Look(ref AnimalTickInterval, "AnimalTickInterval", AnimalTickIntervalDefault); + Scribe_Values.Look(ref EnableWombIcon, "EnableWombIcon", true); + Scribe_Values.Look(ref EnableDraftedIcon, "EnableDraftedIcon", true); + Scribe_Values.Look(ref EnableAnimalCycle, "EnableAnimalCycle", false); + Scribe_Values.Look(ref DrawWombStatus, "DrawWombStatus", true); + Scribe_Values.Look(ref DrawVaginaStatus, "DrawVaginaStatus", true); + Scribe_Values.Look(ref DrawEggOverlay, "DrawEggOvray", true); + Scribe_Values.Look(ref Debug, "Debug", false); + Scribe_Values.Look(ref infoDetail, "InfoDetail", DetailLevel.All); + Scribe_Values.Look(ref EnableMenopause, "EnableMenopause", true); + Scribe_Values.Look(ref EstrusOverridesHookupSettings, "EstrusOverridesHookupSettings", false); Scribe_Values.Look(ref EstrusFuckabilityToHookup, "EstrusFuckabilityToHookup", EstrusFuckabilityToHookup, true); Scribe_Values.Look(ref EstrusAttractivenessToHookup, "EstrusAttractivenessToHookup", EstrusAttractivenessToHookup, true); Scribe_Values.Look(ref EstrusRelationshipToHookup, "EstrusRelationshipToHookup", EstrusRelationshipToHookup, true); - Scribe_Values.Look(ref PregnancySource, "PregnancySource", PregnancySource, true); - Scribe_Values.Look(ref EnableBiotechTwins, "EnableBiotechTwins", EnableBiotechTwins, true); - Scribe_Values.Look(ref EnableHeteroOvularTwins, "EnableHeteroOvularTwins", EnableHeteroOvularTwins, true); - Scribe_Values.Look(ref EnableEnzygoticTwins, "EnableEnzygoticTwins", EnableEnzygoticTwins, true); - Scribe_Values.Look(ref EnzygoticTwinsChance, "EnzygoticTwinsChance", EnzygoticTwinsChance, true); - Scribe_Values.Look(ref EnzygoticTwinsChanceAdjust, "EnzygoticTwinsChanceAdjust", EnzygoticTwinsChanceAdjust, true); - Scribe_Values.Look(ref MaxEnzygoticTwins, "MaxEnzygoticTwins", MaxEnzygoticTwins, true); - Scribe_Values.Look(ref BleedingAmount, "BleedingAmount", BleedingAmount, true); - Scribe_Values.Look(ref EnableButtonInHT, "EnableButtonInHT", EnableButtonInHT, true); - Scribe_Values.Look(ref EnableGatherCumGizmo, "EnableGatherCumGizmo", true, true); - Scribe_Values.Look(ref ShowFlag, "ShowFlag", ShowFlag, true); - Scribe_Values.Look(ref UseHybridExtention, "UseHybridExtention", UseHybridExtention, true); - Scribe_Values.Look(ref MotherFirst, "MotherFirst", MotherFirst, true); - Scribe_Values.Look(ref MaxBreastIncrementFactor, "MaxBreastIncrementFactor", MaxBreastIncrementFactor, true); - Scribe_Values.Look(ref MaxNippleIncrementFactor, "MaxNippleIncrementFactor", MaxNippleIncrementFactor, true); - Scribe_Values.Look(ref PermanentNippleChange, "PermanentNippleChange", PermanentNippleChange, true); - Scribe_Values.Look(ref AllowShrinkIcon, "AllowShrinkIcon", AllowShrinkIcon, true); - Scribe_Values.Look(ref EggLifespanMultiplier, "EggLifespanMultiplier", EggLifespanMultiplier, true); - Scribe_Values.Look(ref EnableBirthVaginaMorph, "EnableBirthVaginaMorph", EnableBirthVaginaMorph, true); - Scribe_Values.Look(ref VaginaMorphPower, "VaginaMorphPower", VaginaMorphPower, true); + Scribe_Values.Look(ref PregnancySource, "PregnancySource", PregnancyType.MultiplePregnancy); + Scribe_Values.Look(ref EnableBiotechTwins, "EnableBiotechTwins", false); + Scribe_Values.Look(ref EnableHeteroOvularTwins, "EnableHeteroOvularTwins", true); + Scribe_Values.Look(ref EnableEnzygoticTwins, "EnableEnzygoticTwins", true); + Scribe_Values.Look(ref EnzygoticTwinsChance, "EnzygoticTwinsChance", EnzygoticTwinsChanceDefault); + Scribe_Values.Look(ref EnzygoticTwinsChanceAdjust, "EnzygoticTwinsChanceAdjust", EnzygoticTwinsChanceAdjustDefault); + Scribe_Values.Look(ref MaxEnzygoticTwins, "MaxEnzygoticTwins", MaxEnzygoticTwinsDefault); + Scribe_Values.Look(ref BleedingAmount, "BleedingAmount", BleedingAmountDefault); + Scribe_Values.Look(ref EnableButtonInHT, "EnableButtonInHT", false); + Scribe_Values.Look(ref EnableGatherCumGizmo, "EnableGatherCumGizmo", true); + Scribe_Values.Look(ref ShowFlag, "ShowFlag", PawnFlags.Colonist | PawnFlags.Prisoner); + Scribe_Values.Look(ref UseHybridExtention, "UseHybridExtention", true); + Scribe_Values.Look(ref MotherFirst, "MotherFirst", false); + Scribe_Values.Look(ref MaxBreastIncrementFactor, "MaxBreastIncrementFactor", MaxBreastIncrementFactorDefault); + Scribe_Values.Look(ref MaxNippleIncrementFactor, "MaxNippleIncrementFactor", MaxNippleIncrementFactorDefault); + Scribe_Values.Look(ref PermanentNippleChange, "PermanentNippleChange", PermanentNippleChangeDefault); + Scribe_Values.Look(ref AllowShrinkIcon, "AllowShrinkIcon", false); + Scribe_Values.Look(ref EggLifespanMultiplier, "EggLifespanMultiplier", EggLifespanMultiplierDefault); + Scribe_Values.Look(ref EnableBirthVaginaMorph, "EnableBirthVaginaMorph", false); + Scribe_Values.Look(ref VaginaMorphPower, "VaginaMorphPower", VaginaMorphPowerDefault); Scribe_Collections.Look(ref HybridOverride, saveDestroyedThings: true, label: "HybridOverride", lookMode: LookMode.Deep, ctorArgs: new object[0]); base.ExposeData(); } diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Cum.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Cum.cs index d7a424c..3a2eb34 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Cum.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Cum.cs @@ -165,11 +165,11 @@ namespace RJW_Menstruation Scribe_References.Look(ref pawn, "pawn", true); Scribe_Values.Look(ref volume, "volume", volume, true); Scribe_Values.Look(ref fertility, "fertility", fertility, true); - Scribe_Values.Look(ref notcumthickness, "notcumthickness", notcumthickness, true); - Scribe_Values.Look(ref notcum, "notcum", notcum, true); - Scribe_Values.Look(ref notcumLabel, "notcumLabel", notcumLabel, true); - Scribe_Values.Look(ref useCustomColor, "useCustomColor", useCustomColor, true); - Scribe_Values.Look(ref customColor, "customColor", customColor, true); + Scribe_Values.Look(ref notcumthickness, "notcumthickness", 0); + Scribe_Values.Look(ref notcum, "notcum", false); + Scribe_Values.Look(ref notcumLabel, "notcumLabel", ""); + Scribe_Values.Look(ref useCustomColor, "useCustomColor", false); + Scribe_Values.Look(ref customColor, "customColor", default); Scribe_Defs.Look(ref filthDef, "filthDef"); } diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index f1a5356..03c6ef7 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -642,10 +642,10 @@ namespace RJW_Menstruation Scribe_Values.Look(ref currentIntervalTicks, "currentIntervalTicks", currentIntervalTicks, true); Scribe_Values.Look(ref crampPain, "crampPain", crampPain, true); Scribe_Values.Look(ref ovarypower, "ovarypower", ovarypower, true); - Scribe_Values.Look(ref eggstack, "eggstack", eggstack, true); - Scribe_Values.Look(ref estrusflag, "estrusflag", estrusflag, true); + Scribe_Values.Look(ref eggstack, "eggstack", 0); + Scribe_Values.Look(ref estrusflag, "estrusflag", false); Scribe_Values.Look(ref originvagsize, "originvagsize", originvagsize, true); - Scribe_Values.Look(ref DoCleanWomb, "DoCleanWomb", false, false); + Scribe_Values.Look(ref DoCleanWomb, "DoCleanWomb", false); Scribe_References.Look(ref pregnancy, "pregnancy"); } diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Things.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Things.cs index e240bd0..5e4dd91 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Things.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Things.cs @@ -225,10 +225,10 @@ namespace RJW_Menstruation Scribe_Values.Look(ref wearhours, "wearhours", wearhours, true); if (wearhours >= 0) wearTicks = wearhours * GenDate.TicksPerHour; } - Scribe_Values.Look(ref absorbedfluids, "absorbedfluids", absorbedfluids, true); - Scribe_Values.Look(ref dirty, "dirty", dirty, true); - Scribe_Values.Look(ref wearTicks, "wearTicks", wearTicks, true); - Scribe_Values.Look(ref fluidColor, "fluidColor", fluidColor, true); + Scribe_Values.Look(ref absorbedfluids, "absorbedfluids", 0); + Scribe_Values.Look(ref dirty, "dirty", false); + Scribe_Values.Look(ref wearTicks, "wearTicks", 0); + Scribe_Values.Look(ref fluidColor, "fluidColor", Color.white); } } @@ -256,7 +256,7 @@ namespace RJW_Menstruation public override void ExposeData() { base.ExposeData(); - Scribe_Values.Look(ref color, "color", color, true); + Scribe_Values.Look(ref color, "color", Color.white); } public override Color DrawColor