Dancer_A

Team specific buff

Jul 12th, 2023
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1. // Game_Unit.cs
  2.  
  3. // ~line 5153
  4.         public bool is_matching_team(Game_Unit unit)
  5.         {
  6.             return (this.team == unit.team);
  7.         }
  8.  
  9. // Game_Unit_Skill.cs
  10.         internal void hit_skill(ref int n, ref int weapon_hit, ref int actor_hit,
  11.             Data_Weapon weapon, Game_Unit target, bool magic, WeaponTriangle tri, int? distance)
  12.         {
  13.         .
  14.         .
  15.         .
  16.             // Skills: Prestige
  17.             if (Global.scene.is_map_scene && !nihil(target) && !Global.game_map.is_off_map(Loc))
  18.                 foreach (int id in units_in_range(3))
  19.                 {
  20.                     Game_Unit unit = Global.game_map.units[id];
  21.                     if (unit.actor.has_skill("RALLY") && is_matching_team(unit))
  22.                     {
  23.                         n += 10;
  24.                         break;
  25.                     }
  26.                 }
  27.         }
Advertisement
Add Comment
Please, Sign In to add comment