diff --git a/PulsarModLoader/Content/Components/Extractor/ExtractorMod.cs b/PulsarModLoader/Content/Components/Extractor/ExtractorMod.cs index 04a679b..f7ce287 100644 --- a/PulsarModLoader/Content/Components/Extractor/ExtractorMod.cs +++ b/PulsarModLoader/Content/Components/Extractor/ExtractorMod.cs @@ -17,7 +17,7 @@ public override string GetStatLineLeft(PLShipComponent InComp) public override string GetStatLineRight(PLShipComponent InComp) { PLExtractor me = InComp as PLExtractor; - return ((float)me.GetType().GetField("m_Stability", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(me) * 10f).ToString("0"); + return ((float)me.m_Stability * 10f).ToString("0"); } } } diff --git a/PulsarModLoader/Content/Components/FBRecipeModule/FBRecipeModuleModManager.cs b/PulsarModLoader/Content/Components/FBRecipeModule/FBRecipeModuleModManager.cs index ed49e27..59fdae6 100644 --- a/PulsarModLoader/Content/Components/FBRecipeModule/FBRecipeModuleModManager.cs +++ b/PulsarModLoader/Content/Components/FBRecipeModule/FBRecipeModuleModManager.cs @@ -207,7 +207,7 @@ static IEnumerable Transpiler(IEnumerable inst } static int[] PatchMethod(PLFluffyOven instance) { - PLFBRecipeModule module = (PLFBRecipeModule)instance.GetType().GetField("CurrentProducingModule", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(instance); + PLFBRecipeModule module = instance.CurrentProducingModule; if (module.GetBiscuitTypeToProduce() == EFoodType.MAX) { int subtypeformodded = module.SubType - FBRecipeModuleModManager.Instance.VanillaFBRecipeModuleMaxType; diff --git a/PulsarModLoader/Content/Components/Reactors/ReactorMod.cs b/PulsarModLoader/Content/Components/Reactors/ReactorMod.cs index 9cdc89f..86bd715 100644 --- a/PulsarModLoader/Content/Components/Reactors/ReactorMod.cs +++ b/PulsarModLoader/Content/Components/Reactors/ReactorMod.cs @@ -55,7 +55,7 @@ public override string GetStatLineRight(PLShipComponent InComp) " kP\n", me.EmergencyCooldownTime.ToString("0.0"), " sec\n", - ((float)me.GetType().GetField("OriginalEnergyOutputMax", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(me) * me.LevelMultiplier(0.1f, 1f)).ToString("0"), + ((float)me.OriginalEnergyOutputMax * me.LevelMultiplier(0.1f, 1f)).ToString("0"), " MW" }); } diff --git a/PulsarModLoader/Content/Components/Thruster/ThrusterMod.cs b/PulsarModLoader/Content/Components/Thruster/ThrusterMod.cs index 8f51d9c..f440b76 100644 --- a/PulsarModLoader/Content/Components/Thruster/ThrusterMod.cs +++ b/PulsarModLoader/Content/Components/Thruster/ThrusterMod.cs @@ -28,7 +28,7 @@ public override string GetStatLineLeft(PLShipComponent InComp) public override string GetStatLineRight(PLShipComponent InComp) { PLThruster me = InComp as PLThruster; - return ((float)me.GetType().GetField("MaxOutput", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(me) * me.LevelMultiplier(0.18f, 1f) * 100f).ToString("0") + "\n"; + return ((float)me.m_MaxOutput * me.LevelMultiplier(0.18f, 1f) * 100f).ToString("0") + "\n"; } } } diff --git a/PulsarModLoader/Content/Components/ThrusterInertia/InertiaThrusterMod.cs b/PulsarModLoader/Content/Components/ThrusterInertia/InertiaThrusterMod.cs index c926946..dc2f9ff 100644 --- a/PulsarModLoader/Content/Components/ThrusterInertia/InertiaThrusterMod.cs +++ b/PulsarModLoader/Content/Components/ThrusterInertia/InertiaThrusterMod.cs @@ -27,7 +27,7 @@ public override string GetStatLineLeft(PLShipComponent InComp) public override string GetStatLineRight(PLShipComponent InComp) { PLInertiaThruster me = InComp as PLInertiaThruster; - return ((float)me.GetType().GetField("MaxOutput", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(me) * me.LevelMultiplier(0.18f, 1f) * 100f).ToString("0") + "\n"; + return ((float)me.m_MaxOutput * me.LevelMultiplier(0.18f, 1f) * 100f).ToString("0") + "\n"; } } } diff --git a/PulsarModLoader/Content/Components/ThrusterManeuver/ManeuverThrusterMod.cs b/PulsarModLoader/Content/Components/ThrusterManeuver/ManeuverThrusterMod.cs index 0873236..7f35baa 100644 --- a/PulsarModLoader/Content/Components/ThrusterManeuver/ManeuverThrusterMod.cs +++ b/PulsarModLoader/Content/Components/ThrusterManeuver/ManeuverThrusterMod.cs @@ -28,7 +28,7 @@ public override string GetStatLineLeft(PLShipComponent InComp) public override string GetStatLineRight(PLShipComponent InComp) { PLManeuverThruster me = InComp as PLManeuverThruster; - return ((float)me.GetType().GetField("MaxOutput", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(me) * me.LevelMultiplier(0.18f, 1f) * 100f).ToString("0") + "\n"; + return ((float)me.m_MaxOutput * me.LevelMultiplier(0.18f, 1f) * 100f).ToString("0") + "\n"; } } } diff --git a/lib/Assembly-CSharp.dll b/lib/Assembly-CSharp.dll index aa90fde..dcd2b0b 100644 Binary files a/lib/Assembly-CSharp.dll and b/lib/Assembly-CSharp.dll differ