Skip to content
Extraits de code Groupes Projets
Valider e23d9ed9 rédigé par Milipi's avatar Milipi
Parcourir les fichiers

Ajout critiques + maj save

parent 4bcc174d
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -454,6 +454,11 @@ async def r(ctx, what, characterName = None): ...@@ -454,6 +454,11 @@ async def r(ctx, what, characterName = None):
randompart = random.choice(range(1, 20 + 1)) randompart = random.choice(range(1, 20 + 1))
custom = floor((int(attr.level)-10)/2) custom = floor((int(attr.level)-10)/2)
res = randompart - custom 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)) await ctx.send('The result for the {0} check is : {1} ({2} - {3})'.format(what, res,randompart,custom))
return return
elif char.system=="LN": elif char.system=="LN":
......
Aucun aperçu pour ce type de fichier
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter