Sun Haven
0 of 0

File information

Last updated

Original upload

Created by

devopsdinosaur

Uploaded by

devopsdinosaur

Virus scan

Safe to use

Tags for this mod

About this mod

Set tree growth/respawn chance, mushroom/silk spawn, and modify amount and quality of drops (including museum items) when trees are cut down (all modifiable in config file).

Permissions and credits
*************************************************************************************
Please join me on Discord if you have mod issues or ideas:

devopsdinosaur's Discord Server


If you don't use Discord please PM or email.  If you have mod issues then you
can submit them directly through GitHub here:

devopsdinosaur/sunhaven-mods bugs/ideas

I cannot guarantee I will see Posts/Bugs on all of my mods, so Discord/GitHub
are much better ways to reach me.

Thanks!
dd
*************************************************************************************


Public Service Announcement:

It's been hard to find the time to create new mods and support the ones I've made.  If you like my mods, please consider a small tip (any amount) on Ko-fi to help me convince my wife that this modding stuff is worth my time =)  Just scan the QR code below with your phone or click it to get started.  Thanks a ton!



Description:

v0.0.3 - Adjusted default tree respawn rate to correctly match the game default (it was way too high).
v0.0.2 - Added a Tree Respawn Multiplier config value for setting the probability multiplier of random tree respawn.

Set tree growth chance, mushroom/silk spawn, and modify amount and quality of drops (including museum items) when trees are cut down (all modifiable in config file).  All config options default to the game default values, meaning the game does nothing unless you tweak the values =)

(Thanks to MoCus for the idea for this mod)

Disclaimer: I generally test these mods as much as I can before releasing, but I won't always catch all the problems.  Please let me know if you hit issues, notice something just isn't working as expected, or just think something could be improved.  See my contact info below.  Thanks for the help!

Config Options:
  • Enabled - Set to false to disable this mod.
  • Overnight Growth Chance - Float value between 0 (no chance) and 1 (100% chance) of single tree stage increment each night (default is game default of 0.45f).
  • Tree Respawn Multiplier - Float value between 0 (no chance) and infinity (higher == higher chance) of tree respawn in random tiles (this value is used as a multiplier with a perlin noise map for random tree placement, default is game default of 0.1f).  Note that this is *not* a percent chance (i.e. between 0 and 1) but rather a multiplier for a very complicated probability map.  I tested with a value of 0 (which resulted in no trees spawning over a month of sleeping) and 500 (which resulted in trees in just about every tile after a single overnight sleep).
  • Overnight Mushroom Gain Chance - Float value between 0 (no chance) and 1 (100% chance) of tree gaining a mushroom each night (default is game default of 0.035f).
  • Overnight Cobweb Gain Chance - Float value between 0 (no chance) and 1 (100% chance) of tree gaining a cobweb each night (default is game default of 0.018f).
  • Tree Drop Minimum Amount - Minimum amount of items (i.e. wood) dropped when tree is cut down (default is game default of 4 [halved for stumps]).
  • Tree Drop Maximum Amount - Maxmum amount of items (i.e. wood) dropped when tree is cut down (default is game default of 6 [halved for stumps], note this is increased by exploration perks).
  • Seed Drop Chance - Float value between 0 (no chance) and 1 (100% chance) of seed dropping when tree if cut down (default is game default of 0.15f [halved for stumps]).
  • Museum Item Drop Chance - Float value between 0 (no chance) and 1 (100% chance) of museum item dropping when tree if cut down (default is game default of 0.035f [halved for stumps]).

In-game Controls
None

Conflicts:
None that I'm aware of; let me know if so.  I have not tested anything in multiplayer.

Installation:
1. Install BepInEx
2. Download and extract this mod.
3. Copy the extracted file(s) to your <sunhaven-install>/BepInEx/plugins directory.
4. Run the game.  Enjoy!

Source Code and Issues:
All my Sun Haven mods are on GitHub here: https://github.com/devopsdinosaur/sunhaven-mods  I try to keep them as specific and simple as possible.  Any issues or requests, just PM me here, on github, or email devopsdinosaur __a_t__ gmail.com.