コード例 #1
0
        static bool Prefix(Exosuit __instance, TechType techType)
        {
            if (techType != GrapplingArmUpgradeModule.TechType)
            {
                return(true);
            }

            __instance.MarkArmsDirty();
            return(false);
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 public static bool Prefix(Exosuit __instance, int slotID, TechType techType, bool added)
 {
     if (techType == RepulsionCannonArmPrefab.TechTypeID)
     {
         __instance.MarkArmsDirty();
         return(false);
     }
     else
     {
         return(true);
     }
 }
コード例 #4
0
 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();
 }