Пример #1
0
        private Dictionary <SkillComponentTag, EffectData> SetSkillEffect(
            SkillNameTag skillNameTag)
        {
            Dictionary <SkillSlotTag, SkillComponentTag> slotComp
                = GetComponent <PCSkillManager>().GetSkillSlot(skillNameTag);
            Dictionary <SkillComponentTag, EffectData> compInt
                = new Dictionary <SkillComponentTag, EffectData>();

            foreach (SkillComponentTag sct in slotComp.Values)
            {
                if (compInt.TryGetValue(sct, out EffectData effectData))
                {
                    effectData.Power    += basePower;
                    effectData.Duration += baseDuration;
                }
                else
                {
                    compInt[sct] = new EffectData(basePower, baseDuration);
                }
            }
            return(compInt);
        }
Пример #2
0
 public string GetSkillEffectName(SkillComponentTag skillComponentTag,
                                  EffectData effectData)
 {
     return(GameCore.AxeManCore.GetComponent <ConvertSkillMetaInfo>()
            .GetSkillEffectName(skillComponentTag, effectData));
 }