mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Mark potion names for translation
This commit is contained in:
parent
374ab1194d
commit
f904142ca5
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("mcl_potions")
|
||||
|
||||
local lingering_image = function(colorstring, opacity)
|
||||
if not opacity then
|
||||
opacity = 127
|
||||
@ -129,182 +131,182 @@ local function time_string(dur)
|
||||
return math.floor(dur/60)..string.format(":%02d",math.floor(dur % 60))
|
||||
end
|
||||
|
||||
register_lingering("water", "Lingering Water Bottle", "#0000FF", {
|
||||
register_lingering("water", S("Lingering Water Bottle"), "#0000FF", {
|
||||
potion_fun = function(player) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_lingering("river_water", "Lingering River Water Bottle", "#0000FF", {
|
||||
register_lingering("river_water", S("Lingering River Water Bottle"), "#0000FF", {
|
||||
potion_fun = function(player) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_lingering("awkward", "Lingering Awkward Potion", "#0000FF", {
|
||||
register_lingering("awkward", S("Lingering Awkward Potion"), "#0000FF", {
|
||||
potion_fun = function(player) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_lingering("mundane", "Lingering Mundane Potion", "#0000FF", {
|
||||
register_lingering("mundane", S("Lingering Mundane Potion"), "#0000FF", {
|
||||
potion_fun = function(player) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_lingering("thick", "Lingering Thick Potion", "#0000FF", {
|
||||
register_lingering("thick", S("Lingering Thick Potion"), "#0000FF", {
|
||||
potion_fun = function(player) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_lingering("healing", "Lingering Healing Potion", "#AA0000", {
|
||||
register_lingering("healing", S("Lingering Healing Potion"), "#AA0000", {
|
||||
potion_fun = function(player) player:set_hp(player:get_hp() + 2) end,
|
||||
tt = "+2 HP"
|
||||
tt = S("+2 HP")
|
||||
})
|
||||
|
||||
register_lingering("healing_2", "Lingering Healing Potion II", "#DD0000", {
|
||||
register_lingering("healing_2", S("Lingering Healing Potion II"), "#DD0000", {
|
||||
potion_fun = function(player) player:set_hp(player:get_hp() + 4) end,
|
||||
tt = "+4 HP"
|
||||
tt = S("+4 HP")
|
||||
})
|
||||
|
||||
register_lingering("harming", "Lingering Harming Potion", "#660099", {
|
||||
register_lingering("harming", S("Lingering Harming Potion"), "#660099", {
|
||||
potion_fun = function(player) mcl_potions.healing_func(player, -3) end,
|
||||
tt = "-3 HP"
|
||||
tt = S("-3 HP")
|
||||
})
|
||||
|
||||
register_lingering("harming_2", "Lingering Harming Potion II", "#330066", {
|
||||
register_lingering("harming_2", S("Lingering Harming Potion II"), "#330066", {
|
||||
potion_fun = function(player) mcl_potions.healing_func(player, -6) end,
|
||||
tt = "-6 HP"
|
||||
tt = S("-6 HP")
|
||||
})
|
||||
|
||||
register_lingering("leaping", "Lingering Leaping Potion", "#00CC33", {
|
||||
register_lingering("leaping", S("Lingering Leaping Potion"), "#00CC33", {
|
||||
potion_fun = function(player) mcl_potions.leaping_func(player, 1.2, mcl_potions.DURATION*0.25) end,
|
||||
tt = "120% | "..time_string(mcl_potions.DURATION*0.25)
|
||||
tt = S("120% | @1", time_string(mcl_potions.DURATION*0.25))
|
||||
})
|
||||
|
||||
register_lingering("leaping_2", "Lingering Leaping Potion II", "#00EE33", {
|
||||
register_lingering("leaping_2", S("Lingering Leaping Potion II"), "#00EE33", {
|
||||
potion_fun = function(player) mcl_potions.leaping_func(player, 1.4, mcl_potions.DURATION_2*0.25) end,
|
||||
tt = "140% | "..time_string(mcl_potions.DURATION_2*0.25)
|
||||
tt = S("140% | @1", time_string(mcl_potions.DURATION_2*0.25))
|
||||
})
|
||||
|
||||
register_lingering("leaping_plus", "Lingering Leaping Potion +", "#00DD33", {
|
||||
register_lingering("leaping_plus", S("Lingering Leaping Potion +"), "#00DD33", {
|
||||
potion_fun = function(player) mcl_potions.leaping_func(player, 1.2, mcl_potions.DURATION_PLUS*0.25) end,
|
||||
tt = "120% | "..time_string(mcl_potions.DURATION_PLUS*0.25)
|
||||
tt = S("120% | @1", time_string(mcl_potions.DURATION_PLUS*0.25))
|
||||
})
|
||||
|
||||
register_lingering("swiftness", "Lingering Swiftness Potion", "#009999", {
|
||||
register_lingering("swiftness", S("Lingering Swiftness Potion"), "#009999", {
|
||||
potion_fun = function(player) mcl_potions.swiftness_func(player, 1.2, mcl_potions.DURATION*0.25) end,
|
||||
tt = "120% | "..time_string(mcl_potions.DURATION*0.25)
|
||||
tt = S("120% | @1", time_string(mcl_potions.DURATION*0.25))
|
||||
})
|
||||
|
||||
register_lingering("swiftness_2", "Lingering Swiftness Potion II", "#00BBBB", {
|
||||
register_lingering("swiftness_2", S("Lingering Swiftness Potion II"), "#00BBBB", {
|
||||
potion_fun = function(player) mcl_potions.swiftness_func(player, 1.4, mcl_potions.DURATION_2*0.25) end,
|
||||
tt = "140% | "..time_string(mcl_potions.DURATION_2*0.25)
|
||||
tt = S("140% | @1", time_string(mcl_potions.DURATION_2*0.25))
|
||||
})
|
||||
|
||||
register_lingering("swiftness_plus", "Lingering Swiftness Potion +", "#00BBBB", {
|
||||
register_lingering("swiftness_plus", S("Lingering Swiftness Potion +"), "#00BBBB", {
|
||||
potion_fun = function(player) mcl_potions.swiftness_func(player, 1.2, mcl_potions.DURATION_PLUS*0.25) end,
|
||||
tt = "120% | "..time_string(mcl_potions.DURATION_PLUS*0.25)
|
||||
tt = S("120% | @1", time_string(mcl_potions.DURATION_PLUS*0.25))
|
||||
})
|
||||
|
||||
register_lingering("slowness", "Lingering Slowness Potion", "#000080", {
|
||||
register_lingering("slowness", S("Lingering Slowness Potion"), "#000080", {
|
||||
potion_fun = function(player) mcl_potions.swiftness_func(player, 0.85, mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25) end,
|
||||
tt = "85% | "..time_string(mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25)
|
||||
tt = S("85% | @1", time_string(mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25))
|
||||
})
|
||||
|
||||
register_lingering("slowness_plus", "Lingering Slowness Potion +", "#000066", {
|
||||
register_lingering("slowness_plus", S("Lingering Slowness Potion +"), "#000066", {
|
||||
potion_fun = function(player) mcl_potions.swiftness_func(player, 0.85, mcl_potions.DURATION_PLUS*mcl_potions.INV_FACTOR*0.25) end,
|
||||
tt = "85% | "..time_string(mcl_potions.DURATION_PLUS*mcl_potions.INV_FACTOR*0.25)
|
||||
tt = S("85% | @1", time_string(mcl_potions.DURATION_PLUS*mcl_potions.INV_FACTOR*0.25))
|
||||
})
|
||||
|
||||
register_lingering("slowness_2", "Lingering Slowness Potion IV", "#000066", {
|
||||
register_lingering("slowness_2", S("Lingering Slowness Potion IV"), "#000066", {
|
||||
potion_fun = function(player) mcl_potions.swiftness_func(player, 0.4, 20*0.25) end,
|
||||
tt = "40% | "..time_string(20*0.25)
|
||||
tt = S("40% | @1", time_string(20*0.25))
|
||||
})
|
||||
|
||||
register_lingering("poison", "Lingering Poison Potion", "#335544", {
|
||||
register_lingering("poison", S("Lingering Poison Potion"), "#335544", {
|
||||
potion_fun = function(player) mcl_potions.poison_func(player, 2.5, 45*0.25) end,
|
||||
tt = "-1 HP / 2.5s | "..time_string(45*0.25)
|
||||
tt = S("-1 HP / 2.5s | @1", time_string(45*0.25))
|
||||
})
|
||||
|
||||
register_lingering("poison_2", "Lingering Poison Potion II", "#446655", {
|
||||
register_lingering("poison_2", S("Lingering Poison Potion II"), "#446655", {
|
||||
potion_fun = function(player) mcl_potions.poison_func(player, 1.2, 21*0.25) end,
|
||||
tt = "-1 HP / 1.2s | "..time_string(21*0.25)
|
||||
tt = S("-1 HP / 1.2s | @1", time_string(21*0.25))
|
||||
})
|
||||
|
||||
register_lingering("poison_plus", "Lingering Poison Potion +", "#557766", {
|
||||
register_lingering("poison_plus", S("Lingering Poison Potion +"), "#557766", {
|
||||
potion_fun = function(player) mcl_potions.poison_func(player, 2.5, 90*0.25) end,
|
||||
tt = "-1 HP / 2.5s | "..time_string(90*0.25)
|
||||
tt = S("-1 HP / 2.5s | @1", time_string(90*0.25))
|
||||
})
|
||||
|
||||
register_lingering("regeneration", "Lingering Regeneration Potion", "#A52BB2", {
|
||||
register_lingering("regeneration", S("Lingering Regeneration Potion"), "#A52BB2", {
|
||||
potion_fun = function(player) mcl_potions.regeneration_func(player, 2.5, 45*0.25) end,
|
||||
tt = "+1 HP / 2.5s | "..time_string(45*0.25)
|
||||
tt = S("+1 HP / 2.5s | @1", time_string(45*0.25))
|
||||
})
|
||||
|
||||
register_lingering("regeneration_2", "Lingering Regeneration Potion II", "#B52CC2", {
|
||||
register_lingering("regeneration_2", S("Lingering Regeneration Potion II"), "#B52CC2", {
|
||||
potion_fun = function(player) mcl_potions.regeneration_func(player, 1.2, 22*0.25) end,
|
||||
tt = "+1 HP / 1.2s | "..time_string(22*0.25)
|
||||
tt = S("+1 HP / 1.2s | @1", time_string(22*0.25))
|
||||
})
|
||||
|
||||
register_lingering("regeneration_plus", "Lingering Regeneration Potion +", "#C53DD3", {
|
||||
register_lingering("regeneration_plus", S("Lingering Regeneration Potion +"), "#C53DD3", {
|
||||
potion_fun = function(player) mcl_potions.regeneration_func(player, 2.5, 90*0.25) end,
|
||||
tt = "+1 HP / 2.5s | "..time_string(90*0.25)
|
||||
tt = S("+1 HP / 2.5s | @1", time_string(90*0.25))
|
||||
})
|
||||
|
||||
register_lingering("invisibility", "Lingering Invisibility Potion", "#B0B0B0", {
|
||||
register_lingering("invisibility", S("Lingering Invisibility Potion"), "#B0B0B0", {
|
||||
potion_fun = function(player) mcl_potions.invisiblility_func(player, mcl_potions.DURATION*0.25) end,
|
||||
tt = time_string(mcl_potions.DURATION*0.25)
|
||||
})
|
||||
|
||||
register_lingering("invisibility_plus", "Lingering Invisibility Potion +", "#A0A0A0", {
|
||||
register_lingering("invisibility_plus", S("Lingering Invisibility Potion +"), "#A0A0A0", {
|
||||
potion_fun = function(player) mcl_potions.invisiblility_func(player, mcl_potions.DURATION_PLUS*0.25) end,
|
||||
tt = time_string(mcl_potions.DURATION_PLUS*0.25)
|
||||
})
|
||||
|
||||
register_lingering("weakness", "Lingering Weakness Potion", "#6600AA", {
|
||||
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", "Lingering Weakness Potion +", "#7700BB", {
|
||||
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("fire_resistance", "Lingering Fire Resistance Potion", "#D0A040", {
|
||||
register_lingering("fire_resistance", S("Lingering Fire Resistance Potion"), "#D0A040", {
|
||||
potion_fun = function(player) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION*0.25) end,
|
||||
tt = time_string(mcl_potions.DURATION*0.25)
|
||||
})
|
||||
|
||||
register_lingering("fire_resistance_plus", "Lingering Fire Resistance Potion +", "#E0B050", {
|
||||
register_lingering("fire_resistance_plus", S("Lingering Fire Resistance Potion +"), "#E0B050", {
|
||||
potion_fun = function(player) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION_PLUS*0.25) end,
|
||||
tt = time_string(mcl_potions.DURATION_PLUS*0.25)
|
||||
})
|
||||
|
||||
register_lingering("strength", "Lingering Strength Potion", "#D444D4", {
|
||||
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", "Lingering Strength Potion II", "#D444F4", {
|
||||
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", "Lingering Strength Potion +", "#D444E4", {
|
||||
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)
|
||||
})
|
||||
|
||||
register_lingering("night_vision", "Lingering Night Vision Potion", "#1010AA", {
|
||||
register_lingering("night_vision", S("Lingering Night Vision Potion"), "#1010AA", {
|
||||
potion_fun = function(player) mcl_potions.night_vision_func(player, mcl_potions.DURATION*0.25) end,
|
||||
tt = time_string(mcl_potions.DURATION*0.25)
|
||||
})
|
||||
|
||||
register_lingering("night_vision_plus", "Lingering Night Vision Potion +", "#2020BA", {
|
||||
register_lingering("night_vision_plus", S("Lingering Night Vision Potion +"), "#2020BA", {
|
||||
potion_fun = function(player) mcl_potions.night_vision_func(player, mcl_potions.DURATION_PLUS*0.25) end,
|
||||
tt = time_string(mcl_potions.DURATION_PLUS*0.25)
|
||||
})
|
||||
|
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("mcl_potions")
|
||||
|
||||
local splash_image = function(colorstring, opacity)
|
||||
if not opacity then
|
||||
opacity = 127
|
||||
@ -87,193 +89,193 @@ 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("water", "Splash Water Bottle", "#0000FF", {
|
||||
register_splash("water", S("Splash Water Bottle"), "#0000FF", {
|
||||
potion_fun = function(player, redx) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_splash("river_water", "Splash River Water Bottle", "#0000FF", {
|
||||
register_splash("river_water", S("Splash River Water Bottle"), "#0000FF", {
|
||||
potion_fun = function(player, redx) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_splash("awkward", "Awkward Splash Potion", "#0000FF", {
|
||||
register_splash("awkward", S("Awkward Splash Potion"), "#0000FF", {
|
||||
potion_fun = function(player, redx) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_splash("mundane", "Mundane Splash Potion", "#0000FF", {
|
||||
register_splash("mundane", S("Mundane Splash Potion"), "#0000FF", {
|
||||
potion_fun = function(player, redx) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_splash("thick", "Thick Splash Potion", "#0000FF", {
|
||||
register_splash("thick", S("Thick Splash Potion"), "#0000FF", {
|
||||
potion_fun = function(player, redx) end,
|
||||
tt = "No effect"
|
||||
tt = S("No effect")
|
||||
})
|
||||
|
||||
register_splash("healing", "Healing Splash Potion", "#AA0000", {
|
||||
register_splash("healing", S("Healing Splash Potion"), "#AA0000", {
|
||||
potion_fun = function(player, redx) mcl_potions.healing_func(player, 3*redx) end,
|
||||
tt = "+3 HP"
|
||||
tt = S("+3 HP")
|
||||
})
|
||||
|
||||
register_splash("healing_2", "Healing Splash Potion II", "#DD0000", {
|
||||
register_splash("healing_2", S("Healing Splash Potion II"), "#DD0000", {
|
||||
potion_fun = function(player, redx) mcl_potions.healing_func(player, 6*redx) end,
|
||||
tt = "+6 HP"
|
||||
tt = S("+6 HP")
|
||||
})
|
||||
|
||||
register_splash("harming", "Harming Splash Potion", "#660099", {
|
||||
register_splash("harming", S("Harming Splash Potion"), "#660099", {
|
||||
potion_fun = function(player, redx) mcl_potions.healing_func(player, -6*redx) end,
|
||||
tt = "-4 HP"
|
||||
tt = S("-4 HP")
|
||||
})
|
||||
|
||||
register_splash("harming_2", "Harming Splash Potion II", "#330066", {
|
||||
register_splash("harming_2", S("Harming Splash Potion II"), "#330066", {
|
||||
potion_fun = function(player, redx) mcl_potions.healing_func(player, -12*redx) end,
|
||||
tt = "-6 HP"
|
||||
tt = S("-6 HP")
|
||||
})
|
||||
|
||||
register_splash("leaping", "Leaping Splash Potion", "#00CC33", {
|
||||
register_splash("leaping", S("Leaping Splash Potion"), "#00CC33", {
|
||||
potion_fun = function(player, redx) mcl_potions.leaping_func(player, 1.2, splash_DUR*redx) end,
|
||||
tt = "120% | "..time_string(splash_DUR)
|
||||
tt = S("120% | @1", time_string(splash_DUR))
|
||||
|
||||
})
|
||||
|
||||
register_splash("leaping_2", "Leaping Splash Potion II", "#00EE33", {
|
||||
register_splash("leaping_2", S("Leaping Splash Potion II"), "#00EE33", {
|
||||
potion_fun = function(player, redx) mcl_potions.leaping_func(player, 1.4, splash_DUR_2*redx) end,
|
||||
tt = "140% | "..time_string(splash_DUR_2)
|
||||
tt = S("140% | @1", time_string(splash_DUR_2))
|
||||
})
|
||||
|
||||
register_splash("leaping_plus", "Leaping Splash Potion +", "#00DD33", {
|
||||
register_splash("leaping_plus", S("Leaping Splash Potion +"), "#00DD33", {
|
||||
potion_fun = function(player, redx) mcl_potions.leaping_func(player, 1.2, splash_DUR_pl*redx) end,
|
||||
tt = "120% | "..time_string(splash_DUR_pl)
|
||||
tt = S("120% | @1", time_string(splash_DUR_pl))
|
||||
})
|
||||
|
||||
register_splash("swiftness", "Swiftness Splash Potion", "#009999", {
|
||||
register_splash("swiftness", S("Swiftness Splash Potion"), "#009999", {
|
||||
potion_fun = function(player, redx) mcl_potions.swiftness_func(player, 1.2, splash_DUR*redx) end,
|
||||
tt = "120% | "..time_string(splash_DUR)
|
||||
tt = S("120% | @1", time_string(splash_DUR))
|
||||
})
|
||||
|
||||
register_splash("swiftness_2", "Swiftness Splash Potion II", "#00BBBB", {
|
||||
register_splash("swiftness_2", S("Swiftness Splash Potion II"), "#00BBBB", {
|
||||
potion_fun = function(player, redx) mcl_potions.swiftness_func(player, 1.4, splash_DUR_2*redx) end,
|
||||
tt = "140% | "..time_string(splash_DUR_2)
|
||||
tt = S("140% | @1", time_string(splash_DUR_2))
|
||||
})
|
||||
|
||||
register_splash("swiftness_plus", "Swiftness Splash Potion +", "#00BBBB", {
|
||||
register_splash("swiftness_plus", S("Swiftness Splash Potion +"), "#00BBBB", {
|
||||
potion_fun = function(player, redx) mcl_potions.swiftness_func(player, 1.2, splash_DUR_pl*redx) end,
|
||||
tt = "120% | "..time_string(splash_DUR_2)
|
||||
tt = S("120% | @1", time_string(splash_DUR_2))
|
||||
})
|
||||
|
||||
register_splash("slowness", "Slowness Splash Potion", "#000080", {
|
||||
register_splash("slowness", S("Slowness Splash Potion"), "#000080", {
|
||||
potion_fun = function(player, redx) mcl_potions.swiftness_func(player, 0.85, splash_DUR*mcl_potions.INV_FACTOR*redx) end,
|
||||
tt = "85% | "..time_string(splash_DUR*mcl_potions.INV_FACTOR)
|
||||
tt = S("85% | @1", time_string(splash_DUR*mcl_potions.INV_FACTOR))
|
||||
})
|
||||
|
||||
register_splash("slowness_2", "Slowness Splash Potion IV", "#000080", {
|
||||
register_splash("slowness_2", S("Slowness Splash Potion IV"), "#000080", {
|
||||
potion_fun = function(player, redx) mcl_potions.swiftness_func(player, 0.4, 20*mcl_potions.INV_FACTOR*redx) end,
|
||||
tt = "40% | "..time_string(20*mcl_potions.INV_FACTOR)
|
||||
tt = S("40% | @1", time_string(20*mcl_potions.INV_FACTOR))
|
||||
})
|
||||
|
||||
register_splash("slowness_plus", "Slowness Splash Potion +", "#000066", {
|
||||
register_splash("slowness_plus", S("Slowness Splash Potion +"), "#000066", {
|
||||
potion_fun = function(player, redx) mcl_potions.swiftness_func(player, 0.85, splash_DUR_pl*mcl_potions.INV_FACTOR*redx) end,
|
||||
tt = "85% | "..time_string(splash_DUR_pl*mcl_potions.INV_FACTOR)
|
||||
tt = S("85% | @1", time_string(splash_DUR_pl*mcl_potions.INV_FACTOR))
|
||||
})
|
||||
|
||||
register_splash("poison", "Poison Splash Potion", "#335544", {
|
||||
register_splash("poison", S("Poison Splash Potion"), "#335544", {
|
||||
potion_fun = function(player, redx) mcl_potions.poison_func(player, 2.5, splash_DUR*mcl_potions.INV_FACTOR^2*redx) end,
|
||||
tt = "-1 HP / 2.5s | "..time_string(splash_DUR*mcl_potions.INV_FACTOR^2)
|
||||
tt = S("-1 HP / 2.5s | @1", time_string(splash_DUR*mcl_potions.INV_FACTOR^2))
|
||||
})
|
||||
|
||||
register_splash("poison_2", "Poison Splash Potion II", "#446655", {
|
||||
register_splash("poison_2", S("Poison Splash Potion II"), "#446655", {
|
||||
potion_fun = function(player, redx) mcl_potions.poison_func(player, 1.2, splash_DUR_2*mcl_potions.INV_FACTOR^2*redx) end,
|
||||
tt = "-1 HP / 1.2s | "..time_string(splash_DUR_2*mcl_potions.INV_FACTOR^2)
|
||||
tt = S("-1 HP / 1.2s | @1", time_string(splash_DUR_2*mcl_potions.INV_FACTOR^2))
|
||||
})
|
||||
|
||||
register_splash("poison_plus", "Poison Splash Potion +", "#557766", {
|
||||
register_splash("poison_plus", S("Poison Splash Potion +"), "#557766", {
|
||||
potion_fun = function(player, redx) mcl_potions.poison_func(player, 2.5, splash_DUR*mcl_potions.INV_FACTOR*redx) end,
|
||||
tt = "-1 HP / 2.5s | "..time_string(splash_DUR_pl*mcl_potions.INV_FACTOR^2)
|
||||
tt = S("-1 HP / 2.5s | @1", time_string(splash_DUR_pl*mcl_potions.INV_FACTOR^2))
|
||||
})
|
||||
|
||||
register_splash("regeneration", "Regeneration Splash Potion", "#A52BB2", {
|
||||
register_splash("regeneration", S("Regeneration Splash Potion"), "#A52BB2", {
|
||||
potion_fun = function(player, redx) mcl_potions.regeneration_func(player, 2.5, splash_DUR*redx) end,
|
||||
tt = "+1 HP / 2.5s | "..time_string(splash_DUR)
|
||||
tt = S("+1 HP / 2.5s | @1", time_string(splash_DUR))
|
||||
})
|
||||
|
||||
register_splash("regeneration_2", "Regeneration Splash Potion II", "#B52CC2", {
|
||||
register_splash("regeneration_2", S("Regeneration Splash Potion II"), "#B52CC2", {
|
||||
potion_fun = function(player, redx) mcl_potions.regeneration_func(player, 1.2, (splash_DUR_2 + 1)*redx) end,
|
||||
tt = "+1 HP / 1.2s | "..time_string(splash_DUR_2 + 1)
|
||||
tt = S("+1 HP / 1.2s | @1", time_string(splash_DUR_2 + 1))
|
||||
})
|
||||
|
||||
register_splash("regeneration_plus", "Regeneration Splash Potion +", "#C53DD3", {
|
||||
register_splash("regeneration_plus", S("Regeneration Splash Potion +"), "#C53DD3", {
|
||||
potion_fun = function(player, redx) mcl_potions.regeneration_func(player, 2.5, splash_DUR_pl*redx) end,
|
||||
tt = "+1 HP / 2.5s | "..time_string(splash_DUR_pl)
|
||||
tt = S("+1 HP / 2.5s | @1", time_string(splash_DUR_pl))
|
||||
})
|
||||
|
||||
register_splash("invisibility", "Invisibility Splash Potion", "#B0B0B0", {
|
||||
register_splash("invisibility", S("Invisibility Splash Potion"), "#B0B0B0", {
|
||||
potion_fun = function(player, redx) mcl_potions.invisiblility_func(player, splash_DUR*redx) end,
|
||||
tt = time_string(splash_DUR)
|
||||
})
|
||||
|
||||
register_splash("invisibility_plus", "Invisibility Splash Potion +", "#A0A0A0", {
|
||||
register_splash("invisibility_plus", S("Invisibility Splash Potion +"), "#A0A0A0", {
|
||||
potion_fun = function(player, redx) mcl_potions.invisiblility_func(player, splash_DUR_pl*redx) end,
|
||||
tt = time_string(splash_DUR_pl)
|
||||
})
|
||||
|
||||
register_splash("weakness", "Weakness Splash Potion", "#6600AA", {
|
||||
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", "Weakness Splash Potion +", "#7700BB", {
|
||||
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", "Strength Splash Potion", "#D444D4", {
|
||||
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", "Strength Splash Potion II", "#D444F4", {
|
||||
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", "Strength Splash Potion +", "#D444E4", {
|
||||
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)
|
||||
})
|
||||
|
||||
register_splash("water_breathing", "Water Breathing Splash Potion", "#0000AA", {
|
||||
register_splash("water_breathing", S("Water Breathing Splash Potion"), "#0000AA", {
|
||||
potion_fun = function(player, redx) mcl_potions.water_breathing_func(player, splash_DUR*redx) end,
|
||||
tt = time_string(splash_DUR)
|
||||
})
|
||||
|
||||
register_splash("water_breathing_plus", "Water Breathing Splash Potion +", "#0000CC", {
|
||||
register_splash("water_breathing_plus", S("Water Breathing Splash Potion +"), "#0000CC", {
|
||||
potion_fun = function(player, redx) mcl_potions.water_breathing_func(player, splash_DUR_pl*redx) end,
|
||||
tt = time_string(splash_DUR_pl)
|
||||
})
|
||||
|
||||
register_splash("fire_resistance", "Fire Resistance Splash Potion", "#D0A040", {
|
||||
register_splash("fire_resistance", S("Fire Resistance Splash Potion"), "#D0A040", {
|
||||
potion_fun = function(player, redx) mcl_potions.fire_resistance_func(player, splash_DUR*redx) end,
|
||||
tt = time_string(splash_DUR)
|
||||
})
|
||||
|
||||
register_splash("fire_resistance_plus", "Fire Resistance Splash Potion +", "#E0B050", {
|
||||
register_splash("fire_resistance_plus", S("Fire Resistance Splash Potion +"), "#E0B050", {
|
||||
potion_fun = function(player, redx) mcl_potions.fire_resistance_func(player, splash_DUR_pl*redx) end,
|
||||
tt = time_string(splash_DUR_pl)
|
||||
})
|
||||
|
||||
register_splash("night_vision", "Night Vision Splash Potion", "#1010AA", {
|
||||
register_splash("night_vision", S("Night Vision Splash Potion"), "#1010AA", {
|
||||
potion_fun = function(player, redx) mcl_potions.night_vision_func(player, splash_DUR*redx) end,
|
||||
tt = time_string(splash_DUR)
|
||||
})
|
||||
|
||||
register_splash("night_vision_plus", "Night Vision Splash Potion +", "#2020BA", {
|
||||
register_splash("night_vision_plus", S("Night Vision Splash Potion +"), "#2020BA", {
|
||||
potion_fun = function(player, redx) mcl_potions.night_vision_func(player, splash_DUR_pl*redx) end,
|
||||
tt = time_string(splash_DUR_pl)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user