diff --git a/ModEntry.cs b/ModEntry.cs index e8434192..bf744b9f 100644 --- a/ModEntry.cs +++ b/ModEntry.cs @@ -1,5 +1,6 @@ using Harmony; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using StardewModdingAPI; using StardewModdingAPI.Events; using StardewValley; @@ -32,6 +33,21 @@ public override void Entry(IModHelper helper) helper.Content.AssetLoaders.Add(new CustomWeddingGuests(this)); + harmony.Patch( + original: AccessTools.Method(typeof(StardewValley.Menus.ShopMenu), nameof(StardewValley.Menus.ShopMenu.setUpShopOwner), new Type[] { typeof(string) }), + postfix: new HarmonyMethod(typeof(ModEntry), nameof(ModEntry.setUpShopOwner_Postfix)) + ); + + } + + public static void setUpShopOwner_Postfix(string who, ref StardewValley.Menus.ShopMenu __instance) + { + if ("Traveler".Equals(who)) + { + NPC suki = new NPC(); + suki.Portrait = Game1.content.Load("Portraits\\Suki"); + __instance.portraitPerson = suki; + } } private void OnDayStarted(object sender, DayStartedEventArgs e) diff --git a/StardewValleyExpanded/StardewValleyExpanded.dll b/StardewValleyExpanded/StardewValleyExpanded.dll index 14cb31bc..861997cd 100644 Binary files a/StardewValleyExpanded/StardewValleyExpanded.dll and b/StardewValleyExpanded/StardewValleyExpanded.dll differ diff --git a/StardewValleyExpanded/manifest.json b/StardewValleyExpanded/manifest.json old mode 100644 new mode 100755 index 7bec1368..757db213 --- a/StardewValleyExpanded/manifest.json +++ b/StardewValleyExpanded/manifest.json @@ -1,9 +1,9 @@ { - "Name": "Stardew Valley Expanded", + "Name": "Stardew Valley Expanded - Code", "Author": "FlashShifter, Swoo, and super-aardvark", "Description": "Adds coded elements to the game", - "Version": "1.10.8", + "Version": "1.11", "MinimumApiVersion": "3.0", "UpdateKeys": [ "Nexus:???" ], "UniqueID": "FlashShifter.SVECode",