Dancer_A

Momentum

Dec 13th, 2023
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. ## Momentum
  2.  
  3. ## Game_Unit_Skills.cs
  4.  
  5. // before start_attack_skills
  6. #region Start Attack Bools
  7. bool Momentum_Active = false;
  8. #endregion
  9.  
  10. private void start_attack_skills(int attackIndex, Combat_Map_Object target)
  11. {
  12. if (attackIndex == -1)
  13. {
  14. // Momentum
  15. if (actor.has_skill("MOMENTUM") && Temp_Moved >= 1)
  16. Momentum_Active = true;
  17. }
  18. }
  19.  
  20. private void end_battle_skills()
  21. {
  22. .
  23. .
  24. .
  25. Momentum_Active = false;
  26. }
  27.  
  28. internal void dmg_skill(
  29. ref int skill_dmg, ref int weapon_dmg, ref int actor_dmg, ref int support_dmg,
  30. ref int target_def, Data_Weapon weapon,
  31. Game_Unit target, Data_Weapon target_weapon, WeaponTriangle tri, bool magic,
  32. int? distance, float effectiveness = 1)
  33. {
  34. .
  35. .
  36. .
  37. // Skill: Momentum
  38. if (target != null)
  39. if (actor.has_skill("MOMENTUM"))
  40. skill_dmg += Temp_Moved;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment