You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed fishing zombies spawning very frequently, and considering these zombies are empowered with speed, strength, and resistance, they were a major problem for early game players. I didn't want to completely disable them, so I went into config/Mariculture/general-stuff.cfg and set "Zombie > Spawn with Fishing Gear Chance > 0-1" to 0.005. Despite this, fishing gear zombies still seemed to spawn too frequently. So, I got to browsing the source code and I noticed the following line:
if (event.world.rand.nextFloat() - 0.1F < GeneralStuff.FISHING_GEAR_CHANCE)
Assuming that nextFloat() returns a number in the range [0,1], subtracting 0.1F here is effectively adding a 10% chance on top of what the user has configured. Removing the - 0.1F here should fix the problem.
Edit:
I didn't notice this version was no longer supported until after I posted. Feel free to tag the issue as such.
The text was updated successfully, but these errors were encountered:
I noticed fishing zombies spawning very frequently, and considering these zombies are empowered with speed, strength, and resistance, they were a major problem for early game players. I didn't want to completely disable them, so I went into config/Mariculture/general-stuff.cfg and set "Zombie > Spawn with Fishing Gear Chance > 0-1" to 0.005. Despite this, fishing gear zombies still seemed to spawn too frequently. So, I got to browsing the source code and I noticed the following line:
Assuming that nextFloat() returns a number in the range [0,1], subtracting 0.1F here is effectively adding a 10% chance on top of what the user has configured. Removing the - 0.1F here should fix the problem.
Edit:
I didn't notice this version was no longer supported until after I posted. Feel free to tag the issue as such.
The text was updated successfully, but these errors were encountered: