예제 #1
0
파일: mage.py 프로젝트: mhochoy/RPG-Game
 def __init__(self):
     super().__init__(
         name="Mage",
         luck=generate_random_number(max=5),
         attack=generate_random_number(max=3),
         defense=generate_random_number(max=7)
     )
예제 #2
0
 def power_boost(self):
     if not self.luck <= 1:
         self.attack += generate_random_number(max=3)
         self.defense += generate_random_number(max=3)
         self.luck += generate_dangerous_number(val=3)
         if self.luck < 1:
             self.luck = 1
예제 #3
0
 def last_resort(self):
     self.attack += generate_random_number(max=6)
     self.defense += generate_dangerous_number(val=6)
예제 #4
0
 def __init__(self):
     super().__init__(name="Knight",
                      attack=generate_random_number(max=7),
                      defense=generate_random_number(max=5),
                      luck=generate_random_number(max=3))