Class ShieldEffect
Inheritance
object
ShieldEffect
Assembly: Dew.Core.dll
Syntax
public class ShieldEffect : BasicEffect
Fields
onAmountModified
Called when the amount of this shield is modified by any means. In code, by damage, etc.
Declaration
public Action<float, float> onAmountModified
Field Value
| Type |
Description |
| System.Action<T1, T2><float, float> |
|
onDamageNegated
Called when this shield negates a damage. Partially or completely.
Declaration
public SafeAction<EventInfoDamageNegatedByShield> onDamageNegated
Field Value
Properties
amount
Declaration
public float amount { get; set; }
Property Value
mask
Declaration
public override BasicEffectMask mask { get; }
Property Value
Overrides
Methods
AddAmount(float, float, bool)
This will process, add the amount to the effect, and invoke relevant effects.
Declaration
public void AddAmount(float originalAmount, float totalMax = Infinity, bool processTotalMax = true)
Parameters
| Type |
Name |
Description |
| float |
originalAmount |
|
| float |
totalMax |
|
| bool |
processTotalMax |
|