Table of Contents

Class AbilityOnSummonEvent

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

An ability effect that belongs on a summon spell: it runs when the spell's pet arrives, and can teach that pet abilities.

[CreateAssetMenu(fileName = "New Ability On Summon Event", menuName = "FishMMO/Abilities/Events/Ability On Summon Event", order = 0)]
public class AbilityOnSummonEvent : AbilityEvent, ICachedObject, ITooltip
Inheritance
Object
ScriptableObject
AbilityOnSummonEvent
Implements
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Extension Methods

Remarks

The only effect a PetAbilityTemplate accepts, and one no other ability does (IsCompatibleWith(AbilityTemplate)). Crafted onto a summon, or bundled into one through OnSummonEvents, it does two things on the server once the pet has spawned:

The pet keeps what it was taught until it is dismissed or summoned fresh: the abilities are saved with the pet, so a pet restored at login still has them, and a new summon rebuilds the list from the spell as it stands then.

Fields

PetAbilities

Abilities the summoned pet learns when this effect is part of the summon spell.

[Tooltip("Abilities the summoned pet learns. Only works on summon spells. A summon spell cannot be taught to a pet.")]
public List<AbilityTemplate> PetAbilities

Field Value

List<AbilityTemplate>

Properties

HasEffectWithoutActions

Teaching abilities is an effect in its own right; a summon effect needs no actions.

protected override bool HasEffectWithoutActions { get; }

Property Value

bool

Methods

AppendEffectDescriptions(List<string>)

One line per ability the pet learns.

public override void AppendEffectDescriptions(List<string> into)

Parameters

into List<string>

The list to append to.

BuildTooltip(TooltipContent)

Describes the effect, and says where it can go: it is refused everywhere but a summon.

public override void BuildTooltip(TooltipContent content)

Parameters

content TooltipContent

The content being assembled.

IsCompatibleWith(AbilityTemplate)

Summon spells only: there is no pet for this effect to act on anywhere else.

public override bool IsCompatibleWith(AbilityTemplate template)

Parameters

template AbilityTemplate

The base ability the effect would be added to.

Returns

bool

True only for a PetAbilityTemplate.

OnValidate()

Flags a grant the server would skip: a summon spell cannot be taught to a pet.

protected override void OnValidate()