From 189c0fe69159f8b99aa9786f50f98ddae5dbe8c9 Mon Sep 17 00:00:00 2001 From: notfood Date: Thu, 30 Aug 2018 03:19:46 -0500 Subject: [PATCH] Mend: Add power toogle --- Assemblies/MendAndRecycle.dll | Bin 29184 -> 29696 bytes .../Keyed/mendandrecycle_Languages.xml | 2 ++ Source/MendAndRecycleMod.cs | 8 ++++++++ Source/ResourceBank.cs | 3 +++ Source/Settings.cs | 3 +++ 5 files changed, 16 insertions(+) diff --git a/Assemblies/MendAndRecycle.dll b/Assemblies/MendAndRecycle.dll index 5f2c26206b70b44a83dc77f1f5a15d241b959bb9..477ba10308edb60420b168efa7a3e8c700a29444 100755 GIT binary patch delta 13656 zcma)j33yf2wg1}toO|xM=MK5&Cb?5WNC?531TX=_gdt=A1*8Zf2sj`jXcV{@f=UCq zNt}vepLnR2Y88j4qSgtj#o<{TsI$;IrD`p&N=3z?eYDco;`^8do~cA!sJ$>soJKpe5Xt-vW8v+ zPANXioohu&XsU+hR(y1PRyvQ1<3yYD2Qef;*MfncsrX3pP{9t-7-!*7k}sQ>*dqS5%_yQ|Fo-Rn+!R=hs?8W;jNvD$!B}aJ1^iPCv+T z9+*!7jLtxg#4L=ImzDn3nF6;1aw`q4)mhCXL{=yK)<@U{M+}%TR-0gTF-!5&K9Iwz zp6sWN>1AAfjFZ&|Pw!;N>cf?y8lCE;hQPb6(ILiIE_YBn9dnSRU^8H)DTvx0$4^GQM0bE1h)%;(fiYwq8|0v z!6J3C%p1L}({gqhu?$nu~|vW(#h<1QOu=_xi|NN9)HIm=kIv-I{`hW zliBa0tUmfh19hX|LWXeBV%XzV6z2gJ8Qk=nUBy3@w8c&oKuP^5~p>wse-sTKsb{-Fd$;NIBu;-YFB4S8> zb~fXBt9yABjKaoP|2gPhH>SruUC$(9JTD6Tfauk5%$oXOCGVMmb-Y zMa3Kw;R!d~68ADcG-G&XYDwb*i(G`JKTfWHA`OYQ& z;>dg$unf5#D!NfI_{jQ`oZJ0H;>7Jw`EM4!l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y(|S;{TT~V-oXX6QUB`j% z84;<(PIt|rFDIC+=@Bq_kyc4g^)y;(37d(B?MaK9jPIFgBnX27mv?@e%3_KN&RV+q zqL$Sc{marN8 Requires Fuel Does the mending table need mending kits? (Needs restart) + Requires Power + Does the mending table require power? (Needs restart) Fail Chance for Item Quality (0% to 100%) Pre-Industial Colony Tech Level diff --git a/Source/MendAndRecycleMod.cs b/Source/MendAndRecycleMod.cs index 4ca777e..5136c8f 100644 --- a/Source/MendAndRecycleMod.cs +++ b/Source/MendAndRecycleMod.cs @@ -33,6 +33,10 @@ static void Inject() if (!Settings.requiresFuel) { RemoveFuel(); } + if (!Settings.requiresPower) + { + RemovePower(); + } SortApparelsInComplexity(); } @@ -41,6 +45,10 @@ static void RemoveFuel() { LocalDefOf.Recipe.MakeMendingKit.recipeUsers.Clear(); LocalDefOf.Thing.TableMending.comps.RemoveAll(p => p.GetType() == typeof(CompProperties_Refuelable)); } + static void RemovePower() + { + LocalDefOf.Thing.TableMending.comps.RemoveAll(p => p.GetType() == typeof(CompProperties_Power)); + } static void SortApparelsInComplexity() { // select and group ThingDefs by complexity diff --git a/Source/ResourceBank.cs b/Source/ResourceBank.cs index a284c6c..9518644 100644 --- a/Source/ResourceBank.cs +++ b/Source/ResourceBank.cs @@ -8,6 +8,9 @@ public static class ResourceBank public static readonly string RequiresFuel = "mendrecycle.RequiresFuel".Translate(); public static readonly string RequiresFuelTooltip = "mendrecycle.RequiresFuelTooltip".Translate(); + public static readonly string RequiresPower = "mendrecycle.RequiresPower".Translate(); + public static readonly string RequiresPowerTooltip = "mendrecycle.RequiresPowerTooltip".Translate(); + public static readonly string FailChances = "mendrecycle.FailChances".Translate(); public static readonly string PreIndustrial = "mendrecycle.PreIndustrial".Translate(); public static readonly string PostIndustrial = "mendrecycle.PostIndustrial".Translate(); diff --git a/Source/Settings.cs b/Source/Settings.cs index b1d9cd4..479bca6 100644 --- a/Source/Settings.cs +++ b/Source/Settings.cs @@ -11,6 +11,7 @@ public class Settings : ModSettings static readonly int[] DEFAULT_POST_INDUSTRIAL_FAIL_CHANCE; public static bool requiresFuel; + public static bool requiresPower; static Settings() { @@ -53,6 +54,7 @@ public override void ExposeData() base.ExposeData(); Scribe_Values.Look(ref requiresFuel, "mendrecycle.fuel", true, true); + Scribe_Values.Look(ref requiresPower, "mendrecycle.power", true, true); Scribe_Deep.Look(ref TechLevelRangeUtil.PreIndustrial, "mendrecycle.PreIndustrial"); Scribe_Deep.Look(ref TechLevelRangeUtil.PostIndustrial, "mendrecycle.PostIndustrial"); @@ -80,6 +82,7 @@ public static void DoSettingsWindowContents(Rect rect) l.Begin(rect); l.CheckboxLabeled(ResourceBank.RequiresFuel, ref requiresFuel, ResourceBank.RequiresFuelTooltip); + l.CheckboxLabeled(ResourceBank.RequiresPower, ref requiresPower, ResourceBank.RequiresPowerTooltip); l.Gap(6); l.Label(ResourceBank.FailChances);