public override void Entry(IModHelper helper)
        {
            //initializes mod features and reads config
            ModFeature.Init(this);

            Helper.Events.GameLoop.GameLaunched += GameLoop_GameLaunched;

            //TODO:
            //ReturnMuseumRewardsFeature.Enable();

            //if (config.ToolsFeature)
            //     DontUseToolsFeature.Enable();

            Monitor.Log("Configuration:", LogLevel.Trace);
            Monitor.Log($"config.EatingFeature: {config.EatingFeature}", LogLevel.Trace);
            Monitor.Log($"config.AdventurersGuildShopFeature: {config.AdventurersGuildShopFeature}", LogLevel.Trace);
            Monitor.Log($"config.CarpenterMenuFeature: {config.CarpenterMenuFeature}", LogLevel.Trace);
            Monitor.Log($"config.SellableItemsFeature: {config.SellableItemsFeature}", LogLevel.Trace);
            //Monitor.Log($"config.SlingshotFeature: {config.SlingshotFeature}", LogLevel.Trace);
            //Monitor.Log($"config.FishingRodFeature: {config.FishingRodFeature}", LogLevel.Trace);

            /*
             * Helper.ConsoleCommands.Add("player_inventory", "",(string arg1, string[] arg2) => {
             *  Monitor.Log("Player inventory:", LogLevel.Info);
             *  foreach (StardewValley.Item item in StardewValley.Game1.player.Items)
             *      Monitor.Log("Item is type " + item?.GetType().ToString(), LogLevel.Info);
             * });
             * Helper.ConsoleCommands.Add("reset_marnie", "", (string arg1, string[] arg2) => {
             *  MarniesItemShopFeature.ResetItems(new StardewValley.Menus.ShopMenu(StardewValley.Utility.getAnimalShopStock()));
             * });
             */

            //Helper.ConsoleCommands.Add("carpenter_menu", "", (arg1, arg2) => Game1.activeClickableMenu = new StardewValley.Menus.CarpenterMenu());
        }
示例#2
0
        public override void Entry(IModHelper helper)
        {
            //initializes mod features and reads config
            ModFeature.Init(this);

            if (config.EatingFeature || false /*config.WeaponBlockingFeature*/)
            {
                EatingBlockingFeature.Enable();
            }
            if (config.AdventurersGuildShopFeature || config.SellableItemsFeature)
            {
                AdventurersGuildFeature.Enable();
            }
            if (config.CarpenterMenuFeature)
            {
                CarpenterMenuFeature.Enable();
            }
            if (config.SellableItemsFeature)
            {
                FishingRodFeature.Enable();
            }
            if (config.SellableItemsFeature)
            {
                MarniesItemShopFeature.Enable();
            }

            //if (config.ToolsFeature)
            //     DontUseToolsFeature.Enable();

            Monitor.Log("Configuration:", LogLevel.Trace);
            Monitor.Log($"config.EatingFeature: {config.EatingFeature}", LogLevel.Trace);
            Monitor.Log($"config.AdventurersGuildShopFeature: {config.AdventurersGuildShopFeature}", LogLevel.Trace);
            Monitor.Log($"config.CarpenterMenuFeature: {config.CarpenterMenuFeature}", LogLevel.Trace);
            Monitor.Log($"config.SellableItemsFeature: {config.SellableItemsFeature}", LogLevel.Trace);
            //Monitor.Log($"config.SlingshotFeature: {config.SlingshotFeature}", LogLevel.Trace);
            //Monitor.Log($"config.FishingRodFeature: {config.FishingRodFeature}", LogLevel.Trace);

            /*
             * Helper.ConsoleCommands.Add("player_inventory", "",(string arg1, string[] arg2) => {
             *  Monitor.Log("Player inventory:", LogLevel.Info);
             *  foreach (StardewValley.Item item in StardewValley.Game1.player.Items)
             *      Monitor.Log("Item is type " + item?.GetType().ToString(), LogLevel.Info);
             * });
             * Helper.ConsoleCommands.Add("reset_marnie", "", (string arg1, string[] arg2) => {
             *  MarniesItemShopFeature.ResetItems(new StardewValley.Menus.ShopMenu(StardewValley.Utility.getAnimalShopStock()));
             * });
             */
        }
示例#3
0
        public override void Entry(IModHelper helper)
        {
            //initializes mod features and reads config
            ModFeature.Init(this);

            if (config.EatingFeature || false /*config.WeaponBlockingFeature*/)
            {
                EatingBlockingFeature.Enable();
            }
            if (config.AdventurersGuildShopFeature || config.SellableItemsFeature)
            {
                AdventurersGuildFeature.Enable();
            }
            if (config.CarpenterMenuFeature)
            {
                CarpenterMenuFeature.Enable();
            }
            if (config.SellableItemsFeature)
            {
                FishingRodFeature.Enable();
            }
            if (config.SellableItemsFeature)
            {
                MarniesItemShopFeature.Enable();
            }

            //if (config.ToolsFeature)
            //     DontUseToolsFeature.Enable();

            Monitor.Log("Configuration:", LogLevel.Trace);
            Monitor.Log($"config.EatingFeature: {config.EatingFeature}", LogLevel.Trace);
            Monitor.Log($"config.AdventurersGuildShopFeature: {config.AdventurersGuildShopFeature}", LogLevel.Trace);
            Monitor.Log($"config.CarpenterMenuFeature: {config.CarpenterMenuFeature}", LogLevel.Trace);
            Monitor.Log($"config.SellableItemsFeature: {config.SellableItemsFeature}", LogLevel.Trace);
            //Monitor.Log($"config.SlingshotFeature: {config.SlingshotFeature}", LogLevel.Trace);
            //Monitor.Log($"config.FishingRodFeature: {config.FishingRodFeature}", LogLevel.Trace);
        }
示例#4
0
        public override void Entry(IModHelper helper)
        {
            //initializes mod features and reads config
            ModFeature.Init(this);

            if (config.EatingFeature || false /*config.WeaponBlockingFeature*/)
            {
                EatingBlockingFeature.Enable();
            }
            if (config.AdventurersGuildShopFeature || config.SlingshotFeature)
            {
                AdventurersGuildFeature.Enable();
            }
            if (config.CarpenterMenuFeature)
            {
                CarpenterMenuFeature.Enable();
            }
            if (config.FishingRodFeature)
            {
                FishingRodFeature.Enable();
            }
            //if (config.ToolsFeature)
            //     DontUseToolsFeature.Enable();

            Monitor.Log("Configuration:", LogLevel.Trace);
            Monitor.Log($"config.EatingFeature: {config.EatingFeature}", LogLevel.Trace);
            Monitor.Log($"config.AdventurersGuildShopFeature: {config.AdventurersGuildShopFeature}", LogLevel.Trace);
            Monitor.Log($"config.CarpenterMenuFeature: {config.CarpenterMenuFeature}", LogLevel.Trace);
            Monitor.Log($"config.SlingshotFeature: {config.SlingshotFeature}", LogLevel.Trace);
            Monitor.Log($"config.FishingRodFeature: {config.FishingRodFeature}", LogLevel.Trace);

            Helper.ConsoleCommands.Add("carp", "", (string arg1, string[] arg2) =>
            {
                StardewValley.Game1.activeClickableMenu = new StardewValley.Menus.CarpenterMenu();
            });
        }