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(); } //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())); * }); */ }
void GameLoop_GameLaunched(object sender, GameLaunchedEventArgs e) { 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(); } }
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); }