diff --git a/bot.py b/bot.py index b9acc8b3e4cbc87c894c1440aea5c6e8017fea2d..ed3c6caa4605c5aabfb365dcbed3bf253f0fc2fa 100644 --- a/bot.py +++ b/bot.py @@ -454,7 +454,12 @@ async def r(ctx, what, characterName = None): randompart = random.choice(range(1, 20 + 1)) custom = floor((int(attr.level)-10)/2) res = randompart - custom - await ctx.send('The result for the {0} check is : {1} ({2} - {3})'.format(what, res,randompart,custom)) + if randompart==1: + await ctx.send('*Réussite critique !*\nThe result for the {0} check is : {1} ({2} - {3})'.format(what, res,randompart,custom)) + elif randompart==20: + await ctx.send('*Échec critique !*\nThe result for the {0} check is : {1} ({2} - {3})'.format(what, res,randompart,custom)) + else: + await ctx.send('The result for the {0} check is : {1} ({2} - {3})'.format(what, res,randompart,custom)) return elif char.system=="LN": roll = [] diff --git a/characters.pkl b/characters.pkl index d1e9cf6cd41e3fc411925fcac46dbb4a88ef6727..de0e8434de88dab154f892c28823646b49e879e7 100644 Binary files a/characters.pkl and b/characters.pkl differ