|
@ -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) |
|
|
|
|
|
|
|
|