internal static void Postfix(ref CrushDamage __instance)
        {
            var seamoth = __instance.GetComponentInParent <SeaMoth>();
            var exosuit = __instance.GetComponentInParent <Exosuit>();

            if (seamoth != null)
            {
                VehicleUpgrader.UpgradeSeaMoth(seamoth);
            }
            else if (exosuit != null)
            {
                VehicleUpgrader.UpgradeExosuit(exosuit);
            }
        }
Exemplo n.º 2
0
 internal static void Postfix(ref Exosuit __instance, TechType techType)
 {
     VehicleUpgrader.UpgradeExosuit(__instance, techType);
 }