Example #1
0
        internal void Awake()
        {
            ToolboxSilverCostFromStore  = Config.Bind("Settings", "Silver cost from stores", 300, "The cost of the Toolbox from Blacksmith stores. (Requires restart to take effect)");
            ToolboxScrapCostPerUse      = Config.Bind("Settings", "Scrap cost per use", 5, "How many iron scrap are consumed per use of the toolbox.");
            ToolboxDurabilityCostPerUse = Config.Bind("Settings", "Durability cost per use", 5.0f, "Durability of the toolbox consumed per use.");

            SL.OnPacksLoaded += OnPacksLoadedSetup;

            var table = new SL_DropTable
            {
                UID             = DROPTABLE_UID,
                GuaranteedDrops = new List <SL_ItemDrop>
                {
                    new SL_ItemDrop {
                        DroppedItemID = TOOLBOX_ID
                    }
                }
            };

            table.ApplyTemplate();

            var source = new SL_DropTableAddition
            {
                SelectorTargets = new List <string>
                {
                    "3Rx_R0XDLUmYaNWm66SVCQ",            // Default blacksmiths
                    "Zdg-qTDRa0-qOzzNSbtvzg",            // Howard Brock
                    "EYhBqM653UGhDd5kcdMFXg",            // Master-Smith Tokuga (2)
                    "QyJwLKySB0epxpEG3EBICQ_3-Finished", // Sal-Dumas
                },
                DropTableUIDsToAdd = new List <string>
                {
                    DROPTABLE_UID
                },
            };

            source.ApplyTemplate();
        }
        internal void Awake()
        {
            LoadSettings();

            SL.OnPacksLoaded += OnPacksLoadedSetup;

            var table = new SL_DropTable
            {
                UID             = DROPTABLE_UID,
                GuaranteedDrops = new List <SL_ItemDrop>
                {
                    new SL_ItemDrop {
                        DroppedItemID = TOOLBOX_ID
                    }
                }
            };

            table.ApplyTemplate();

            var source = new SL_DropTableAddition
            {
                SelectorTargets = new List <string>
                {
                    "3Rx_R0XDLUmYaNWm66SVCQ",            // Default blacksmiths
                    "Zdg-qTDRa0-qOzzNSbtvzg",            // Howard Brock
                    "EYhBqM653UGhDd5kcdMFXg",            // Master-Smith Tokuga (2)
                    "QyJwLKySB0epxpEG3EBICQ_3-Finished", // Sal-Dumas
                },
                DropTableUIDsToAdd = new List <string>
                {
                    DROPTABLE_UID
                },
            };

            source.ApplyTemplate();
        }