Jump to content

More than max penguin colonies can spawn


chaosmonkey
  • Pending

I am regularly seeing 6/5 penguin colonies each winter.

Jun 16 08:00:31 cartella DST-Megabase-Master[1925]: [00:12:34]: , 51/54 Penguins, 6/5 Colonies, next spawn in :21.266666211188

This code in scripts/components/penguinspawner.lua:310 seems to be the problem.

local function TryToSpawnFlockForPlayer(playerdata)
    -- snip
  
    if #_colonies > _maxColonies then
          --print("Maxed out colonies")
        return
    end

The comparison should be using >= not >.


Steps to Reproduce

Run around the edge of the world during winter and see that up to _maxColonies +1 will spawn.




User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...