Class SkillTrigger
Represents memories / skills / abilities for travelers, specifically "buttons" that trigger spawning of instances.
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
SkillTrigger
Assembly: Dew.Core.dll
Syntax
public class SkillTrigger : AbilityTrigger, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IInteractable, IItem, IExcludeFromPool
Fields
ClientEvent_OnHandOwnerChanged
Declaration
public SafeAction<Hero, Hero> ClientEvent_OnHandOwnerChanged
Field Value
ClientEvent_OnTempOwnerChanged
Declaration
public SafeAction<DewPlayer, DewPlayer> ClientEvent_OnTempOwnerChanged
Field Value
ClientSkillEvent_OnDismantleProgressChanged
Called everywhere when dismantle progress changes.
Declaration
public SafeAction<float, float> ClientSkillEvent_OnDismantleProgressChanged
Field Value
ClientSkillEvent_OnLevelChange
Declaration
public SafeAction<int, int> ClientSkillEvent_OnLevelChange
Field Value
customSkillHastePerLevel
Declaration
[BoxGroup("Skill Settings", true, false, 0)]
[LabelText("Skill Haste Per Level")]
[ShowIf("useCustomSkillHastePerLevel", true)]
public float customSkillHastePerLevel
Field Value
DisableHeroTypeCheckOnIdentityMemories
Declaration
public static bool DisableHeroTypeCheckOnIdentityMemories
Field Value
DismantleDecayStartTime
Declaration
public const float DismantleDecayStartTime = 1
Field Value
DismantleTapMinInterval
Declaration
public const float DismantleTapMinInterval = 0.075
Field Value
DismantleTapStrength
Declaration
public const float DismantleTapStrength = 0.4
Field Value
endEffect
Declaration
[LabelText("End Effect (Attached)")]
[BoxGroup("Skill Settings", true, false, 0)]
public GameObject endEffect
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
excludeFromPool
Declaration
[BoxGroup("Skill Settings", true, false, 0)]
public bool excludeFromPool
Field Value
isLevelUpEnabled
Declaration
[BoxGroup("Skill Settings", true, false, 0)]
public bool isLevelUpEnabled
Field Value
rarity
Declaration
[BoxGroup("Skill Settings", true, false, 0)]
public Rarity rarity
Field Value
showFillAmountOnScreen
Declaration
[BoxGroup("Skill Settings", true, false, 0)]
public bool showFillAmountOnScreen
Field Value
startEffect
Declaration
[LabelText("Start Effect (Attached)")]
[BoxGroup("Skill Settings", true, false, 0)]
public GameObject startEffect
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
statBonus
Declaration
[NonSerialized]
public StatBonus statBonus
Field Value
Declaration
[BoxGroup("Skill Settings", true, false, 0)]
public DescriptionTags tags
Field Value
type
Declaration
[BoxGroup("Skill Settings", true, false, 0)]
public SkillType type
Field Value
Ult_GlobalChargeMultiplier
Declaration
public const float Ult_GlobalChargeMultiplier = 0.85
Field Value
Ult_OnKillBoss
Declaration
public const float Ult_OnKillBoss = 42.5
Field Value
Ult_OnKillLesser
Declaration
public const float Ult_OnKillLesser = 0.12750001
Field Value
Ult_OnKillMiniBoss
Declaration
public const float Ult_OnKillMiniBoss = 12.75
Field Value
Ult_OnKillNormal
Declaration
public const float Ult_OnKillNormal = 0.63750005
Field Value
Ult_PerDealtAttack
Declaration
public const float Ult_PerDealtAttack = 0.2125
Field Value
Ult_PerDealtDamageBossEnemyHealthRatio
Declaration
public const float Ult_PerDealtDamageBossEnemyHealthRatio = 25.5
Field Value
Ult_PerDealtDamageLesserEnemyHealthRatio
Declaration
public const float Ult_PerDealtDamageLesserEnemyHealthRatio = 0.12750001
Field Value
Ult_PerDealtDamageMiniBossEnemyHealthRatio
Declaration
public const float Ult_PerDealtDamageMiniBossEnemyHealthRatio = 12.75
Field Value
Ult_PerDealtDamageNormalEnemyHealthRatio
Declaration
public const float Ult_PerDealtDamageNormalEnemyHealthRatio = 0.25500003
Field Value
Ult_PerDealtElementalDamage
Declaration
public const float Ult_PerDealtElementalDamage = 0.0425
Field Value
Ult_PerDealtNonElementalDamage
Declaration
public const float Ult_PerDealtNonElementalDamage = 0.2125
Field Value
Ult_PerTakenDamageMyHealthRatio
Declaration
public const float Ult_PerTakenDamageMyHealthRatio = 25.5
Field Value
Ult_PerTakenElementalDamage
Declaration
public const float Ult_PerTakenElementalDamage = 0.0425
Field Value
Ult_PerTakenNonElementalDamage
Declaration
public const float Ult_PerTakenNonElementalDamage = 0.2125
Field Value
useCustomSkillHastePerLevel
Declaration
[BoxGroup("Skill Settings", true, false, 0)]
public bool useCustomSkillHastePerLevel
Field Value
Properties
canInteractWithMouse
Declaration
public bool canInteractWithMouse { get; }
Property Value
characterSkillOwner
Declaration
[SaveVar(SaveVarFlags.Default)]
public string characterSkillOwner { get; set; }
Property Value
dismantleProgress
Declaration
public float dismantleProgress { get; }
Property Value
effectiveLevel
Declaration
public int effectiveLevel { get; }
Property Value
focusDistance
Declaration
public float focusDistance { get; }
Property Value
handOwner
Declaration
public Hero handOwner { get; set; }
Property Value
interactPivot
Declaration
public Transform interactPivot { get; }
Property Value
| Type |
Description |
| UnityEngine.Transform |
|
isAnimatingEmbraceNewIdentity
Declaration
public bool isAnimatingEmbraceNewIdentity { get; set; }
Property Value
isCharacterSkill
Declaration
public bool isCharacterSkill { get; }
Property Value
isLocked
Is this skill locked for local player?
Declaration
public bool isLocked { get; }
Property Value
level
Declaration
[SaveVar(SaveVarFlags.Default)]
public int level { get; set; }
Property Value
mainConfigOriginalCharge
Declaration
public int mainConfigOriginalCharge { get; }
Property Value
maxSellGold
Declaration
public int maxSellGold { get; set; }
Property Value
owner
Declaration
public Hero owner { get; }
Property Value
sbCooldownMultiplier
Declaration
public float sbCooldownMultiplier { get; }
Property Value
sbCooldownMultiplierIgnoreReceiveCooldownReductionFlag
Declaration
public float sbCooldownMultiplierIgnoreReceiveCooldownReductionFlag { get; }
Property Value
sbCooldownOffset
Declaration
public float sbCooldownOffset { get; }
Property Value
sbCooldownOffsetIgnoreReceiveCooldownReductionFlag
Declaration
public float sbCooldownOffsetIgnoreReceiveCooldownReductionFlag { get; }
Property Value
skillHastePerLevel
Declaration
public float skillHastePerLevel { get; }
Property Value
skillType
Location of this skill trigger if equipped.
Declaration
public HeroSkillLocation skillType { get; }
Property Value
skipStartAnimation
Declaration
public bool skipStartAnimation { get; set; }
Property Value
specialOverlayColor
Declaration
public Color specialOverlayColor { get; set; }
Property Value
| Type |
Description |
| UnityEngine.Color |
|
statEntity
Declaration
public Entity statEntity { get; }
Property Value
tempOwner
Declaration
public DewPlayer tempOwner { get; set; }
Property Value
worldModel
Declaration
public ItemWorldModel worldModel { get; }
Property Value
| Type |
Description |
| ItemWorldModel |
|
Methods
AddSkillBonus(SkillBonus)
Declaration
public SkillBonus AddSkillBonus(SkillBonus bonus)
Parameters
Returns
Awake()
Declaration
protected override void Awake()
Overrides
CanInteract(Entity)
Declaration
public bool CanInteract(Entity entity)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
Returns
CreateDamage(SourceType, ScalingValue, float)
Declaration
public DamageData CreateDamage(DamageData.SourceType type, ScalingValue value, float procCoefficient = 1)
Parameters
Returns
Damage(ScalingValue, float)
Declaration
public DamageData Damage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
DefaultDamage(ScalingValue, float)
Declaration
public DamageData DefaultDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
DismantleSkill()
Declaration
public void DismantleSkill()
GetActorReadableName()
Declaration
public override string GetActorReadableName()
Returns
Overrides
GetBuyGold()
Declaration
Returns
GetBuyGold(Rarity, int)
Declaration
public static int GetBuyGold(Rarity rarity, int level)
Parameters
| Type |
Name |
Description |
| Rarity |
rarity |
|
| int |
level |
|
Returns
GetCooldownTimeMultiplier(int)
Declaration
public override float GetCooldownTimeMultiplier(int configIndex)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
Returns
Overrides
GetCooldownTimeOffset(int)
Declaration
public override float GetCooldownTimeOffset(int configIndex)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
Returns
Overrides
GetCooldownTimeOnLevel(int)
Declaration
public float GetCooldownTimeOnLevel(int lvl)
Parameters
| Type |
Name |
Description |
| int |
lvl |
|
Returns
GetDismantleAmount(DewPlayer)
Declaration
public int GetDismantleAmount(DewPlayer player)
Parameters
Returns
Declaration
public string GetFormattedSkillTitle()
Returns
GetGoldValue(Rarity, int)
Declaration
public static int GetGoldValue(Rarity rarity, int level)
Parameters
| Type |
Name |
Description |
| Rarity |
rarity |
|
| int |
level |
|
Returns
GetLoadoutHero()
Get a hero that contains this skill in their loadout.
Returns null if this is not from a hero.
Note this can be an expensive operation to be calling every frame, since it will iterate through all hero types in the game.
Declaration
public Type GetLoadoutHero()
Returns
| Type |
Description |
| System.Type |
|
GetSellGold()
Declaration
Returns
GetSellGold(Rarity, int)
Declaration
public static int GetSellGold(Rarity rarity, int level)
Parameters
| Type |
Name |
Description |
| Rarity |
rarity |
|
| int |
level |
|
Returns
GetValue(ScalingValue)
Declaration
public float GetValue(ScalingValue val)
Parameters
Returns
Heal(ScalingValue)
Declaration
public HealData Heal(ScalingValue amount)
Parameters
Returns
IsLockedFor(DewPlayer)
Declaration
public bool IsLockedFor(DewPlayer player)
Parameters
Returns
LogicUpdate(float)
Declaration
public override void LogicUpdate(float dt)
Parameters
| Type |
Name |
Description |
| float |
dt |
|
Overrides
MagicDamage(ScalingValue, float)
Declaration
public DamageData MagicDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
OnCastComplete(int, CastInfo)
Declaration
public override AbilityInstance OnCastComplete(int configIndex, CastInfo info)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
| CastInfo |
info |
|
Returns
Overrides
OnEquip(Entity)
Declaration
protected override void OnEquip(Entity newOwner)
Parameters
| Type |
Name |
Description |
| Entity |
newOwner |
|
Overrides
OnLevelChange(int, int)
Called everywhere when this skill's level is changed.
Declaration
protected virtual void OnLevelChange(int oldLevel, int newLevel)
Parameters
| Type |
Name |
Description |
| int |
oldLevel |
|
| int |
newLevel |
|
OnPrepare()
Declaration
protected override void OnPrepare()
Overrides
OnStartClient()
Declaration
public override void OnStartClient()
Overrides
OnStartServer()
Declaration
public override void OnStartServer()
Overrides
OnUnequip(Entity)
Declaration
protected override void OnUnequip(Entity formerOwner)
Parameters
| Type |
Name |
Description |
| Entity |
formerOwner |
|
Overrides
PhysicalDamage(ScalingValue, float)
Declaration
public DamageData PhysicalDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
PhysicalMagicDamage(ScalingValue, float)
Declaration
public DamageData PhysicalMagicDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
PureDamage(ScalingValue, float)
Declaration
public DamageData PureDamage(ScalingValue value, float procCoefficient = 1)
Parameters
| Type |
Name |
Description |
| ScalingValue |
value |
|
| float |
procCoefficient |
|
Returns
RemoveSkillBonus(SkillBonus)
Declaration
public void RemoveSkillBonus(SkillBonus bonus)
Parameters
RpcSetPositionAndRotation(Vector3, Quaternion)
Declaration
public void RpcSetPositionAndRotation(Vector3 pos, Quaternion rot)
Parameters
| Type |
Name |
Description |
| UnityEngine.Vector3 |
pos |
|
| UnityEngine.Quaternion |
rot |
|
ShouldBeSavedWithRoom()
Declaration
public override bool ShouldBeSavedWithRoom()
Returns
Overrides
ShouldTickCooldown(int)
Declaration
protected override bool ShouldTickCooldown(int configIndex)
Parameters
| Type |
Name |
Description |
| int |
configIndex |
|
Returns
Overrides
UpdateSkillBonus()
Declaration
public void UpdateSkillBonus()
Explicit Interface Implementations
IExcludeFromPool.excludeFromPool
Declaration
bool IExcludeFromPool.excludeFromPool { get; }
Returns
IInteractable.OnInteract(Entity, bool)
Declaration
void IInteractable.OnInteract(Entity entity, bool alt)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
| bool |
alt |
|
IInteractable.priority
Declaration
int IInteractable.priority { get; }
Returns
IItem.rarity
Declaration
Rarity IItem.rarity { get; }
Returns
Implements
Extension Methods