Compare commits
2 Commits
31c08a3864
...
d2f490a9cf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2f490a9cf | ||
|
|
eff508033c |
@ -57,18 +57,18 @@ class Action:
|
||||
hits=False
|
||||
crit=False
|
||||
if(self.advantage==0):
|
||||
if(((self.hit[0]+self.hit[1]) >self.targetAc and (self.hit[0]-self.atkMod)>1) or self.critAbove<(self.hit[0]-self.atkMod)): # 0 (rul 1 value), 1 (rul 1 bonus), 2 (rul 2 value), 3(rul 2 bonus)
|
||||
if(((self.hit[0]+self.hit[1]) >=self.targetAc and (self.hit[0]-self.atkMod)>1) or self.critAbove<(self.hit[0]-self.atkMod)): # 0 (rul 1 value), 1 (rul 1 bonus), 2 (rul 2 value), 3(rul 2 bonus)
|
||||
hits=1
|
||||
if(self.critAbove<(self.hit[0]-self.atkMod)):
|
||||
self.crits=1
|
||||
if(self.advantage==1):
|
||||
if(((self.hit[2]+self.hit[3]) >self.targetAc and (self.hit[2]-self.atkMod)>1 or (self.hit[0]+self.hit[1]) >self.targetAc and (self.hit[0]-self.atkMod)>1) or (self.critAbove<self.hit[2]-self.atkMod) or (self.critAbove<self.hit[0]-self.atkMod)):
|
||||
if(((self.hit[2]+self.hit[3]) >=self.targetAc and (self.hit[2]-self.atkMod)>1 or (self.hit[0]+self.hit[1]) >=self.targetAc and (self.hit[0]-self.atkMod)>1) or (self.critAbove<self.hit[2]-self.atkMod) or (self.critAbove<self.hit[0]-self.atkMod)):
|
||||
hits=1
|
||||
if((self.critAbove<self.hit[2]-self.atkMod) or (self.critAbove<self.hit[0]-self.atkMod)):
|
||||
self.crits=1
|
||||
|
||||
if(self.advantage==-1):
|
||||
if((((self.hit[2]+self.hit[3]) >self.targetAc and (self.hit[2]-self.atkMod)>1) or ((self.critAbove<self.hit[2]-self.atkMod))) and (((self.hit[0]+self.hit[1]) >self.targetAc and (self.hit[0]-self.atkMod)>1) or (self.critAbove<self.hit[0]-self.atkMod))):
|
||||
if((((self.hit[2]+self.hit[3]) >=self.targetAc and (self.hit[2]-self.atkMod)>1) or ((self.critAbove<self.hit[2]-self.atkMod))) and (((self.hit[0]+self.hit[1]) >=self.targetAc and (self.hit[0]-self.atkMod)>1) or (self.critAbove<self.hit[0]-self.atkMod))):
|
||||
hits=1
|
||||
if((self.critAbove<self.hit[2]-self.atkMod) and (self.critAbove<self.hit[0]-self.atkMod)):
|
||||
self.crits=1
|
||||
@ -94,7 +94,7 @@ class Action:
|
||||
fumbles=False
|
||||
return fumbles
|
||||
|
||||
damTypes=["Slashing","Radiant","Great Weapon Master","Divine","Holy Weapon","Great Weapon Master/Radiant"]
|
||||
damTypes=["Slashing","Radiant","Great Weapon Master","Divine","Holy Weapon","Great Weapon Master/Radiant", "Bludgeoning"]
|
||||
con=0
|
||||
def incContext():
|
||||
res=0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user