generated from Nemesis/Exemple
bug sur le moins sur un resultat de 1
This commit is contained in:
parent
2df559f2f7
commit
41396a82ab
1 changed files with 2 additions and 1 deletions
|
@ -181,7 +181,8 @@ def roll(result,type,explosif,nb,f,noadd,ars,relance,mitige):
|
||||||
roll = 0
|
roll = 0
|
||||||
elif (f != 0 and roll >= f and noadd):
|
elif (f != 0 and roll >= f and noadd):
|
||||||
tmp = int(roll//type)
|
tmp = int(roll//type)
|
||||||
roll = tmp + ((roll - tmp*type) >= 1 if f else 0) - moins
|
roll = tmp + ((roll - tmp*type) >= 1 if f else 0)
|
||||||
|
roll -= moins
|
||||||
#print("fin roll " + str(result) + " " + str(roll) + " " + str(new))
|
#print("fin roll " + str(result) + " " + str(roll) + " " + str(new))
|
||||||
return (result,roll,new)
|
return (result,roll,new)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue