AbilityCost

data class AbilityCost(val mana: Int = 0, val health: Int = 0, val cooldown: Number = 0, val summonDifficulty: Int = 0)(source)

Cost of the ability in mana, health and cooldown

Constructors

Link copied to clipboard
constructor(mana: Int = 0, health: Int = 0, cooldown: Number = 0, summonDifficulty: Int = 0)

Functions

Link copied to clipboard
fun buildLore(lore: MutableList<Component>)

Builds this cost lore and inserts it into the provided lore list

Link copied to clipboard
fun ensureRequirements(player: MacrocosmPlayer, ability: Identifier, silent: Boolean = false): Boolean

Ensures that the provided player has requirements to use the ability.

Properties

Link copied to clipboard
val cooldown: Number = 0

Cooldown to wait in seconds

Link copied to clipboard
val health: Int = 0

Required health

Link copied to clipboard
val mana: Int = 0

Required mana

Link copied to clipboard

Amount of summon slots taken by each summon