From fcbe85c3abe962e640ac18c3f6f43efc5434c866 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 6 Sep 2022 13:57:27 +0100 Subject: [PATCH] Added goliath, improved first strike --- .../main/resources/enchants/first_strike.yml | 2 +- .../src/main/resources/enchants/goliath.yml | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 eco-core/core-plugin/src/main/resources/enchants/goliath.yml diff --git a/eco-core/core-plugin/src/main/resources/enchants/first_strike.yml b/eco-core/core-plugin/src/main/resources/enchants/first_strike.yml index e782c543..53aa0252 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/first_strike.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/first_strike.yml @@ -21,6 +21,6 @@ effects: triggers: - melee_attack filters: - onMaxHealth: true + on_max_health: true conditions: [ ] diff --git a/eco-core/core-plugin/src/main/resources/enchants/goliath.yml b/eco-core/core-plugin/src/main/resources/enchants/goliath.yml new file mode 100644 index 00000000..b9e11086 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/enchants/goliath.yml @@ -0,0 +1,25 @@ +display-name: "Goliath" +description: "Deal &a%placeholder%% &rmore damage for the amount of times more health your opponent has than you, up to &a%limit%%" +placeholders: + damage: "50 + %level% * 10" + limit: "20 + %level% * 15" +type: normal + +targets: + - sword +conflicts: [ ] +rarity: rare +max-level: 6 + +tradeable: true +discoverable: true +enchantable: true + +effects: + - id: damage_multiplier + args: + multiplier: "1 + min((%victim_health% / %player_health%) * (0.5 + %level% * 0.1), 0.2 + %level% * 0.15)" + triggers: + - melee_attack + +conditions: [ ]