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

Fixes 100% chances to trigger teleglow effects #39895

Merged
merged 6 commits into from
Apr 25, 2020

Conversation

RedShakespeare
Copy link
Contributor

@RedShakespeare RedShakespeare commented Apr 25, 2020

Summary

SUMMARY: Bugfixes "Fixes 100% chances to trigger teleglow effects"

Purpose of change

Fixes #39894.

Describe the solution

Change the outdated 1_turns into 6_turns and add "chance>=0" assertion to rng.cpp.

Describe alternatives you've considered

Adjust the turns definition.

Testing

Repeat the "Reproduce Steps" of #39894 and you'll see much less messages about "bright lights"

Additional context

Adjust chances to be consistent with those in old versions.
Add "one_in chance>0" assertion.
Delete "="
@Hirmuolio
Copy link
Contributor

Would probably be better to use 6_seconds instead of 6_turns.

Replaced 6_turns with 6_seconds
@RedShakespeare
Copy link
Contributor Author

Would probably be better to use 6_seconds instead of 6_turns.

Indeed. wwww

@KorGgenT KorGgenT merged commit 4e59722 into CleverRaven:master Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some teleglow effects show up for 100% chance
3 participants