Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce compound spawns while the player is stationary #1550

Closed
hhyyrylainen opened this issue Aug 17, 2020 · 3 comments · Fixed by #2397
Closed

Reduce compound spawns while the player is stationary #1550

hhyyrylainen opened this issue Aug 17, 2020 · 3 comments · Fixed by #2397

Comments

@hhyyrylainen
Copy link
Member

to not make it too OP

I would implement it with a variable tracking how much the player has moved, if the player has not moved much for a while I'd start to reduce the chance that compound clouds are spawned.

@Straywind
Copy link
Contributor

I'll try this

@hhyyrylainen
Copy link
Member Author

Well we now got code that will stop all spawns if the player is too stationary, which I guess is at least partly addressing the problem with this, though I still would have liked to see an exponentially reducing spawn rate for compounds while stationary, while still spawning microbes up to the game entity limit.

@Maxonovien
Copy link
Contributor

I think that such a change would not be much of an issue, given that I have a count of entity e, the cap c, so you'd have to apply a factor exp(c-e) (with clamping to safeguard things) to the spawner trials. So I think what you want can be pretty well expanded over my PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants