public IExosuitArm GetIExosuitArm(string fieldName) { if (string.IsNullOrEmpty(fieldName)) { return(null); } try { return((IExosuitArm)AccessTools .Field(_exosuit.GetType(), fieldName) .GetValue(_exosuit)); } catch (Exception ex) { Logger.Log("ExosuitArmsManager.GetIExosuitArm Exception: " + ex); return(null); } }
public static void Postfix(Exosuit __instance) { __instance.GetType().GetField("thrustConsumption", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue(__instance, QMultiModSettings.Instance.ExosuitThrustConsumption); }