From 7a4506a9e6c4307dedfa2fb6ae628647c236993c Mon Sep 17 00:00:00 2001 From: moneromooo Date: Sun, 18 Jan 2015 09:05:59 +0000 Subject: [PATCH] dice: invert target too when playing over I'm an idiot :/ --- tipbot/modules/dice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tipbot/modules/dice.py b/tipbot/modules/dice.py index aef9be0..a622e53 100644 --- a/tipbot/modules/dice.py +++ b/tipbot/modules/dice.py @@ -106,6 +106,8 @@ def Dice(nick,chan,cmd): return 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)) lose_units = units