Skip to content

Commit

Permalink
Update typeChart.py
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sussy-impostor authored Jun 5, 2024
1 parent 45895b4 commit 8fe39d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typeChart.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self, weak, resist, immune):

def match(attackType,defenseType):
attackT = [tNormal,tFighting,tFlying,tBug,tGrass,tFire,tWater,tElectric,tGround,tRock,tSteel,tPoison,tGhost,tDark,tFairy,tPsychic,tDragon,tIce][attackType]
defenseT = []
defenseT[0] = [tNormal,tFighting,tFlying,tBug,tGrass,tFire,tWater,tElectric,tGround,tRock,tSteel,tPoison,tGhost,tDark,tFairy,tPsychic,tDragon,tIce][defenseType]
if len(defenseT) > 1:
defenseT[1] = [tNormal,tFighting,tFlying,tBug,tGrass,tFire,tWater,tElectric,tGround,tRock,tSteel,tPoison,tGhost,tDark,tFairy,tPsychic,tDragon,tIce][defenseType]
Expand Down

0 comments on commit 8fe39d5

Please sign in to comment.