Jump to content

[Gameplay] Butterflies spawning in winter in normal/RoG mode [+solution]


TonyV
  • Fixed

Please choose a category

[Gameplay]

Platform

  • Steam

Do you use mods?
         yes

Version Number

2016-02-26_14-15-59 Rev. 168028

Issue title

Butterflies spawning in winter in normal/RoG mode

Steps to reproduce

Play the game in winter in normal/RoG mode.  Camp out near some flowers.

Describe your issue

Butterflies spawn in normal/RoG (non-Shipwrecked) mode.


Steps to Reproduce
Play the game in winter in normal/RoG mode. Camp out near some flowers.



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

I've found that in butterflyspawner.lua, the code checks for IsWetSeason() to determine if butterflies should spawn, but not IsWinter().  The following line should be changed on line 82 in the following file:

dont_starve\data\DLC0002\scripts\components\butterflyspawner.lua

Original:

if spawnerinst and day and not sm:IsWetSeason() and self.prefab then

Change to:

if spawnerinst and day and not (sm:IsWetSeason() or sm:IsWinter()) and self.prefab then

I've also attached a complete copy of my butterflyspawner.lua file that corrects the issue.

butterflyspawner.lua

Edited by TonyV

Share this comment


Link to comment
Share on other sites


×
  • Create New...