Fix fire resistance times for lingering potions.

This commit is contained in:
Brandon 2020-07-05 18:23:17 -04:00
parent 0f44086cd6
commit 16d9ee47b6
1 changed files with 10 additions and 10 deletions

View File

@ -270,26 +270,26 @@ register_lingering("weakness_plus", "Lingering Weakness +", "#7700BB", {
}) })
register_lingering("fire_resistance", "Lingering Fire Resistance", "#D0A040", { register_lingering("fire_resistance", "Lingering Fire Resistance", "#D0A040", {
potion_fun = function(player) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION) end, potion_fun = function(player) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION*0.25) end,
tt = time_string(mcl_potions.DURATION) tt = time_string(mcl_potions.DURATION*0.25)
}) })
register_lingering("fire_resistance_plus", "Lingering Fire Resistance +", "#E0B050", { register_lingering("fire_resistance_plus", "Lingering Fire Resistance +", "#E0B050", {
potion_fun = function(player) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION_PLUS) end, potion_fun = function(player) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION_PLUS*0.25) end,
tt = time_string(mcl_potions.DURATION_PLUS) tt = time_string(mcl_potions.DURATION_PLUS*0.25)
}) })
register_lingering("strength", "Lingering Strength", "#D444D4", { register_lingering("strength", "Lingering Strength", "#D444D4", {
potion_fun = function(player) mcl_potions.strength_func(player, 3, mcl_potions.DURATION) end, potion_fun = function(player) mcl_potions.strength_func(player, 3, mcl_potions.DURATION*0.25) end,
tt = "No effect | "..time_string(mcl_potions.DURATION) tt = "No effect | "..time_string(mcl_potions.DURATION*0.25)
}) })
register_lingering("strength_2", "Lingering Strength II", "#D444F4", { register_lingering("strength_2", "Lingering Strength II", "#D444F4", {
potion_fun = function(player) mcl_potions.strength_func(player, 6, smcl_potions.DURATION_2) end, potion_fun = function(player) mcl_potions.strength_func(player, 6, smcl_potions.DURATION_2*0.25) end,
tt = "No effect | "..time_string(mcl_potions.DURATION_2) tt = "No effect | "..time_string(mcl_potions.DURATION_2*0.25)
}) })
register_lingering("strength_plus", "Lingering Strength +", "#D444E4", { register_lingering("strength_plus", "Lingering Strength +", "#D444E4", {
potion_fun = function(player) mcl_potions.strength_func(player, 3, mcl_potions.DURATION_PLUS) end, potion_fun = function(player) mcl_potions.strength_func(player, 3, mcl_potions.DURATION_PLUS*0.25) end,
tt = "No effect | "..time_string(mcl_potions.DURATION_PLUS) tt = "No effect | "..time_string(mcl_potions.DURATION_PLUS*0.25)
}) })