Ejemplo n.º 1
0
        public override void RestoreSkillChanges(SkillSet set, ActiveSkill melee)
        {
            ChargeSkill skill = set.GetSkill(SkillId.ChargeSkill) as ChargeSkill;

            if (skill == null)
            {
                return;
            }

            skill.uses -= 1;;
        }
Ejemplo n.º 2
0
        public override void ApplySkillChanges(SkillSet set, ActiveSkill melee)
        {
            ChargeSkill skill = set.GetSkill(SkillId.ChargeSkill) as ChargeSkill;

            if (skill == null)
            {
                return;
            }

            skill.resetSkillSlotId   = 0;
            skill.resetSkillMaxReuse = 10;
        }
Ejemplo n.º 3
0
        public override SkillEffect[] CreateAdditionalSkillEffects(Skill sk, SkillEffect[] effects)
        {
            if (sk.GetSkillId() == SkillId.ChargeSkill)
            {
                ChargeSkill   dg         = sk as ChargeSkill;
                SkillEffect[] newEffects = new SkillEffect[1];
                newEffects[0] = new EffectDash(0.3f, 0);

                return(newEffects);
            }

            return(null);
        }
Ejemplo n.º 4
0
    public override PlayerSkill Clone(GameObject target)
    {
        ChargeSkill other = target.AddComponent <ChargeSkill>();

        other.DistanceThreshold      = DistanceThreshold;
        other.MaxChargeSpeed         = MaxChargeSpeed;
        other.Acceleration           = Acceleration;
        other.Friction               = Friction;
        other.TurnSpeed              = TurnSpeed;
        other.CrashSpeedThreshold    = CrashSpeedThreshold;
        other.GlancingAngleThreshold = GlancingAngleThreshold;
        other.RecoilElasticity       = RecoilElasticity;

        return(other);
    }