public Damage(int rawAmount, DamageModifierEnum savingModifier, DamageAffinityEnum typeAffinity, DamageTypeEnum type)
 {
     RawAmount     = rawAmount;
     SavingModifer = savingModifier;
     TypeAffinity  = typeAffinity;
     Type          = type;
 }
Exemplo n.º 2
0
        private void applySavingModifier(ref int rawAmount, DamageModifierEnum modifier)
        {
            switch (modifier)
            {
            case DamageModifierEnum.Halved:
                rawAmount /= 2;
                break;

            case DamageModifierEnum.Canceled:
                rawAmount = 0;
                break;

            default:
                break;
            }
        }