Skip to content

Class: ShieldEffect ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
  • Inheritance / Derived: BasicEffect
csharp
public class ShieldEffect : BasicEffect

Fields ​

NameDeclarationDescription
onAmountModifiedpublic Action<float, float> onAmountModifiedCalled when the amount of this shield is modified by any means. In code, by damage, etc.
onDamageNegatedpublic SafeAction<EventInfoDamageNegatedByShield> onDamageNegatedCalled when this shield negates a damage. Partially or completely.

Properties ​

NameDeclarationDescription
amountpublic float amount { get; set; }
maskpublic override BasicEffectMask mask { get; }

Methods ​

AddAmount(float, float, bool) ​

This will process, add the amount to the effect, and invoke relevant effects.

csharp
public void AddAmount(float originalAmount, float totalMax = Infinity, bool processTotalMax = true)

Parameters:

NameTypeDescription
originalAmountfloat
totalMaxfloat
processTotalMaxbool

Maintained by the Shape of Dreams Modding Community