Exemplo n.º 1
0
 protected virtual void XLDPoison(DamageData damageData)
 {
     if (!damageData.PoisonFrom)
     {
         if (Random.Range(0, 1f) < damageData.PoisonRatio)
         {
             Poisoned.NhiemDoc(this, damageData.PoisonTime);
         }
     }
     else
     {
         damageData.Damage = (int)Mathf.Clamp(Poisoned.TILE * MaxHP, Poisoned.MIN_DAMAGE, Poisoned.MAX_DAMAGE);
     }
 }
Exemplo n.º 2
0
 protected override void XLDPoison(DamageData damageData)
 {
     if (!damageData.PoisonFrom)
     {
         if (Random.Range(0, 1f) < damageData.PoisonRatio)
         {
             Poisoned.NhiemDoc(this, damageData.PoisonTime);
         }
     }
     else
     {
         damageData.Damage = 2;
     }
 }