kinggath / WorkshopFramework

Redesign of the FO4 Workshop Scripts
55 stars 9 forks source link

Update WorkshopScript.psc #123

Closed cbrgamer2 closed 2 years ago

cbrgamer2 commented 2 years ago

RecalculateWorkshopResources is run often, even multiple times in a row on the same settlement. Added a timer to start RecalculateWorkshopResources so it won't run repeatedly (this can cause delays in large settlements). Renamed original function RecalculateWorkshopResourcesV2 and added a bool to be able to skip the timer and just run the function normally. If the skip timer bool is needed to be set (defaults to false), RecalculateWorkshopResourcesV2 will need to be run directly. Otherwise, RecalculateWorkshopResources now runs RecalculateWorkshopResourcesV2.

I've tested it with some stuff, but I don't know all the ins and outs - I leave it to you to determine if this change would break everybody's games ...