UltimateEnchantment

open class UltimateEnchantment(val name: String, description: String, val levels: IntRange, val applicable: List<ItemType>, baseStats: Statistics = Statistics.zero(), baseSpecials: SpecialStatistics = SpecialStatistics(), multiplier: Float = 1.0f, conflicts: List<String> = listOf()) : EnchantmentBase(source)

An ultimate enchantment. In implementation details differs from SimpleEnchantment only by having light purple bold name. All the other logic is hard coded inside the MacrocosmItem

Parameters

name

name of the enchantment

description

description of the enchantment

levels

possible levels of the enchantment

applicable

item types this enchantment is applicable to

baseStats

base statistics that this enchantment applies, excluding the level modifier

baseSpecials

base special statistics that this enchantment applies, excluding the level modifier

multiplier

the multiplier that is applied each level

conflicts

IDs of enchantments this enchantment conflicts with

Inheritors

Constructors

Link copied to clipboard
constructor(name: String, description: String, levels: IntRange, applicable: List<ItemType>, baseStats: Statistics = Statistics.zero(), baseSpecials: SpecialStatistics = SpecialStatistics(), multiplier: Float = 1.0f, conflicts: List<String> = listOf())

Functions

Link copied to clipboard
open override fun description(level: Int): List<Component>

Provides description for this enchantment

Link copied to clipboard
open fun displayFancy(lore: MutableList<Component>, level: Int)

Adds a fancy display of this enchantment to lore

Link copied to clipboard
open override fun displaySimple(level: Int): Component

Construts a simple display of this enchantment

Link copied to clipboard
open override fun special(level: Int): SpecialStatistics

Special stats this enchantment modifies

Link copied to clipboard
open override fun stats(level: Int, player: MacrocosmPlayer?): Statistics

Stats this enchantment modifies

Properties

Link copied to clipboard
open override val applicable: List<ItemType>

Items this enchantment can be applicable to

Link copied to clipboard
open override val conflicts: List<Identifier>

IDs of enchantments this enchantment conflicts with

Link copied to clipboard
open override val levels: IntRange

Possible levels that this enchantment may be applicable to

Link copied to clipboard
open override val name: String

Display name of the enchantment