Skip to content

Commit

Permalink
Fixed an error in multiple defenses
Browse files Browse the repository at this point in the history
  • Loading branch information
AdoenLunnae committed Sep 29, 2018
1 parent 7666f5c commit c8a60f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions func.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def getdmg(atq, aroll, base, deff, droll, ta, acu, numdef):
else:
pendef=[0, -30, -50, -70, -90]
totalat= atq+aroll
totaldef= deff+droll+pendef[numdef]
totaldef= deff+droll+pendef[numdef-1]
diff = 10 * math.trunc((totalat-totaldef) / 10)
if diff > 0:
abso = 20 + 10 * ta
Expand All @@ -30,4 +30,4 @@ def getdmg(atq, aroll, base, deff, droll, ta, acu, numdef):
return 'A la defensiva'
elif diff < 0:
contr = -diff // 2
return 'Contraataque con +{}'.format(contr)
return 'Contraataque con +{}'.format(contr)

0 comments on commit c8a60f2

Please sign in to comment.