Sclerocephalus
New Member
- Messages
- 3
I noticed that WSFW has an option now to modify the flora harvest time. This may not work as expected though, because the reset handling is tied to the frequency of workshop resets.
The reset of the harvested state is performed by calling HandleWorkshopReset() on the individual crops, and this is currently done by ResetWorkshop(). When we fixed the issue with endlessly repeating workshop resets for UFO4P 1.0.3, we had to decide for an appropriate minimum time interval between subsequent workshop resets, and we chose one game day because of the vanilla default value for the flora harvest time.
Now,if you modify the value and use anything smaller than one game day, the changes won't take effect (i.e. if the player doesn't leave the workshop, the earliest reset will still happen after one game day) unless you modify the respective check in the OnLocationChange event (and thus make ResetWorkshop() run more frequently), or you write new code that handles the flora reset independently (this would be the better solution because more frequent resets are not a good idea for obvious reasons).
Implementing new code to handle this would also remove the one day limitation for subsequent resets, and one could think about letting them run even less frequently.
The reset of the harvested state is performed by calling HandleWorkshopReset() on the individual crops, and this is currently done by ResetWorkshop(). When we fixed the issue with endlessly repeating workshop resets for UFO4P 1.0.3, we had to decide for an appropriate minimum time interval between subsequent workshop resets, and we chose one game day because of the vanilla default value for the flora harvest time.
Now,if you modify the value and use anything smaller than one game day, the changes won't take effect (i.e. if the player doesn't leave the workshop, the earliest reset will still happen after one game day) unless you modify the respective check in the OnLocationChange event (and thus make ResetWorkshop() run more frequently), or you write new code that handles the flora reset independently (this would be the better solution because more frequent resets are not a good idea for obvious reasons).
Implementing new code to handle this would also remove the one day limitation for subsequent resets, and one could think about letting them run even less frequently.