Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // FE13 Defender
- // Modified to give +2 on the following turn as a decaying debuff
- // To mirror FE13 implementation, just mirror Deliverer for raw stats since it's just +1
- // Game_Unit_Skill.cs
- private void refresh_hp_skill(int damageTaken)
- {
- if (actor.has_skill("DEFENDER") && has_rescued())
- {
- set_stat_bonus(Buffs.Pow, 2);
- set_stat_bonus(Buffs.Skl, 2);
- set_stat_bonus(Buffs.Lck, 2);
- set_stat_bonus(Buffs.Spd, 2);
- set_stat_bonus(Buffs.Def, 2);
- set_stat_bonus(Buffs.Res, 2);
- }
- }
- // Game_Unit.cs
- public bool is_rescuing { get { return Rescuing > 0; } }
- private bool rescue_check = false;
- private bool pre_rescue_check = false;
- public bool has_rescued()
- {
- if (rescue_check)
- return pre_rescue_check;
- if (is_rescuing)
- rescue_check = true;
- return rescue_check;
- }
- // FE13 Deliverer
- // Game_Unit_Skill.cs
- private int mov_plus_skill()
- {
- if (actor.has_skill("DELIVERER") && is_rescuing)
- n += 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement