Пример #1
0
 def lightning_bolt(self, hit, evade, enemyMod):
     if ((hit > evade + enemyMod) and self.magic_slots > 0):
         damage = (funcs.d6(1) + funcs.d6(1) + funcs.d6(1) +
                   funcs.d6(1)) + self.intMod
         self.magic_slots -= 1
     elif ((hit <= evade + enemyMod) and self.magic_slots > 0):
         damage = (funcs.d6(1) + funcs.d6(1)) + self.intMod
         self.magic_slots -= 1
     elif (self.magic_slots <= 0):
         print("no magic left")
         damage = 0
     return damage
Пример #2
0
 def levelUP(self):
     self.hp = self.hp + (funcs.d6(1) + self.conMod)
     self.level += 1
     self.magic_slots += 1
Пример #3
0
 def levelUP(self):
     self.hp = self.hp + (funcs.d6(1) + self.conMod)
     self.level += 1