mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-27 02:49:22 +00:00
More refactoring
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.willfp.ecoarmor.upgrades
|
||||
|
||||
import com.willfp.eco.core.EcoPlugin
|
||||
import com.willfp.eco.core.PluginDependent
|
||||
import com.willfp.eco.core.config.interfaces.Config
|
||||
import com.willfp.eco.core.display.Display
|
||||
import com.willfp.eco.core.items.CustomItem
|
||||
@@ -18,7 +17,7 @@ import java.util.*
|
||||
class Tier(
|
||||
private val config: Config,
|
||||
plugin: EcoPlugin
|
||||
) : PluginDependent<EcoPlugin?>(plugin) {
|
||||
) {
|
||||
/**
|
||||
* The tier name.
|
||||
*/
|
||||
@@ -135,9 +134,6 @@ class Tier(
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (this === other) {
|
||||
return true
|
||||
}
|
||||
if (other !is Tier) {
|
||||
return false
|
||||
}
|
||||
@@ -147,4 +143,14 @@ class Tier(
|
||||
override fun hashCode(): Int {
|
||||
return Objects.hash(this.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data class TierProperties(
|
||||
val armor: Int,
|
||||
val toughness: Int,
|
||||
val knockback: Int,
|
||||
val speed: Int,
|
||||
val attackSpeed: Int,
|
||||
val attackDamage: Int,
|
||||
val attackKnockback: Int
|
||||
)
|
||||
@@ -1,11 +0,0 @@
|
||||
package com.willfp.ecoarmor.upgrades
|
||||
|
||||
data class TierProperties(
|
||||
val armor: Int,
|
||||
val toughness: Int,
|
||||
val knockback: Int,
|
||||
val speed: Int,
|
||||
val attackSpeed: Int,
|
||||
val attackDamage: Int,
|
||||
val attackKnockback: Int
|
||||
)
|
||||
@@ -16,6 +16,7 @@ object Tiers {
|
||||
/**
|
||||
* Default tier.
|
||||
*/
|
||||
@JvmStatic
|
||||
lateinit var defaultTier: Tier
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user