Intermittent Spawn Chance Formula Override

Discuss modding questions and implementation details.
Post Reply
User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Intermittent Spawn Chance Formula Override

Post by Interkarma »

For anyone interested in tweaking random spawn rates, I have offloaded these chance rolls to the following delegates in FormulaHelper from 0.10.9.
  • RollRandomSpawn_LocationNight (player is outside in a location area at night)
  • RollRandomSpawn_WildernessDay (player is in wilderness during daylight hours)
  • RollRandomSpawn_WildernessNight (player is in wilderness at night)
  • RollRandomSpawn_Dungeon (player is in a dungeon)
To change spawn rate for the above conditions, simply override the formula and return a 0 if you want a spawn to occur or non-zero for no spawn. Mod can use whatever conditions/rolls it likes to determine spawn chance.

Post Reply