Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ModEntry.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Harmony;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using StardewModdingAPI;
using StardewModdingAPI.Events;
using StardewValley;
Expand Down Expand Up @@ -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<Texture2D>("Portraits\\Suki");
__instance.portraitPerson = suki;
}
}

private void OnDayStarted(object sender, DayStartedEventArgs e)
Expand Down
Binary file modified StardewValleyExpanded/StardewValleyExpanded.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions StardewValleyExpanded/manifest.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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",
Expand Down