Wickerbottom's book 'On Tentacles' chooses spawning points in a nonuniform fashion in a couple of ways.
Current spawn code.
1) The radius chosen is an integer value and is thus nonuniform to floating point for all radii.
2) The method of picking a spot in the circle is nonuniform in that it will favour having a concentration of points nearer to the centre of the circle than not. This may be intended.
To fix both of these at once:
data/scripts/prefabs/books.lua:57
local radius = math.random(3, 8)
Changes to:
local rand = math.random() local radius = math.sqrt(rand*64+(1-rand)*9)
Proposed fix.
If the desire is to have the distribution favour the centre of the circle, then the code would merely be:
local radius = math.random()*5+3
Centre-favouring.
Steps to Reproduce
Use 'On Tentacles' book long enough to see behaviour appearing and logging the (potential) spawnpoints out to some file for further analysis.
Use 'On Tentacles' book long enough to see behaviour appearing and logging the (potential) spawnpoints out to some file for further analysis.
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