mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
dice: invert target too when playing over
I'm an idiot :/
This commit is contained in:
parent
e3eaff5fc1
commit
7a4506a9e6
1 changed files with 2 additions and 0 deletions
|
@ -106,6 +106,8 @@ def Dice(nick,chan,cmd):
|
||||||
return
|
return
|
||||||
|
|
||||||
target = (1 - config.dice_edge) / (1+multiplier)
|
target = (1 - config.dice_edge) / (1+multiplier)
|
||||||
|
if not under:
|
||||||
|
target = 1 - target
|
||||||
log_info("Dice: %s's #%d roll: %.16g, target %s %.16g" % (nick, rolls, roll, "under" if under else "over", target))
|
log_info("Dice: %s's #%d roll: %.16g, target %s %.16g" % (nick, rolls, roll, "under" if under else "over", target))
|
||||||
|
|
||||||
lose_units = units
|
lose_units = units
|
||||||
|
|
Loading…
Reference in a new issue