示例#1
0
        public static void UpdateAttackStepDamage(WeaponStats.AttackData[] attackData, float damageValue, DamageType.Types damageType)
        {
            Debug.Log("Udapting Attack Step Damage for each step. (" + damageType.ToString() + ")");
            var damageTypeAsInt = (int)damageType;

            //iterate each attack step in attack data
            for (int i = 0; i < attackData.Length; i++)
            {
                //Only update the damage for the given type
                var currentAttackStep = attackData[i];
                var oldValue          = currentAttackStep.Damage[damageTypeAsInt];
                var newValue          = oldValue + damageValue;
                Debug.Log("From " + oldValue + " To " + newValue);
                currentAttackStep.Damage[damageTypeAsInt] = newValue;
            }
        }
示例#2
0
 public override string GetId()
 {
     return(type.ToString() + "_essence");
 }
示例#3
0
 public override string GetId()
 {
     return(type.ToString() + "_wep_dmg");
 }
示例#4
0
 public override string GetId()
 {
     return(type.ToString() + "_ele_dmg_rare");
 }