Delete dead code

This commit is contained in:
Brandon 2020-08-06 17:30:49 -04:00
parent 0e462ef883
commit 128e98ca4d
2 changed files with 0 additions and 66 deletions

View File

@ -172,33 +172,3 @@ function mcl_potions.register_lingering(name, descr, color, def)
end,
})
end
-- -- register_lingering("weakness", S("Lingering Weakness Potion"), "#6600AA", {
-- -- potion_fun = function(player) mcl_potions.weakness_func(player, -4, mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25) end,
-- -- -- TODO: Fix tooltip
-- -- tt = time_string(mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25)
-- -- })
-- --
-- -- register_lingering("weakness_plus", S("Lingering Weakness Potion +"), "#7700BB", {
-- -- potion_fun = function(player) mcl_potions.weakness_func(player, -4, mcl_potions.DURATION_PLUS*mcl_potions.INV_FACTOR*0.25) end,
-- -- -- TODO: Fix tooltip
-- -- tt = time_string(mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25)
-- -- })
-- --
-- -- register_lingering("strength", S("Lingering Strength Potion"), "#D444D4", {
-- -- potion_fun = function(player) mcl_potions.strength_func(player, 3, mcl_potions.DURATION*0.25) end,
-- -- -- TODO: Fix tooltip
-- -- tt = time_string(mcl_potions.DURATION*0.25)
-- -- })
-- --
-- -- register_lingering("strength_2", S("Lingering Strength Potion II"), "#D444F4", {
-- -- potion_fun = function(player) mcl_potions.strength_func(player, 6, smcl_potions.DURATION_2*0.25) end,
-- -- -- TODO: Fix tooltip
-- -- tt = time_string(mcl_potions.DURATION_2*0.25)
-- -- })
-- --
-- -- register_lingering("strength_plus", S("Lingering Strength Potion +"), "#D444E4", {
-- -- potion_fun = function(player) mcl_potions.strength_func(player, 3, mcl_potions.DURATION_PLUS*0.25) end,
-- -- -- TODO: Fix tooltip
-- -- tt = time_string(mcl_potions.DURATION_PLUS*0.25)
-- -- })

View File

@ -116,39 +116,3 @@ end
local function time_string(dur)
return math.floor(dur/60)..string.format(":%02d",math.floor(dur % 60))
end
local splash_DUR = mcl_potions.DURATION*mcl_potions.SPLASH_FACTOR
local splash_DUR_2 = mcl_potions.DURATION_2*mcl_potions.SPLASH_FACTOR
local splash_DUR_pl = mcl_potions.DURATION_PLUS*mcl_potions.SPLASH_FACTOR
-- register_splash("weakness", S("Weakness Splash Potion"), "#6600AA", {
-- potion_fun = function(player, redx) mcl_potions.weakness_func(player, -4, splash_DUR*mcl_potions.INV_FACTOR*redx) end,
-- -- TODO: Fix tooltip
-- tt = time_string(splash_DUR*mcl_potions.INV_FACTOR)
-- })
--
-- register_splash("weakness_plus", S("Weakness Splash Potion +"), "#7700BB", {
-- potion_fun = function(player, redx) mcl_potions.weakness_func(player, -4, splash_DUR_pl*mcl_potions.INV_FACTOR*redx) end,
-- -- TODO: Fix tooltip
-- tt = time_string(splash_DUR_pl*mcl_potions.INV_FACTOR)
-- })
--
-- register_splash("strength", S("Strength Splash Potion"), "#D444D4", {
-- potion_fun = function(player, redx) mcl_potions.strength_func(player, 3, splash_DUR*redx) end,
-- -- TODO: Fix tooltip
-- tt = time_string(splash_DUR)
-- })
--
-- register_splash("strength_2", S("Strength Splash Potion II"), "#D444F4", {
-- potion_fun = function(player, redx) mcl_potions.strength_func(player, 6, splash_DUR_2*redx) end,
-- -- TODO: Fix tooltip
-- tt = time_string(splash_DUR_2)
-- })
--
-- register_splash("strength_plus", S("Strength Splash Potion +"), "#D444E4", {
-- potion_fun = function(player, redx) mcl_potions.strength_func(player, 3, splash_DUR_pl*redx) end,
-- -- TODO: Fix tooltip
-- tt = time_string(splash_DUR_pl)
-- })