Well-met Posted June 28, 2021 Share Posted June 28, 2021 What stops bearger from spawning during the first season? How would one change this? I've looked everywhere I thought could be of interest with no luck Link to comment Share on other sites More sharing options...
Monti18 Posted June 29, 2021 Share Posted June 29, 2021 Look at the component BeargerSpawner, it has a function CanSpawnBearger to check if enough days have passed. 2 Link to comment Share on other sites More sharing options...
Well-met Posted June 30, 2021 Author Share Posted June 30, 2021 That's great but I don't know where to start in all this mess. I can't even understand the code Link to comment Share on other sites More sharing options...
CarlZalph Posted June 30, 2021 Share Posted June 30, 2021 (edited) 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) end 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 June 30, 2021 by CarlZalph 1 Link to comment Share on other sites More sharing options...
Well-met Posted June 30, 2021 Author Share Posted June 30, 2021 TUNING.NO_BOSS_TIME seems to be what I'm looking for! Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now