Skip to content

Ability

André Steenhoff Madsen edited this page Oct 22, 2023 · 4 revisions

Ability

Contains a number properties to setup limitation as to when they can be used, and what they do.

Properties

  • ElementId

    • A uniquely named id for the Ability as a string.
    • Used to bind different references to one another.
  • UsesDeityLevel

    • Is a Boolean.
    • Uses the Deity of the Tower for the Level Requirement, otherwise uses the towers Level.
    • Is only callable if 'IsTowerAbility' is true.
  • LevelRequirement

    • The Level requirement for the ability to be active.
    • Is saved as an Int.
    • Is only callable if 'IsTowerAbility' is true.
  • DifficultyRequirement

    • The Difficulty required of the Monster for the ability to be active.
    • Is saved as an Enum
    • Is only callable if 'IsMonsterAbility' is true.
  • Tower

    • The Tower that this ability is for.
    • Is a reference to the Tower.
    • Is null if 'IsMonsterAbility' is true.
  • Monster

    • The Monster that this ability is for.
    • Is a reference to the Monster.
    • Is null if 'IsTowerAbility' is true.
  • IsTowerAbility

    • Is a Readonly Boolean.
    • Used to determine if this ability is for a Tower or not.
    • Cannot be true if 'IsMonsterAbility' is true.
  • IsMonsterAbility

    • Is a Readonly Boolean.
    • Used to determine if this ability is for a Monster or not.
    • Cannot be true if 'IsTowerAbility' is true.
  • Boons

    • Is always empty if 'IsMonsterAbility' is true.
    • Is a list of Boons required for Ability to be active on assosiated tower.
  • RequireBoons

  • Is a Readonly Boolean.

  • Simply tells if 'Boons' list is empty or not.

  • Is always false, if 'IsMonsterAbility' is true

Clone this wiki locally