Beispiel #1
0
            static void Postfix(LibraryScriptableObject __instance)
            {
                var self = __instance;

                if (Main.library != null)
                {
                    return;
                }
                Main.library = self;
                try
                {
                    Main.DebugLog("Loading Derring-Do");
                    if (settings.thrown_weapons_and_flying_blade)
                    {
                        Main.DebugLog("Adding Thrown Daggers and Starknives");
                        ThrowAnything.create();
                    }
                    Swashbuckler.createSwashbucklerClass(settings.thrown_weapons_and_flying_blade);
                }
                catch (Exception ex)
                {
                    Main.DebugError(ex);
                }
            }