public override Item CreateItemFromData() { AbilityGem mItem = base.CreateItemFromData() as AbilityGem; mItem.baseEffectValue = baseEffectValue; return(mItem); }
public void SetNewAbility(AbilityGem gem, AbilityCooldownDisplay slot) { if (gem == null) { slot.SetAbility(null); return; } Ability abilityInstance = InstanciateAbility(gem.ability); slot.SetAbility(abilityInstance); abilityInstance.baseEffectValue = gem.baseEffectValue; abilityInstance.range = gem.ability.range; if (animator == null) { animator = GetComponentInChildren <Animator>(); } AnimationHandler.OverrideAnimations(animator, gem.ability.animationClip, "Cast" + slot.index); }
public ASaveData(Item item) : base(item) { AbilityGem abilityGem = item as AbilityGem; baseEffectValue = abilityGem.baseEffectValue; }