Skip to content

Fix Joker Rarity Formula#3

Open
spencers145 wants to merge 1 commit into
icyethics:mainfrom
spencers145:main
Open

Fix Joker Rarity Formula#3
spencers145 wants to merge 1 commit into
icyethics:mainfrom
spencers145:main

Conversation

@spencers145

Copy link
Copy Markdown

Hey, nice mod! I was looking for something like this to help with my own personal modpack making.

Changed the joker_rate formula to essentially joker_rate = everything_else_total_rate * desired_joker_percentage / (100% - desired_joker_percentage).

I verified experimentally that it works. Setting joker rarity to 58% before got me ~64% jokers across 100 rerolls, now it gets me ~57% jokers.

The 1.00001 should be 1 mathematically, but if joker_rate is set to 100% I don't want a divide by zero, so I added a negligible amount to stop that quick and easy.

@icyethics

Copy link
Copy Markdown
Owner

Oh, this has made me realize I've not actually pushed my most recent change! I've indeed noticed the formula was wrong, so I'd opted to change it. It might be, however, that your approach is more effective, so I'll have a look at comparing the two! Thanks a lot for contributing, regardless, though!

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.

2 participants