Example #1
0
 def failed_attack(self, who, whom, def_experiences):
     for online_user in self.location_users.values():
         text_action = self.text_action(
             smarty.battle_messages[7],
             online_user.locale,
             who,
             whom,
             items_manager.get_current_weapon_name(self.location_users[who].battle_character, online_user.locale),
             def_experiences)
         online_user.send_action(text_action)
Example #2
0
 def succeeded_attack(self, who, whom, amount, new_health, experience, full_experience):
     for online_user in self.location_users.values():
         text_action = self.text_action(
             smarty.battle_messages[6],
             online_user.locale,
             who,
             whom,
             items_manager.get_current_weapon_name(self.location_users[who].battle_character, online_user.locale),
             amount,
             new_health,
             experience,
             full_experience)
         online_user.send_action(text_action)