From 05d28af9e110f825f08278dd91fecd07b34bc48e Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 29 Jun 2020 17:57:53 -0400 Subject: [PATCH] Add fire resistance splash/lingering potions --- mods/ITEMS/mcl_potions/lingering.lua | 8 ++++++++ mods/ITEMS/mcl_potions/splash.lua | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_potions/lingering.lua b/mods/ITEMS/mcl_potions/lingering.lua index 6c66398b76..3cfbb3eca6 100644 --- a/mods/ITEMS/mcl_potions/lingering.lua +++ b/mods/ITEMS/mcl_potions/lingering.lua @@ -236,6 +236,14 @@ register_lingering("weakness_plus", "Lingering Weakness +", "#7700BB", { potion_fun = function(player, redx) mcl_potions.weakness_func(player, -4, mcl_potions.DURATION_PLUS*mcl_potions.INV_FACTOR*0.25) end }) +register_splash("fire_resistance", "Lingering Fire Resistance", "#D0A040", { + potion_fun = function(player, redx) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION) end +}) + +register_splash("fire_resistance_plus", "Lingering Fire Resistance +", "#E0B050", { + potion_fun = function(player, redx) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION_PLUS) end +}) + register_lingering("strength", "Lingering Strength", "#D444D4", { potion_fun = function(player, redx) mcl_potions.strength_func(player, 3, mcl_potions.DURATION) end }) diff --git a/mods/ITEMS/mcl_potions/splash.lua b/mods/ITEMS/mcl_potions/splash.lua index 62d883b393..21076ee5c0 100644 --- a/mods/ITEMS/mcl_potions/splash.lua +++ b/mods/ITEMS/mcl_potions/splash.lua @@ -214,11 +214,11 @@ register_splash("water_breathing_plus", "Splash Water Breathing +", "#0000CC", { potion_fun = function(player, redx) mcl_potions.water_breathing_func(player, splash_DUR_pl*redx) end }) -register_splash("water_breathing_plus", "Splash Fire Resistance", "#D0A040", { +register_splash("fire_resistance", "Splash Fire Resistance", "#D0A040", { potion_fun = function(player, redx) mcl_potions.fire_resistance_func(player, splash_DUR*redx) end }) -register_splash("water_breathing_plus", "Splash Fire Resistance +", "#E0B050", { +register_splash("fire_resistance_plus", "Splash Fire Resistance +", "#E0B050", { potion_fun = function(player, redx) mcl_potions.fire_resistance_func(player, splash_DUR_pl*redx) end })