Exemplo n.º 1
0
 def perform(self, character) -> None:
     if self.effect.is_activated():
         character.effects.append(self.effect)
     character.take_dmg(
         DamageObject(dmg=self.dmg,
                      attack_type=self.ATTACK_TYPE,
                      source=self.SOURCE))
Exemplo n.º 2
0
 def perform(self, character) -> None:
     super().perform(character)
     character.take_dmg(
         DamageObject(dmg=self.dmg, attack_type=self.ATTACK_TYPE))
Exemplo n.º 3
0
 def activate(self, character) -> None:
     super().activate(character)
     character.take_dmg(DamageObject(dmg=self.dmg))
Exemplo n.º 4
0
 def perform(self, caster: 'Enemy', character: 'Player') -> None:
     character.take_dmg(DamageObject(dmg=self.mana_drain, attack_type=self.TYPE, source=self.SOURCE))
     caster.gain_mana(self.mana_drain)
     caster.lose_mana(self.mana_cost)
Exemplo n.º 5
0
 def perform(self, caster: 'Enemy', character: 'Player') -> None:
     dmg = self.dmg
     character.take_dmg(DamageObject(dmg=dmg, attack_type=self.TYPE, source=self.SOURCE))
     caster.heal(dmg)
Exemplo n.º 6
0
 def perform(self, character) -> None:
     character.take_dmg(
         DamageObject(dmg=self.damage,
                      attack_type=self.ATTACK_TYPE,
                      source=self.NATURE))
Exemplo n.º 7
0
 def perform(self, character) -> None:
     character.take_dmg(DamageObject(dmg=self.dmg, attack_type=self.TYPE))