summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-03-24 21:24:38 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-03-24 21:24:38 -0400
commitd0dad43e243864eb8bfdf46c853c5c7fba7c55ed (patch)
treeb43fd6d2a3ad21e477e57eb440523ed73578a0ad
parent7ca5efbbc576f3c6c43493654b2a0ac040fd4f31 (diff)
parent31db04f4a0814193c98f8875b09aa9bbfa7e0ec5 (diff)
downloadSMAPI-d0dad43e243864eb8bfdf46c853c5c7fba7c55ed.tar.gz
SMAPI-d0dad43e243864eb8bfdf46c853c5c7fba7c55ed.tar.bz2
SMAPI-d0dad43e243864eb8bfdf46c853c5c7fba7c55ed.zip
Merge branch 'develop' into stable
-rw-r--r--build/common.targets2
-rw-r--r--docs/release-notes.md7
-rw-r--r--src/SMAPI.Mods.ConsoleCommands/manifest.json4
-rw-r--r--src/SMAPI.Mods.SaveBackup/manifest.json4
-rw-r--r--src/SMAPI/Constants.cs2
-rw-r--r--src/SMAPI/Framework/Input/MouseStateBuilder.cs6
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs9
7 files changed, 25 insertions, 9 deletions
diff --git a/build/common.targets b/build/common.targets
index b3211aba..1e14a86c 100644
--- a/build/common.targets
+++ b/build/common.targets
@@ -4,7 +4,7 @@
<!--set properties -->
<PropertyGroup>
- <Version>3.4.0</Version>
+ <Version>3.4.1</Version>
<Product>SMAPI</Product>
<AssemblySearchPaths>$(AssemblySearchPaths);{GAC}</AssemblySearchPaths>
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 5a5e24d4..185ddc69 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -1,6 +1,13 @@
&larr; [README](README.md)
# Release notes
+## 3.4.1
+Released 24 March 2020 for Stardew Valley 1.4.1 or later.
+
+* For modders:
+ * Asset changes now propagate to NPCs in an event (e.g. wedding sprites).
+ * Fixed mouse input suppression not working in SMAPI 3.4.
+
## 3.4
Released 22 March 2020 for Stardew Valley 1.4.1 or later.
diff --git a/src/SMAPI.Mods.ConsoleCommands/manifest.json b/src/SMAPI.Mods.ConsoleCommands/manifest.json
index dbed84eb..a55d168f 100644
--- a/src/SMAPI.Mods.ConsoleCommands/manifest.json
+++ b/src/SMAPI.Mods.ConsoleCommands/manifest.json
@@ -1,9 +1,9 @@
{
"Name": "Console Commands",
"Author": "SMAPI",
- "Version": "3.4.0",
+ "Version": "3.4.1",
"Description": "Adds SMAPI console commands that let you manipulate the game.",
"UniqueID": "SMAPI.ConsoleCommands",
"EntryDll": "ConsoleCommands.dll",
- "MinimumApiVersion": "3.4.0"
+ "MinimumApiVersion": "3.4.1"
}
diff --git a/src/SMAPI.Mods.SaveBackup/manifest.json b/src/SMAPI.Mods.SaveBackup/manifest.json
index dc8bc8d4..5bf35b5c 100644
--- a/src/SMAPI.Mods.SaveBackup/manifest.json
+++ b/src/SMAPI.Mods.SaveBackup/manifest.json
@@ -1,9 +1,9 @@
{
"Name": "Save Backup",
"Author": "SMAPI",
- "Version": "3.4.0",
+ "Version": "3.4.1",
"Description": "Automatically backs up all your saves once per day into its folder.",
"UniqueID": "SMAPI.SaveBackup",
"EntryDll": "SaveBackup.dll",
- "MinimumApiVersion": "3.4.0"
+ "MinimumApiVersion": "3.4.1"
}
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs
index d66e9d6b..128e23bd 100644
--- a/src/SMAPI/Constants.cs
+++ b/src/SMAPI/Constants.cs
@@ -20,7 +20,7 @@ namespace StardewModdingAPI
** Public
****/
/// <summary>SMAPI's current semantic version.</summary>
- public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.4.0");
+ public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.4.1");
/// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.1");
diff --git a/src/SMAPI/Framework/Input/MouseStateBuilder.cs b/src/SMAPI/Framework/Input/MouseStateBuilder.cs
index cff3e05e..59956feb 100644
--- a/src/SMAPI/Framework/Input/MouseStateBuilder.cs
+++ b/src/SMAPI/Framework/Input/MouseStateBuilder.cs
@@ -66,9 +66,11 @@ namespace StardewModdingAPI.Framework.Input
{
foreach (var pair in overrides)
{
- bool isDown = pair.Value.IsDown();
if (this.ButtonStates.ContainsKey(pair.Key))
- this.ButtonStates[pair.Key] = isDown ? ButtonState.Pressed : ButtonState.Released;
+ {
+ this.State = null;
+ this.ButtonStates[pair.Key] = pair.Value.IsDown() ? ButtonState.Pressed : ButtonState.Released;
+ }
}
return this;
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 8d5ad3ab..83e553ff 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -949,7 +949,14 @@ namespace StardewModdingAPI.Metadata
/// <summary>Get all NPCs in the game (excluding farm animals).</summary>
private IEnumerable<NPC> GetCharacters()
{
- return this.GetLocations().SelectMany(p => p.characters);
+ foreach (NPC character in this.GetLocations().SelectMany(p => p.characters))
+ yield return character;
+
+ if (Game1.CurrentEvent?.actors != null)
+ {
+ foreach (NPC character in Game1.CurrentEvent.actors)
+ yield return character;
+ }
}
/// <summary>Get all farm animals in the game.</summary>