Advertisement
Guest User

Untitled

a guest
May 24th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. module AresMUSH
  2. module FS3Combat
  3.  
  4. def self.roll_attack(combatant, target, mod = 0)
  5. ability = FS3Combat.weapon_stat(combatant.weapon, "skill")
  6. accuracy_mod = FS3Combat.weapon_stat(combatant.weapon, "accuracy")
  7. special_mod = combatant.attack_mod
  8. damage_mod = combatant.total_damage_mod
  9. stance_mod = combatant.attack_stance_mod
  10. stress_mod = combatant.stress
  11. aiming_mod = (combatant.is_aiming? && (combatant.aim_target == combatant.action.target)) ? 3 : 0
  12. luck_mod = (combatant.luck == "Attack") ? 3 : 0
  13. distraction_mod = combatant.distraction
  14.  
  15. scale_combatant = combatant.associated_model.scale
  16. scale_target = target.associated_model.scale
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement