Beispiel #1
0
        internal static void Prefix(Exosuit __instance)
        {
            if (Main.ExosuitCtorPatched)
            {
                BZLogger.Debug("Exosuit constructor already patched. Exit method.");
                return;
            }

            __instance.SetPrivateField("_slotIDs", SlotHelper.SessionExosuitSlotIDs, BindingFlags.Static);

            BZLogger.Debug($"Exosuit constructor patched. ID: {__instance.GetInstanceID()}");

            Main.ExosuitCtorPatched = true;
        }