diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs index 528fa778..89631c88 100644 --- a/src/SMAPI/Constants.cs +++ b/src/SMAPI/Constants.cs @@ -20,7 +20,7 @@ namespace StardewModdingAPI ** Public ****/ /// SMAPI's current semantic version. - public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.2.0.3-RC1", allowNonStandard: true); + public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.2.0.3-RC2", allowNonStandard: true); /// The minimum supported version of Stardew Valley. public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.1"); @@ -95,7 +95,7 @@ namespace StardewModdingAPI internal static string ModsPath { get; set; } /// The game's current semantic version. - internal static ISemanticVersion GameVersion { get; } = new GameVersion("1.4.5.136"); + internal static ISemanticVersion GameVersion { get; } = new GameVersion("1.4.5.137"); /// The target game platform. internal static Platform Platform { get; } = Platform.Android; diff --git a/src/SMAPI/Framework/RewriteFacades/ShopMenuMethods.cs b/src/SMAPI/Framework/RewriteFacades/ShopMenuMethods.cs index 4beca4c8..6781fec2 100644 --- a/src/SMAPI/Framework/RewriteFacades/ShopMenuMethods.cs +++ b/src/SMAPI/Framework/RewriteFacades/ShopMenuMethods.cs @@ -74,6 +74,17 @@ namespace StardewModdingAPI.Framework.RewriteFacades typeof(ShopMenu).GetField("itemPriceAndStock", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public).SetValue(this, value); } } + public List ForSaleProp + { + get + { + return (List)typeof(ShopMenu).GetField("forSale", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public).GetValue(this); + } + set + { + typeof(ShopMenu).GetField("forSale", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public).SetValue(this, value); + } + } public ShopMenuMethods(Dictionary itemPriceAndStock, int currency = 0, string who = null, Func on_purchase = null, Func on_sell = null, string context = null) : base(itemPriceAndStock, currency, who, on_purchase, on_sell, context) { diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs index 5abf7f7d..14f03a49 100644 --- a/src/SMAPI/Metadata/InstructionMetadata.cs +++ b/src/SMAPI/Metadata/InstructionMetadata.cs @@ -65,6 +65,7 @@ namespace StardewModdingAPI.Metadata yield return new TypeFieldToAnotherTypePropertyRewriter(typeof(ShopMenu), typeof(ShopMenuMethods), "hoverText", "HoverTextProp"); yield return new TypeFieldToAnotherTypePropertyRewriter(typeof(ShopMenu), typeof(ShopMenuMethods), "categoriesToSellHere", "CategoriesToSellHereProp"); yield return new TypeFieldToAnotherTypePropertyRewriter(typeof(ShopMenu), typeof(ShopMenuMethods), "itemPriceAndStock", "ItemPriceAndStockProp"); + yield return new TypeFieldToAnotherTypePropertyRewriter(typeof(ShopMenu), typeof(ShopMenuMethods), "forSale", "ForSaleProp"); yield return new TypeFieldToAnotherTypePropertyRewriter(typeof(MenuWithInventory), typeof(MenuWithInventoryMethods), "trashCan", "TrashCanProp"); yield return new TypeFieldToAnotherTypePropertyRewriter(typeof(ItemGrabMenu), typeof(ItemGrabMenuMethods), "fillStacksButton", "FillStacksButtonProp"); @@ -80,6 +81,7 @@ namespace StardewModdingAPI.Metadata yield return new MethodParentRewriter(typeof(SpriteText), typeof(SpriteTextMethods)); yield return new MethodParentRewriter(typeof(NPC), typeof(NPCMethods)); yield return new MethodParentRewriter(typeof(Utility), typeof(UtilityMethods)); + yield return new MethodParentRewriter(typeof(DayTimeMoneyBox), typeof(DayTimeMoneyBoxMethods)); //Constructor Rewrites yield return new MethodParentRewriter(typeof(HUDMessage), typeof(HUDMessageMethods)); diff --git a/src/SMAPI/SMAPI.csproj b/src/SMAPI/SMAPI.csproj index 291f1246..9069239c 100644 --- a/src/SMAPI/SMAPI.csproj +++ b/src/SMAPI/SMAPI.csproj @@ -48,10 +48,10 @@ ..\..\..\..\..\AndroidStudioProjects\SMAPI Android Installer\app\src\main\assets\Stardew\0Harmony.dll - ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.136\assemblies\Google.Android.Vending.Expansion.Downloader.dll + ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.137\assemblies\Google.Android.Vending.Expansion.Downloader.dll - ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.136\assemblies\Google.Android.Vending.Licensing.dll + ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.137\assemblies\Google.Android.Vending.Licensing.dll @@ -59,7 +59,7 @@ ..\..\..\..\..\AndroidStudioProjects\SMAPI Android Installer\app\src\main\assets\Stardew\Mono.Cecil.dll - ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.136\assemblies\MonoGame.Framework.dll + ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.137\assemblies\MonoGame.Framework.dll ..\..\..\..\..\AndroidStudioProjects\SMAPI Android Installer\app\src\main\assets\Stardew\MonoMod.RuntimeDetour.dll @@ -74,10 +74,10 @@ ..\SMAPI.Toolkit\bin\Debug\net4.5\SMAPI.Toolkit.dll - ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.136\assemblies\StardewValley.dll + ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.137\assemblies\StardewValley.dll - ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.136\assemblies\StardewValley.GameData.dll + ..\..\..\..\..\Downloads\StardewValleyAndroidStuff\base_1.4.5.137\assemblies\StardewValley.GameData.dll @@ -266,6 +266,7 @@ +