public static void Postfix(MechDef ___selectedMech, TextMeshProUGUI ___jumpjetHardpointText) { _harmonyManager.LogExceptions(() => { if (!(___selectedMech is null)) { (int currentJumpJets, int allowedJumpJets) = ___selectedMech.EquipedJumpjets(); ___jumpjetHardpointText.SetText("{0}/{1}", currentJumpJets, allowedJumpJets); } }); }
private static int AllowedJumpJets(this MechDef mechDef) { (int currentJumpJets, int allowedJumpJets) = mechDef.EquipedJumpjets(); return(allowedJumpJets); }