Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dmgTaken = 0
- class Outrider:
- def __init__(self, id1, name1, color1, dmg1, life1, shield1, capacity1):
- self.id1 = float(id1)
- self.name1 = str(name1)
- self.color1 = bool(color1)
- self.dmg1 = float(dmg1)
- self.life1 = float(life1)
- self.shield1 = float(shield1)
- self.capacity1 = float(capacity1)
- if self.color1 == True:
- self.color1 = "White"
- else:
- self.color1 = "Black"
- def attack(self):
- option = int(input())
- if option == 2:
- if dmg1 > shield2:
- life2 -= dmg1 - shield2
- else:
- shield2-= dmg1
- elif option == 3:
- if dmg1 > shield3:
- life3 -= dmg1 - shield3
- else:
- shield3-= dmg1
- def is_destroyed(self, IsDestroyed1 = False):
- self.IsDestroyed1 = IsDestroyed1
- if life1 <= 0:
- IsDestroyed1 = True
- print(IsDestroyed1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement