Beispiel #1
0
        /// <summary>
        /// The min/max damage that an ability can inflict.
        /// </summary>
        /// <returns></returns>
        public AbilityBuilder abilityStrength()
        {
            _abilityStrength = new AbilityStrength();

            if (_metaType == MetaType.DAMAGE || _metaType == MetaType.HEALING)
            {
                _abilityStrength.min = jsonNode[_potencyProperty][_skillLevel][0].AsInt;
                _abilityStrength.max = jsonNode[_potencyProperty][_skillLevel][1].AsInt;
            }
            return(this);
        }
Beispiel #2
0
 public Ability(int id, int[] typeIds, string name, string tooltip, int cooldown,
                int statusEffect, AbilityStrength abilityStrength, Renderable assetData)
 {
     this.id              = id;
     this.typeIds         = typeIds;
     this.name            = name;
     this.tooltip         = tooltip;
     this.cooldown        = cooldown;
     this.abilityStrength = abilityStrength;
     this.assetData       = assetData;
     this.isOnCooldown    = false;
     this.statusEffect    = statusEffect;
     this.lastTurnUsed    = -1;
     this.cooldownTracker = cooldown;
     setTargetingType();
 }