static bool Prefix(Exosuit __instance, TechType techType) { if (techType != GrapplingArmUpgradeModule.TechType) { return(true); } __instance.MarkArmsDirty(); return(false); }
public static bool Prefix(Exosuit __instance, int slotID, TechType techType, bool added) { if (Main.graphics.ModdedArmPrefabs.ContainsKey(techType)) { __instance.MarkArmsDirty(); return(false); } else { return(true); } }
public static bool Prefix(Exosuit __instance, int slotID, TechType techType, bool added) { if (techType == RepulsionCannonArmPrefab.TechTypeID) { __instance.MarkArmsDirty(); return(false); } else { return(true); } }
public void MarkArmsForUpdate() { // Update GUI QuickSlots, it's not the cleanest way. But I couldn't find an alternative. uGUI_QuickSlots_HarmonyPatch.QuickSlotsUpdateTarget = _exosuit; _exosuit.MarkArmsDirty(); }