Esempio n. 1
0
 def apply_damage_and_log(self, user, comments, damage):
     for comment in comments:
         points = scores.apply_damage([comment], damage)
         gamelog.GameLogEntry.create(
             user._fullname,
             comment._fullname,
             self.item_name,
             points,
         )
Esempio n. 2
0
 def apply_damage_and_log(self, user, comments, damage):
     for comment in comments:
         points = scores.apply_damage([comment], damage)
         gamelog.GameLogEntry.create(
             user._fullname,
             comment._fullname,
             self.item_name,
             points,
         )
Esempio n. 3
0
    def apply_damage_and_log(self, user, target, affected_things):
        damage = self.item["damage"]
        if damage:
            points = scores.apply_damage(affected_things, damage)
        else:
            points = {}

        gamelog.GameLogEntry.create(
            user._fullname,
            target._fullname,
            self.item_name,
            points,
        )
Esempio n. 4
0
    def apply_damage_and_log(self, user, target, affected_things):
        damage = self.item["damage"]
        if damage:
            points = scores.apply_damage(affected_things, damage)
        else:
            points = {}

        gamelog.GameLogEntry.create(
            user._fullname,
            target._fullname,
            self.item_name,
            points,
        )