From c964f15dca412edd284d600721fa025b0924dba3 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 8 Oct 2021 19:22:38 +0100 Subject: [PATCH] Moved stat names into config.yml --- .../main/kotlin/com/willfp/ecoskills/stats/Stat.kt | 2 +- eco-core/core-plugin/src/main/resources/config.yml | 7 +++++++ eco-core/core-plugin/src/main/resources/lang.yml | 14 -------------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/stats/Stat.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/stats/Stat.kt index 1c4fa73..d5fec92 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/stats/Stat.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/stats/Stat.kt @@ -41,7 +41,7 @@ abstract class Stat( } fun update() { - name = plugin.langYml.getString("stats.$id.name") + name = config.getString("name") PlaceholderEntry( id, diff --git a/eco-core/core-plugin/src/main/resources/config.yml b/eco-core/core-plugin/src/main/resources/config.yml index 199185c..4984399 100644 --- a/eco-core/core-plugin/src/main/resources/config.yml +++ b/eco-core/core-plugin/src/main/resources/config.yml @@ -277,27 +277,34 @@ skills: stats: defense: + name: "&#e884b0🛡 Defense" # 100% halves the incoming damage percent-less-damage-per-level: 1 strength: + name: "&#db0000🗡 Strength" # 100% is double damage percent-more-damage-per-level: 1 crit_chance: + name: "&#f7ff85☣ Crit Chance" # Nothing happens above 100%, 200% is the same as it. chance-per-level: 1 crit_damage: + name: "&9☠ Crit Damage" # The percent more damage to deal on crits for each level. percent-more-damage-per-level: 2 # The amount more damage to deal on crits by default. base-percent-more: 50 speed: + name: "(ffe6✦ Speed" # The percent more speed to give for the speed attribute (internal in the game) # for each level percent-faster-per-level: 1 wisdom: + name: "*f566✎ Wisdom" # The percent more xp to gain from orbs for each level of the stat. percent-more-xp-gain: 1 ferocity: + name: "b0000⫽ Ferocity" # The percent chance to deal damage twice chance-per-level: 0.5 diff --git a/eco-core/core-plugin/src/main/resources/lang.yml b/eco-core/core-plugin/src/main/resources/lang.yml index 3b6e90e..81e3aff 100644 --- a/eco-core/core-plugin/src/main/resources/lang.yml +++ b/eco-core/core-plugin/src/main/resources/lang.yml @@ -25,17 +25,3 @@ menu: title: "Your Skills" stats: - defense: - name: "&#e884b0🛡 Defense" - strength: - name: "&#db0000🗡 Strength" - crit_chance: - name: "&#f7ff85☣ Crit Chance" - crit_damage: - name: "&9☠ Crit Damage" - speed: - name: "(ffe6✦ Speed" - wisdom: - name: "*f566✎ Wisdom" - ferocity: - name: "b0000⫽ Ferocity"