9
0
mirror of https://github.com/Auxilor/EcoArmor.git synced 2025-12-27 02:49:22 +00:00

More refactoring

This commit is contained in:
Auxilor
2021-12-17 15:58:28 +00:00
parent b08ae44ad9
commit df6bd465b8
3 changed files with 13 additions and 17 deletions

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -16,6 +16,7 @@ object Tiers {
/**
* Default tier.
*/
@JvmStatic
lateinit var defaultTier: Tier
/**