private void DeliverHit() { Health component = target.GetComponent <Health>(); if ((bool)component) { target.Trigger(-787691065, properties.attacker.GetComponent <FactionAlignment>()); float num = rollDamage(); AttackableBase component2 = target.GetComponent <AttackableBase>(); num *= 1f + component2.GetDamageMultiplier(); component.Damage(num); if (properties.effects != null) { Effects component3 = target.GetComponent <Effects>(); if ((bool)component3) { foreach (AttackEffect effect in properties.effects) { if (Random.Range(0f, 100f) < effect.effectProbability * 100f) { component3.Add(effect.effectID, true); } } } } } }