Example #1
0
        public void UpdateSkill(SkillJson skill)
        {
            Level first = skill.Levels.First();
            Level last  = skill.Levels.Last();

            SkillName        = first.Name;
            SkillDescription = ArknightUtil.ReplaceSkillDesc(skill.Levels.First().Description, first.Blackboard, last.Blackboard);
            SkillType        = first.SkillType;
            SpType           = first.SpData.SpType;
            ChargeTime       = first.SpData.MaxChargeTime;
            MaxChargeTime    = last.SpData.MaxChargeTime;
            SpCost           = first.SpData.SpCost;
            MaxSpCost        = last.SpData.SpCost;
            Increment        = first.SpData.Increment;
            Duration         = first.Duration;
            MaxDuration      = last.Duration;
            RangeId          = first.RangeId;
        }