-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): wrong score when having multiple "Oops! All 6s" jokers
Fix probabilistic effects being incorrectly simulated with multiple instances of the "Oops! All 6s" joker. Each instance doubles the odds meaning the probability for a lucky card's mult effect to trigger is 1/5 by default, 2/5 with one instance of "Oops! All 6s", 4/5 with 2 instances, and 8/5 (i.e. 1, the guaranteed event) with 3 instances. Previously, the calculator simply added 1 to the numerator (i.e. 1/5 → 2/5 → 3/5, etc.) which isn't correct.
1 parent
0953ecb
commit f0325e4
Showing
3 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters