Class CurseStatusEffect
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
CurseStatusEffect
Assembly: Dew.Core.dll
Syntax
[SaveActor(true)]
public class CurseStatusEffect : StatusEffect, ILogicUpdate, ICleanup, ICustomDestroyRoutine
Fields
availableStrengths
Declaration
[BoxGroup("Curse Settings", true, false, 0)]
public HatredStrengthType availableStrengths
Field Value
chanceWeight
Declaration
[BoxGroup("Curse Settings", true, false, 0)]
public float chanceWeight
Field Value
CurseEvent_OnProgressChanged
Declaration
public Action CurseEvent_OnProgressChanged
Field Value
| Type |
Description |
| System.Action |
|
dontRemoveOnKnockOut
Declaration
[NonSerialized]
[SaveVar(SaveVarFlags.Default)]
public bool dontRemoveOnKnockOut
Field Value
quest
Declaration
[NonSerialized]
[SaveVar(SaveVarFlags.Default)]
public Quest_KillToLiftCurse quest
Field Value
| Type |
Description |
| Quest_KillToLiftCurse |
|
Properties
currentProgress
Declaration
[SaveVar(SaveVarFlags.Default)]
public int currentProgress { get; set; }
Property Value
currentStrength
Declaration
[SaveVar(SaveVarFlags.Default)]
public HatredStrengthType currentStrength { get; set; }
Property Value
disableEndNotification
Declaration
public bool disableEndNotification { get; set; }
Property Value
disableStartNotification
Declaration
public bool disableStartNotification { get; set; }
Property Value
progressType
Declaration
[SaveVar(SaveVarFlags.Default)]
public QuestProgressType progressType { get; set; }
Property Value
requiredAmount
Declaration
[SaveVar(SaveVarFlags.Default)]
public int requiredAmount { get; set; }
Property Value
Methods
GetName()
Declaration
Returns
GetValue<T>(T[])
Declaration
public T GetValue<T>(T[] arr)
Parameters
| Type |
Name |
Description |
| T[] |
arr |
|
Returns
Type Parameters
IsViable(Entity)
Is this curse viable on this entity? Checked on server, on prefab CurseStatusEffect.
If this returns false, this curse will not be chosen.
Declaration
public virtual bool IsViable(Entity target)
Parameters
| Type |
Name |
Description |
| Entity |
target |
|
Returns
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroyActor()
Declaration
protected override void OnDestroyActor()
Overrides
OnPrepare()
Declaration
protected override void OnPrepare()
Overrides
Implements
Extension Methods