Esca-MMC / FarmTypeManager

A mod for the game Stardew Valley, allows players and modders to spawn customizable features from each of Stardew’s farm types. Requires the SMAPI mod loader.
https://www.nexusmods.com/stardewvalley/mods/3231
Other
22 stars 12 forks source link

Fix LimitedNumberOfSpawns overwriting itself mid-game #6

Closed Esca-MMC closed 5 years ago

Esca-MMC commented 5 years ago

LimitedNumberOfSpawns appears to work correctly when creating/loading a farm, but if the setting is changed while the game is still running, it appears to overwrite itself with the "old" value at the end of each day. The "new" number apparently isn't used in calculation at any point.

In case it's relevant: this was tested with the Large Object spawn system, using default config settings otherwise. It hasn't yet been fully tested with other numbers; it might be a problem specific to 0.

Example:

A farm is loaded with a LimitedNumberOfSpawns (LNOS) set to 1. Objects spawn that day. The next day, objects don't spawn, and LNOS is set to 0. Manually edit the config, setting LNOS to 999. The next day, LNOS is set to 0 again and nothing has spawned.