Пример #1
0
 public float GetDamageMultiplier(HitboxArea hitbox)
 {
     foreach (var hb in DamagePercents)
     {
         if (hb.Area == hitbox)
         {
             return(hb.DamagePercent / 100f);
         }
     }
     return(1f);
 }
Пример #2
0
 public AreaDamageDefinition(HitboxArea area, int percent)
 {
     Area          = area;
     DamagePercent = percent;
 }