Created
July 6, 2023 05:57
-
-
Save tkoz0/77e753ee8624474f65cb5b2b6434c0a6 to your computer and use it in GitHub Desktop.
dumb script for optimizing $bw $boostwish rolls on mudae bot
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
rolls = 38 | |
wpbase = 150 # wish percent boost | |
def wp(r): | |
ret = 0 | |
if r > 15: | |
ret += 10*(r-15) | |
r = 15 | |
if r > 5: | |
ret += 15*(r-5) | |
r = 5 | |
ret += 20*r | |
return ret | |
for r in range(rolls): | |
obj = (100 + wpbase + wp(r)) * (rolls - r) | |
print(f'r={r},obj={obj},wp={100+wpbase+wp(r)}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment