Skip to content

Class: Summon ​

csharp
public class Summon : Entity, ILogicUpdate, ICleanup, ICustomDestroyRoutine

Fields ​

NameDeclarationDescription
armor`[BoxGroup("Summon Settings", true, false, 0)]
public ScalingValue armor`
maxDuration`[BoxGroup("Summon Settings", true, false, 0)]
public float maxDuration`
tvDefaultAllExceptSelfprotected AbilityTargetValidatorWrapper tvDefaultAllExceptSelf
tvDefaultHarmfulEffectTargetsprotected AbilityTargetValidatorWrapper tvDefaultHarmfulEffectTargets
tvDefaultUsefulEffectTargetsprotected AbilityTargetValidatorWrapper tvDefaultUsefulEffectTargets

Properties ​

NameDeclarationDescription
effectiveLevelpublic int effectiveLevel { get; }
heropublic Hero hero { get; }
infopublic CastInfo info { get; set; }
isDestroyedOnRoomChangepublic override bool isDestroyedOnRoomChange { get; }
normalizedRemainingDurationpublic float normalizedRemainingDuration { get; }
skillLevelpublic int skillLevel { get; set; }Level of its origin skill trigger at the time this instance was cast. Defaults to -1 or that of parent's level.Parent type can either be SkillTrigger, AbilityInstance, or Gem.You can override level by setting this field when the instance is preparing.
statEntitypublic Entity statEntity { get; }
summonHealthpublic float summonHealth { get; }

Methods ​

ActiveLogicUpdate(float) ​

csharp
protected override void ActiveLogicUpdate(float dt)

Parameters:

NameTypeDescription
dtfloat

AddDuration(float, bool) ​

csharp
public void AddDuration(float duration, bool clampToMaxDuration = true)

Parameters:

NameTypeDescription
durationfloat
clampToMaxDurationbool

AIUpdate(ref EntityAIContext) ​

csharp
protected override void AIUpdate(ref EntityAIContext context)

Parameters:

NameTypeDescription
contextEntityAIContext

CanAggroTo(Entity) ​

csharp
public override bool CanAggroTo(Entity target)

Parameters:

NameTypeDescription
targetEntity

Returns: bool

CreateDamage(SourceType, ScalingValue, float) ​

csharp
public DamageData CreateDamage(DamageData.SourceType type, ScalingValue value, float procCoefficient = 1)

Parameters:

NameTypeDescription
typeDamageData.SourceType
valueScalingValue
procCoefficientfloat

Returns: DamageData

Damage(ScalingValue, float) ​

csharp
public DamageData Damage(ScalingValue value, float procCoefficient = 1)

Parameters:

NameTypeDescription
valueScalingValue
procCoefficientfloat

Returns: DamageData

DefaultDamage(ScalingValue, float) ​

csharp
public DamageData DefaultDamage(ScalingValue value, float procCoefficient = 1)

Parameters:

NameTypeDescription
valueScalingValue
procCoefficientfloat

Returns: DamageData

GetStaggerSettings() ​

csharp
protected override Entity.StaggerSettings GetStaggerSettings()

Returns: Entity.StaggerSettings

GetValue(ScalingValue) ​

csharp
public float GetValue(ScalingValue val)

Parameters:

NameTypeDescription
valScalingValue

Returns: float

Heal(ScalingValue) ​

csharp
public HealData Heal(ScalingValue amount)

Parameters:

NameTypeDescription
amountScalingValue

Returns: HealData

MagicDamage(ScalingValue, float) ​

csharp
public DamageData MagicDamage(ScalingValue value, float procCoefficient = 1)

Parameters:

NameTypeDescription
valueScalingValue
procCoefficientfloat

Returns: DamageData

OnCreate() ​

csharp
protected override void OnCreate()

OnDestroyActor() ​

csharp
protected override void OnDestroyActor()

OnPrepare() ​

Called on server right before this instance to be spawned.Configure this instance's initial state here.By default this sets skillLevel to parent's level.Parent type can either be SkillTrigger, AbilityInstance, or Gem.

csharp
protected override void OnPrepare()

OnStart() ​

csharp
public override void OnStart()

PhysicalDamage(ScalingValue, float) ​

csharp
public DamageData PhysicalDamage(ScalingValue value, float procCoefficient = 1)

Parameters:

NameTypeDescription
valueScalingValue
procCoefficientfloat

Returns: DamageData

PhysicalMagicDamage(ScalingValue, float) ​

csharp
public DamageData PhysicalMagicDamage(ScalingValue value, float procCoefficient = 1)

Parameters:

NameTypeDescription
valueScalingValue
procCoefficientfloat

Returns: DamageData

PureDamage(ScalingValue, float) ​

csharp
public DamageData PureDamage(ScalingValue value, float procCoefficient = 1)

Parameters:

NameTypeDescription
valueScalingValue
procCoefficientfloat

Returns: DamageData

ReduceDuration(float, bool) ​

csharp
public void ReduceDuration(float duration, bool clampToMaxDuration = true)

Parameters:

NameTypeDescription
durationfloat
clampToMaxDurationbool

SummonCommand_AttackTarget(Entity) ​

csharp
public void SummonCommand_AttackTarget(Entity target)

Parameters:

NameTypeDescription
targetEntity

SummonCommand_MoveToDestination(Vector3) ​

csharp
public void SummonCommand_MoveToDestination(Vector3 destination)

Parameters:

NameTypeDescription
destinationUnityEngine.Vector3

Maintained by the Shape of Dreams Modding Community