Exemple #1
0
        public static void Patch()
        {
            AerogelFins._SMLPatchHelper();

            var harmony = HarmonyInstance.Create("io.github.brokenmotor.betterfins");

            harmony.PatchAll(Assembly.GetExecutingAssembly());
        }
        public static void Postfix(UnderwaterMotor __instance)
        {
            TechType techTypeInFootSlot = Inventory.main.equipment.GetTechTypeInSlot("Foots");

            if (techTypeInFootSlot == TechType.Fins)
            {
                __instance.rb.velocity *= _.Patch_FinsMultiplier;
            }
            else if (techTypeInFootSlot == TechType.UltraGlideFins)
            {
                __instance.rb.velocity *= _.Patch_UltraGlideFinsMultiplier;
            }
            else if (techTypeInFootSlot == AerogelFins._GetTechType())
            {
                __instance.rb.velocity *= _.Patch_AerogelFinsMultiplier;
            }
        }