local function testforshark(comp, spawnpoint) local ents = TheSim:FindEntities(spawnpoint.x, spawnpoint.y, spawnpoint.z, TUNING.SHARK_TEST_RADIUS, GNARWAIL_TAGS) if #ents < 2 and math.random() < TUNING.SHARK_SPAWN_CHANCE then
The testforshark function in components/schoolspawner.lua checks for entities with the "gnarwail" tag, instead of the "shark" tag as a player might expect. This means there is theoretically an infinite limit to the amount of sharks that can spawn, if there are not more than two gnarwails in the area.
Is this an actual problem in gameplay? I'd say so as one time I've experienced getting four sharks back to back, which just doesn't seem very fair : P
1. Be the unluckiest person on planet earth and get four Rock Jaws back to back.