Dancer_A

Charge & S Rank

Jul 1st, 2023 (edited)
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. ## Charge
  2. ## 50% HP chance to add another round of combat
  3. ## No need to check for counter attacks
  4. ## No Range restriction
  5. ## Use weapon uses (will need to check this)
  6.  
  7. ## 26min
  8. ## x2 S rank
  9. ## Hit, Crit, Dmg
  10. ## Game_Unit_Skill.cs
  11. internal void dmg_skill(
  12. ref int skill_dmg, ref int weapon_dmg, ref int actor_dmg, ref int support_dmg,
  13. ref int target_def, Data_Weapon weapon,
  14. Game_Unit target, Data_Weapon target_weapon, WeaponTriangle tri, bool magic,
  15. int? distance, float effectiveness = 1)
  16. {
  17. .
  18. .
  19. .
  20. // S Rank Buff
  21. if (actor != null && actor.weapon != null)
  22. {
  23. actor_dmg += actor.s_rank_bonus(weapon); // this is applying the S rank bonus to attack
  24. if (actor.has_skill("MERCANTILE"))
  25. actor_dmg += actor.s_rank_bonus(weapon);
  26. }
  27. }
  28.  
  29. ##
Advertisement
Add Comment
Please, Sign In to add comment