Vixen
caa30e12
csharp
public sealed class AbilityTemplate

An ability with its names resolved: the form a cast runs on.

Read the guide page for this →

Fields and properties (21)

  • public AbilityDefinition Definition

    What it was compiled from.

  • public DefId Id

    Its id.

  • public AbilityTargeting Targeting

    What it is aimed at.

  • public float CastTime

    How long it takes to cast, in seconds.

  • public bool IsChannel

    Whether it is a channel rather than a cast.

  • public float ChannelTime

    How long it channels for, in seconds, or zero.

  • public float ChannelPeriod

    How often a channel ticks, never below a hundredth of a second.

  • public float Cooldown

    How long before it can be used again, in seconds.

  • public int Charges

    How many uses it banks, never below one.

  • public bool TriggersGlobalCooldown

    Whether using it starts the caster's global cooldown.

  • public bool RespectsGlobalCooldown

    Whether the global cooldown stops it being used.

  • public float Range

    How far, in metres. Zero is unlimited.

  • public ReadOnlySpan<AbilityCost> Costs

    What it costs.

  • public RequirementSet Requirements

    What has to be true of the caster.

  • public ReadOnlySpan<GameplayTag> Tags

    What this ability is. What a silence blocks.

  • public GameplayTag School

    What kind of damage it does, or None.

  • public AttributeId ScalesWith

    Which of the caster's stats its damage scales with, or None.

  • public DamageDefinition? Damage

    What it does to what it hits, or null.

  • public ReadOnlySpan<EffectTemplate> AppliesToTarget

    The effects it puts on what it hits.

  • public ReadOnlySpan<EffectTemplate> AppliesToSelf

    The effects it puts on the caster.

  • public bool NeedsTarget

    Whether the caster needs something selected.

Methods (1)

  • public float BaseAmount(GameplaySubject? caster)

    What its damage is worth against a caster's stats, before the pipeline.

Used by (7)

  • CreatureMmo.Shared
  • CreatureLibraryMmo.Shared
  • AbilityCasterVixen.Gameplay.Combat
  • AbilityLibraryVixen.Gameplay.Combat
  • AbilityLibraryTestsVixen.Gameplay.Combat.Tests
  • CombatResolverVixen.Gameplay.Combat
  • DamageRuleTestsVixen.Gameplay.Combat.Tests