Skip to content

Commit

Permalink
Merge pull request #3 from a-sussy-impostor/main
Browse files Browse the repository at this point in the history
Up-to-date
  • Loading branch information
a-sussy-impostor authored May 3, 2024
2 parents 6a359f1 + 1059352 commit 7870ada
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from random import choice, randint
# from math import round, floor
from random import choice, randint, uniform
import typeChart

class Disk:
Expand Down Expand Up @@ -47,11 +46,11 @@ def Attack(self, enemy,selfch = [1,1,1,1,1,1],enemych = [1,1,1,1,1,1]): # Stat c
attack = (((self.bst[getbst[0]]*2+31+252/4)*self.level)/100+5)*selfchnew
defense = (((enemy.bst[getbst[1]]*2+31+252/4)*enemy.level)/100+5)*enemychnew
powerBonus = choice([10,10,10,20,20,20,20,30,30,30,50])
damage = (((2*self.level)/250)*attack/defense*(self.move[2]+powerBonus)+2)*multi
damage = round((((2*self.level)/250)*attack/defense*(self.move[2]+powerBonus)+2)*multi*uniform(0.8, 1))
else:
attack = (((self.bst[getbst[0]]*2+31+252/4)*self.level)/100+5)*selfch[0]
defense = (((enemy.bst[getbst[1]]*2+31+252/4)*enemy.level)/100+5)*enemych[1]
powerBonus = choice([10,10,10,20,20,20,20,30,30,30,50])
damage = (((2*self.level)/250)*attack/defense*(self.move[2]+powerBonus)+2)*multi
damage = round((((2*self.level)/250)*attack/defense*(self.move[2]+powerBonus)+2)*multi*uniform(0.8, 1))
return damage
# work in progres

0 comments on commit 7870ada

Please sign in to comment.