コード例 #1
0
        public override SkillEffect[] CreateEffects(int param)
        {
            int count = 1;

            if (rangeBoost > 1 || rangeBoost < 1)
            {
                count++;
            }

            SkillEffect[] effects = new SkillEffect[count];
            int           index   = 0;

            effects[index++] = new EffectSkillReuse(1, 0.1f, duration, SkillTraits.Melee);
            if (rangeBoost > 1 || rangeBoost < 1)
            {
                effects[index++] = new EffectSkillRange(rangeBoost, duration, SkillTraits.Melee);
            }

            return(effects);
        }
コード例 #2
0
 public override SkillEffect[] CreateEffects(int param)
 {
     SkillEffect[] effects = new SkillEffect[1];
     effects[0] = new EffectSkillReuse(1, 0.1f, -1, SkillTraits.Melee).SetCountUses(count);
     return(effects);
 }