Beispiel #1
0
 protected EffectBase(EnumBuffType buffType, int[] buffId, bool mainFlag, bool pureFlag, bool debuffFlag)
 {
     this.BuffType   = buffType;
     this.BuffId     = buffId;
     this.MainFlag   = mainFlag;
     this.PureFlag   = pureFlag;
     this.DebuffFlag = debuffFlag;
 }
Beispiel #2
0
        public Ability(string Name, EnumAbilityStrength abilityStrength, EnumElement element, EnumAbilityType abilityType, EnumTargets targets, EnumTargetModifier targetModifier, EnumDuration duration, EnumBuffType buffType)
        {
            this.Name = Name;
            this.abilityStrength = abilityStrength;
            this.element = element;
            this.abilityType = abilityType;
            this.targets = targets;
            this.targetModifier = targetModifier;
            this.duration = duration;
            this.RoundsLeft = (int)duration;
            this.buffType = buffType;

            Cost = (int)abilityStrength + 1 +
               (abilityType == EnumAbilityType.HEAL ? 2 : 1) +
               (int)targets + 1 +
               (targetModifier == EnumTargetModifier.RANDOM ? 1 : 2) +
               (int)duration;

            Damage = 10 * (int)abilityStrength;
        }
Beispiel #3
0
 protected BuffBase(ISkill skill, EnumBuffType buffType, int[] buffId)
 {
     this._skill    = skill;
     this._buffType = buffType;
     this._buffId   = buffId;
 }