fix asset propagation for localized movie data

This commit is contained in:
Jesse Plamondon-Willard 2021-04-02 21:18:18 -04:00
parent 3dc344054a
commit 1a4cdd71a5
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 10 additions and 9 deletions

View File

@ -10,8 +10,12 @@
## Upcoming release
* For players:
* On macOS, the `StardewModdingAPI.bin.osx` file is no longer overwritten if it's identical to avoid resetting file permissions (thanks to 007wayne!).
* Fixed error for non-English players after returning to title, reloading, and entering town with a completed movie theater.
* Fixed `world_clear` console command not removing resource clumps outside the farm and secret woods.
* For modders:
* Added asset propagation for `Data\Concessions`.
## 3.9.5
Released 21 March 2021 for Stardew Valley 1.5.4 or later.

View File

@ -286,6 +286,10 @@ namespace StardewModdingAPI.Metadata
Game1.clothingInformation = content.Load<Dictionary<int, string>>(key);
return true;
case "data\\concessions": // MovieTheater.GetConcessions
MovieTheater.ClearCachedLocalizedData();
return true;
case "data\\concessiontastes": // MovieTheater.GetConcessionTasteForCharacter
this.Reflection
.GetField<List<ConcessionTaste>>(typeof(MovieTheater), "_concessionTastes")
@ -306,16 +310,9 @@ namespace StardewModdingAPI.Metadata
case "data\\hairdata": // Farmer.GetHairStyleMetadataFile
return this.ReloadHairData();
case "data\\moviesreactions": // MovieTheater.GetMovieReactions
this.Reflection
.GetField<List<MovieCharacterReaction>>(typeof(MovieTheater), "_genericReactions")
.SetValue(content.Load<List<MovieCharacterReaction>>(key));
return true;
case "data\\movies": // MovieTheater.GetMovieData
this.Reflection
.GetField<Dictionary<string, MovieData>>(typeof(MovieTheater), "_movieData")
.SetValue(content.Load<Dictionary<string, MovieData>>(key));
case "data\\moviesreactions": // MovieTheater.GetMovieReactions
MovieTheater.ClearCachedLocalizedData();
return true;
case "data\\npcdispositions": // NPC constructor