Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Momentum
- ## Game_Unit_Skills.cs
- // before start_attack_skills
- #region Start Attack Bools
- bool Momentum_Active = false;
- #endregion
- private void start_attack_skills(int attackIndex, Combat_Map_Object target)
- {
- if (attackIndex == -1)
- {
- // Momentum
- if (actor.has_skill("MOMENTUM") && Temp_Moved >= 1)
- Momentum_Active = true;
- }
- }
- private void end_battle_skills()
- {
- .
- .
- .
- Momentum_Active = false;
- }
- internal void dmg_skill(
- ref int skill_dmg, ref int weapon_dmg, ref int actor_dmg, ref int support_dmg,
- ref int target_def, Data_Weapon weapon,
- Game_Unit target, Data_Weapon target_weapon, WeaponTriangle tri, bool magic,
- int? distance, float effectiveness = 1)
- {
- .
- .
- .
- // Skill: Momentum
- if (target != null)
- if (actor.has_skill("MOMENTUM"))
- skill_dmg += Temp_Moved;
- }
Advertisement
Add Comment
Please, Sign In to add comment