I want to modify the spawn chance of a rock being replaced with a spear, but cannot find the code responsible for randomly spawning items at the beginning of the cycle. The closest I could find is this:
{
get
{
if (this.rndItmDns != null)
{
return this.rndItmDns.Value;
}
return this.parent.RandomItemDensity;
}
set
{
this.rndItmDns = new float?(value);
}
}```
inside the RoomSettings class. I think this is enough information to help.
Basically, does anyone know where to find the function or whatever responsible for randomly spawning items at cycle start?