public Buff(ConsumedAttributeName attr, BuffType type, float value) { this.attr3 = attr; this.type = type; attributeType = 3; valueOverLayer = new List <float>() { value }; }
public BuffSkill(SkillName skillName, float baseDamage, float effectDamage, int buffedDamage, int baseCostValue, int buffedCostValue, ConsumedAttributeName costType, float skillCoolDown, float buffTime, Buff[] buffs, bool stackable = false) : base(skillName, baseDamage, effectDamage, buffedDamage, baseCostValue, buffedCostValue, costType, skillCoolDown) { this.buffTime = buffTime; this.buffs = buffs; this.BuffIcon = ResourceLoader.Skill.GetIcon(skillName); this.Stackable = stackable; this.stackLayer = 0; }
public BaseSkill(SkillName skillName, float baseDamage, float effectDamage, int buffedDamage, int baseCostValue, int buffedCostValue, ConsumedAttributeName costType, float skillCoolDown, float castTime = 0) { this.skillName = skillName; this.baseDamage = baseDamage; this.effectDamage = effectDamage; this.buffedDamage = buffedDamage; this.baseCostValue = baseCostValue; this.buffedCostValue = buffedCostValue; this.costType = costType; this.SkillCoolDown = skillCoolDown; this.CastTime = castTime; this.effect = ResourceLoader.Skill.GetSkillPrefab(skillName); CooldownLeft = 0; skillEffect = effect.GetComponent <SkillEffect>(); }
protected virtual AttributeModifier GetConsumedAttributeModifier(ConsumedAttributeName attrName) { AttributeModifier modifier = new AttributeModifier(); switch (attrName) { case ConsumedAttributeName.Health: modifier.AddRatio(GetPrimaryAttrubute(PrimaryAttributeName.Constitution), 20f); break; case ConsumedAttributeName.Mana: modifier.AddRatio(GetPrimaryAttrubute(PrimaryAttributeName.Wisdom), 20f); break; case ConsumedAttributeName.Energy: modifier.AddRatio(GetPrimaryAttrubute(PrimaryAttributeName.Agility), 20f); break; default: break; } return(modifier); }
public ConsumedAttribute(ConsumedAttributeName name, int value, int buffedValue, int exp, int expToLevelUp, AttributeModifier attrModifier, int curValue) : base(name.ToString(), value, buffedValue, exp, expToLevelUp, attrModifier) { this.name = name; this.CurValue = curValue; }
public ConsumedAttribute(ConsumedAttributeName name, AttributeModifier attrModifier) : base(name.ToString(), attrModifier) { this.name = name; this.CurValue = AdjustedValue; }
public ConsumedAttribute GetConsumedAttrubute(ConsumedAttributeName name) { return(conAttributes[(int)name]); }
public ConsumedStatusBuff(ConsumedAttributeName attr, BuffType type, float value, float onceValue, float ofTimeValue, float timePerTick) : base(attr, type, value) { this.ofTimeValue = ofTimeValue; this.onceValue = onceValue; this.timePerTick = timePerTick; }