Jump to content

Bearger first autumn

Recommended Posts

5 minutes ago, Well-met said:

That's great but I don't know where to start in all this mess. I can't even understand the code

local function CanSpawnBearger()
  return TheWorld.state.isautumn and
    TheWorld.state.cycles > TUNING.NO_BOSS_TIME and
    _numSpawned < _numToSpawn and
    (_lastBeargerKillDay == nil or TheWorld.state.cycles - _lastBeargerKillDay > TUNING.NO_BOSS_TIME)

If the season is autumn and the number of days passed 'cycles' is more than NO_BOSS_TIME (value 26 as per tuning.lua) and the internal counters to stop duplicates are fine and if the last time bearger died (if it did die) is more than 26 days then it'll spawn.

Edited by CarlZalph
  • Like 1
Link to comment
Share on other sites

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...