1
0
Fork 0

Merge branch 'bzoss_brew'

This commit is contained in:
Brandon 2020-07-11 08:06:08 -04:00
commit 555e122387
8 changed files with 206 additions and 197 deletions

View File

@ -5,6 +5,7 @@ local function active_brewing_formspec(fuel_percent, brew_percent)
return "size[9,8.75]".. return "size[9,8.75]"..
"background[-0.19,-0.25;9.5,9.5;mcl_brewing_inventory.png]".. "background[-0.19,-0.25;9.5,9.5;mcl_brewing_inventory.png]"..
-- "background[-0.19,-0.25;9.5,9.5;mcl_brewing_inventory_active.png]".. -- "background[-0.19,-0.25;9.5,9.5;mcl_brewing_inventory_active.png]"..
"label[4,0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Brewing Stand"))).."]"..
"label[0,4.0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Inventory"))).."]".. "label[0,4.0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Inventory"))).."]"..
"list[current_player;main;0,4.5;9,3;9]".. "list[current_player;main;0,4.5;9,3;9]"..
mcl_formspec.get_itemslot_bg(0,4.5,9,3).. mcl_formspec.get_itemslot_bg(0,4.5,9,3)..
@ -35,6 +36,7 @@ end
local brewing_formspec = "size[9,8.75]".. local brewing_formspec = "size[9,8.75]"..
"background[-0.19,-0.25;9.5,9.5;mcl_brewing_inventory.png]".. "background[-0.19,-0.25;9.5,9.5;mcl_brewing_inventory.png]"..
"label[4,0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Brewing Stand"))).."]"..
"label[0,4.0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Inventory"))).."]".. "label[0,4.0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Inventory"))).."]"..
"list[current_player;main;0,4.5;9,3;9]".. "list[current_player;main;0,4.5;9,3;9]"..
mcl_formspec.get_itemslot_bg(0,4.5,9,3).. mcl_formspec.get_itemslot_bg(0,4.5,9,3)..

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -174,7 +174,10 @@ minetest.register_globalstep(function(dtime)
is_cat[player].timer = is_cat[player].timer + dtime is_cat[player].timer = is_cat[player].timer + dtime
if player:get_pos() then mcl_potions._add_spawner(player, "#1010AA") end if player:get_pos() then mcl_potions._add_spawner(player, "#1010AA") end
if minetest.get_timeofday() > 0.8 or minetest.get_timeofday() < 0.2 then
player:override_day_night_ratio(0.45) player:override_day_night_ratio(0.45)
else player:override_day_night_ratio(nil)
end
if is_cat[player].timer >= is_cat[player].dur then if is_cat[player].timer >= is_cat[player].dur then
is_cat[player] = nil is_cat[player] = nil
@ -326,6 +329,7 @@ function mcl_potions._reset_player_effects(player)
end end
if is_cat[player] then if is_cat[player] then
player:override_day_night_ratio(nil)
is_cat[player] = nil is_cat[player] = nil
end end

View File

@ -291,7 +291,7 @@ minetest.register_craft({
local water_table = { local water_table = {
["mcl_nether:nether_wart_item"] = "mcl_potions:awkward", ["mcl_nether:nether_wart_item"] = "mcl_potions:awkward",
["mcl_potions:fermented_spider_eye"] = "mcl_potions:weakness", -- ["mcl_potions:fermented_spider_eye"] = "mcl_potions:weakness",
["mcl_potions:speckled_melon"] = "mcl_potions:mundane", ["mcl_potions:speckled_melon"] = "mcl_potions:mundane",
["mcl_core:sugar"] = "mcl_potions:mundane", ["mcl_core:sugar"] = "mcl_potions:mundane",
["mcl_mobitems:magma_cream"] = "mcl_potions:mundane", ["mcl_mobitems:magma_cream"] = "mcl_potions:mundane",
@ -307,7 +307,7 @@ local awkward_table = {
["mcl_farming:carrot_item_gold"] = "mcl_potions:night_vision", ["mcl_farming:carrot_item_gold"] = "mcl_potions:night_vision",
["mcl_core:sugar"] = "mcl_potions:swiftness", ["mcl_core:sugar"] = "mcl_potions:swiftness",
["mcl_mobitems:magma_cream"] = "mcl_potions:fire_resistance", ["mcl_mobitems:magma_cream"] = "mcl_potions:fire_resistance",
["mcl_mobitems:blaze_powder"] = "mcl_potions:strength", -- ["mcl_mobitems:blaze_powder"] = "mcl_potions:strength",
["mcl_fishing:pufferfish_raw"] = "mcl_potions:water_breathing", ["mcl_fishing:pufferfish_raw"] = "mcl_potions:water_breathing",
["mcl_mobitems:ghast_tear"] = "mcl_potions:regeneration", ["mcl_mobitems:ghast_tear"] = "mcl_potions:regeneration",
["mcl_mobitems:spider_eye"] = "mcl_potions:poison", ["mcl_mobitems:spider_eye"] = "mcl_potions:poison",
@ -324,7 +324,10 @@ local output_table = {
local enhancement_table = {} local enhancement_table = {}
local extension_table = {} local extension_table = {}
local potions = {"awkward", "mundane", "thick"} local potions = {"awkward", "mundane", "thick"}
for i, potion in ipairs({"healing","harming","swiftness","slowness","leaping","poison","regeneration","invisibility","fire_resistance","weakness","strength","water_breathing","night_vision"}) do for i, potion in ipairs({"healing","harming","swiftness","slowness",
"leaping","poison","regeneration","invisibility","fire_resistance",
-- "weakness","strength",
"water_breathing","night_vision"}) do
table.insert(potions, potion) table.insert(potions, potion)

View File

@ -261,17 +261,17 @@ register_lingering("invisibility_plus", S("Lingering Invisibility Potion +"), "#
tt = time_string(mcl_potions.DURATION_PLUS*0.25) tt = time_string(mcl_potions.DURATION_PLUS*0.25)
}) })
register_lingering("weakness", S("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, -- potion_fun = function(player) mcl_potions.weakness_func(player, -4, mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25) -- tt = time_string(mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25)
}) -- })
--
register_lingering("weakness_plus", S("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, -- potion_fun = function(player) mcl_potions.weakness_func(player, -4, mcl_potions.DURATION_PLUS*mcl_potions.INV_FACTOR*0.25) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25) -- tt = time_string(mcl_potions.DURATION*mcl_potions.INV_FACTOR*0.25)
}) -- })
register_lingering("fire_resistance", S("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, potion_fun = function(player) mcl_potions.fire_resistance_func(player, mcl_potions.DURATION*0.25) end,
@ -283,23 +283,23 @@ register_lingering("fire_resistance_plus", S("Lingering Fire Resistance Potion +
tt = time_string(mcl_potions.DURATION_PLUS*0.25) tt = time_string(mcl_potions.DURATION_PLUS*0.25)
}) })
register_lingering("strength", S("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, -- potion_fun = function(player) mcl_potions.strength_func(player, 3, mcl_potions.DURATION*0.25) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(mcl_potions.DURATION*0.25) -- tt = time_string(mcl_potions.DURATION*0.25)
}) -- })
--
register_lingering("strength_2", S("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, -- potion_fun = function(player) mcl_potions.strength_func(player, 6, smcl_potions.DURATION_2*0.25) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(mcl_potions.DURATION_2*0.25) -- tt = time_string(mcl_potions.DURATION_2*0.25)
}) -- })
--
register_lingering("strength_plus", S("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, -- potion_fun = function(player) mcl_potions.strength_func(player, 3, mcl_potions.DURATION_PLUS*0.25) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(mcl_potions.DURATION_PLUS*0.25) -- tt = time_string(mcl_potions.DURATION_PLUS*0.25)
}) -- })
register_lingering("night_vision", S("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, potion_fun = function(player) mcl_potions.night_vision_func(player, mcl_potions.DURATION*0.25) end,

View File

@ -18,7 +18,7 @@ minetest.register_craftitem("mcl_potions:awkward", {
stack_max = 1, stack_max = 1,
inventory_image = potion_image("#0000FF"), inventory_image = potion_image("#0000FF"),
wield_image = potion_image("#0000FF"), wield_image = potion_image("#0000FF"),
groups = {brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=1}, groups = {brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0},
on_place = minetest.item_eat(0, "mcl_potions:glass_bottle"), on_place = minetest.item_eat(0, "mcl_potions:glass_bottle"),
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"), on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
}) })
@ -31,7 +31,7 @@ minetest.register_craftitem("mcl_potions:mundane", {
stack_max = 1, stack_max = 1,
inventory_image = potion_image("#0000FF"), inventory_image = potion_image("#0000FF"),
wield_image = potion_image("#0000FF"), wield_image = potion_image("#0000FF"),
groups = {brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=1 }, groups = {brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
on_place = minetest.item_eat(0, "mcl_potions:glass_bottle"), on_place = minetest.item_eat(0, "mcl_potions:glass_bottle"),
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"), on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
}) })
@ -425,125 +425,127 @@ minetest.register_craftitem("mcl_potions:leaping_plus", {
}) })
minetest.register_craftitem("mcl_potions:weakness", { -- minetest.register_craftitem("mcl_potions:weakness", {
description = S("Weakness Potion"), -- description = S("Weakness Potion"),
_tt_help = S("-4 HP damage | 1:30"), -- _tt_help = S("-4 HP damage | 1:30"),
_doc_items_longdesc = brewhelp, -- _doc_items_longdesc = brewhelp,
wield_image = potion_image("#6600AA"), -- wield_image = potion_image("#6600AA"),
inventory_image = potion_image("#6600AA"), -- inventory_image = potion_image("#6600AA"),
groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 }, -- groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
stack_max = 1, -- stack_max = 1,
--
-- on_place = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, -4, mcl_potions.DURATION*mcl_potions.INV_FACTOR)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#6600AA")
-- return itemstack
-- end,
--
-- on_secondary_use = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, -4, mcl_potions.DURATION*mcl_potions.INV_FACTOR)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#6600AA")
-- return itemstack
-- end
-- })
--
-- minetest.register_craftitem("mcl_potions:weakness_plus", {
-- description = S("Weakness Potion +"),
-- _tt_help = S("-4 HP damage | 4:00"),
-- _doc_items_longdesc = brewhelp,
-- wield_image = potion_image("#7700BB"),
-- inventory_image = potion_image("#7700BB"),
-- groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
-- stack_max = 1,
--
-- on_place = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, -4, mcl_potions.DURATION_2*mcl_potions.INV_FACTOR)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#7700BB")
-- return itemstack
-- end,
--
-- on_secondary_use = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, -4, mcl_potions.DURATION_2*mcl_potions.INV_FACTOR)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#7700BB")
-- return itemstack
-- end
-- })
--
-- minetest.register_craftitem("mcl_potions:strength", {
-- description = S("Strength Potion"),
-- _tt_help = S("+3 HP damage | 3:00"),
-- _doc_items_longdesc = brewhelp,
-- wield_image = potion_image("#D444D4"),
-- inventory_image = potion_image("#D444D4"),
-- groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
-- stack_max = 1,
--
-- on_place = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, 3, mcl_potions.DURATION)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#D444D4")
-- return itemstack
-- end,
--
-- on_secondary_use = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, 3, mcl_potions.DURATION)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#D444D4")
-- return itemstack
-- end
-- })
--
-- minetest.register_craftitem("mcl_potions:strength_2", {
-- description = S("Strength Potion II"),
-- _tt_help = S("+6 HP damage | 1:30"),
-- _doc_items_longdesc = brewhelp,
-- wield_image = potion_image("#D444E4"),
-- inventory_image = potion_image("#D444E4"),
-- groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
-- stack_max = 1,
--
-- on_place = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, 6, mcl_potions.DURATION_2)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#D444E4")
-- return itemstack
-- end,
--
-- on_secondary_use = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, 6, mcl_potions.DURATION_2)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#D444E4")
-- return itemstack
-- end
-- })
--
-- minetest.register_craftitem("mcl_potions:strength_plus", {
-- description = S("Strength Potion +"),
-- _tt_help = S("+3 HP damage | 8:00"),
-- _doc_items_longdesc = brewhelp,
-- wield_image = potion_image("#D444F4"),
-- inventory_image = potion_image("#D444F4"),
-- groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
-- stack_max = 1,
--
-- on_place = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, 3, mcl_potions.DURATION_PLUS)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#D444F4")
-- return itemstack
-- end,
--
-- on_secondary_use = function(itemstack, user, pointed_thing)
-- mcl_potions.weakness_func(user, 3, mcl_potions.DURATION_PLUS)
-- minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
-- mcl_potions._use_potion(itemstack, user, "#D444F4")
-- return itemstack
-- end
-- })
on_place = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, -4, mcl_potions.DURATION*mcl_potions.INV_FACTOR)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#6600AA")
return itemstack
end,
on_secondary_use = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, -4, mcl_potions.DURATION*mcl_potions.INV_FACTOR)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#6600AA")
return itemstack
end
})
minetest.register_craftitem("mcl_potions:weakness_plus", {
description = S("Weakness Potion +"),
_tt_help = S("-4 HP damage | 4:00"),
_doc_items_longdesc = brewhelp,
wield_image = potion_image("#7700BB"),
inventory_image = potion_image("#7700BB"),
groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
stack_max = 1,
on_place = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, -4, mcl_potions.DURATION_2*mcl_potions.INV_FACTOR)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#7700BB")
return itemstack
end,
on_secondary_use = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, -4, mcl_potions.DURATION_2*mcl_potions.INV_FACTOR)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#7700BB")
return itemstack
end
})
minetest.register_craftitem("mcl_potions:strength", {
description = S("Strength Potion"),
_tt_help = S("+3 HP damage | 3:00"),
_doc_items_longdesc = brewhelp,
wield_image = potion_image("#D444D4"),
inventory_image = potion_image("#D444D4"),
groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
stack_max = 1,
on_place = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, 3, mcl_potions.DURATION)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#D444D4")
return itemstack
end,
on_secondary_use = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, 3, mcl_potions.DURATION)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#D444D4")
return itemstack
end
})
minetest.register_craftitem("mcl_potions:strength_2", {
description = S("Strength Potion II"),
_tt_help = S("+6 HP damage | 1:30"),
_doc_items_longdesc = brewhelp,
wield_image = potion_image("#D444E4"),
inventory_image = potion_image("#D444E4"),
groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
stack_max = 1,
on_place = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, 6, mcl_potions.DURATION_2)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#D444E4")
return itemstack
end,
on_secondary_use = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, 6, mcl_potions.DURATION_2)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#D444E4")
return itemstack
end
})
minetest.register_craftitem("mcl_potions:strength_plus", {
description = S("Strength Potion +"),
_tt_help = S("+3 HP damage | 8:00"),
_doc_items_longdesc = brewhelp,
wield_image = potion_image("#D444F4"),
inventory_image = potion_image("#D444F4"),
groups = { brewitem=1, food=3, can_eat_when_full=1, not_in_creative_inventory=0 },
stack_max = 1,
on_place = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, 3, mcl_potions.DURATION_PLUS)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#D444F4")
return itemstack
end,
on_secondary_use = function(itemstack, user, pointed_thing)
mcl_potions.weakness_func(user, 3, mcl_potions.DURATION_PLUS)
minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing)
mcl_potions._use_potion(itemstack, user, "#D444F4")
return itemstack
end
})
minetest.register_craftitem("mcl_potions:poison", { minetest.register_craftitem("mcl_potions:poison", {
description = S("Poison Potion"), description = S("Poison Potion"),
_tt_help = S("-1 HP / 2.5s | 0:45"), _tt_help = S("-1 HP / 2.5s | 0:45"),

View File

@ -220,35 +220,35 @@ register_splash("invisibility_plus", S("Invisibility Splash Potion +"), "#A0A0A0
tt = time_string(splash_DUR_pl) tt = time_string(splash_DUR_pl)
}) })
register_splash("weakness", S("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, -- potion_fun = function(player, redx) mcl_potions.weakness_func(player, -4, splash_DUR*mcl_potions.INV_FACTOR*redx) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(splash_DUR*mcl_potions.INV_FACTOR) -- tt = time_string(splash_DUR*mcl_potions.INV_FACTOR)
}) -- })
--
register_splash("weakness_plus", S("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, -- potion_fun = function(player, redx) mcl_potions.weakness_func(player, -4, splash_DUR_pl*mcl_potions.INV_FACTOR*redx) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(splash_DUR_pl*mcl_potions.INV_FACTOR) -- tt = time_string(splash_DUR_pl*mcl_potions.INV_FACTOR)
}) -- })
--
register_splash("strength", S("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, -- potion_fun = function(player, redx) mcl_potions.strength_func(player, 3, splash_DUR*redx) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(splash_DUR) -- tt = time_string(splash_DUR)
}) -- })
--
register_splash("strength_2", S("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, -- potion_fun = function(player, redx) mcl_potions.strength_func(player, 6, splash_DUR_2*redx) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(splash_DUR_2) -- tt = time_string(splash_DUR_2)
}) -- })
--
register_splash("strength_plus", S("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, -- potion_fun = function(player, redx) mcl_potions.strength_func(player, 3, splash_DUR_pl*redx) end,
-- TODO: Fix tooltip -- -- TODO: Fix tooltip
tt = time_string(splash_DUR_pl) -- tt = time_string(splash_DUR_pl)
}) -- })
register_splash("water_breathing", S("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, potion_fun = function(player, redx) mcl_potions.water_breathing_func(player, splash_DUR*redx) end,

View File

@ -17,25 +17,25 @@ local wip_items = {
"mcl_paintings:painting", "mcl_paintings:painting",
"mcl_potions:night_vision", "mcl_potions:night_vision",
"mcl_potions:night_vision_plus", "mcl_potions:night_vision_plus",
"mcl_potions:weakness", -- "mcl_potions:weakness",
"mcl_potions:weakness_plus", -- "mcl_potions:weakness_plus",
"mcl_potions:strength", -- "mcl_potions:strength",
"mcl_potions:strength_plus", -- "mcl_potions:strength_plus",
"mcl_potions:strength_2", -- "mcl_potions:strength_2",
"mcl_potions:night_vision_splash", "mcl_potions:night_vision_splash",
"mcl_potions:night_vision_plus_splash", "mcl_potions:night_vision_plus_splash",
"mcl_potions:weakness_splash", -- "mcl_potions:weakness_splash",
"mcl_potions:weakness_plus_splash", -- "mcl_potions:weakness_plus_splash",
"mcl_potions:strength_splash", -- "mcl_potions:strength_splash",
"mcl_potions:strength_plus_splash", -- "mcl_potions:strength_plus_splash",
"mcl_potions:strength_2_splash", -- "mcl_potions:strength_2_splash",
"mcl_potions:night_vision_lingering", "mcl_potions:night_vision_lingering",
"mcl_potions:night_vision_plus_lingering", "mcl_potions:night_vision_plus_lingering",
"mcl_potions:weakness_lingering", -- "mcl_potions:weakness_lingering",
"mcl_potions:weakness_plus_lingering", -- "mcl_potions:weakness_plus_lingering",
"mcl_potions:strength_lingering", -- "mcl_potions:strength_lingering",
"mcl_potions:strength_plus_lingering", -- "mcl_potions:strength_plus_lingering",
"mcl_potions:strength_2_lingering", -- "mcl_potions:strength_2_lingering",
} }
local experimental_items = { local experimental_items = {
} }
@ -66,5 +66,3 @@ for i=1,#experimental_items do
new_description = new_description .. "\n"..core.colorize("#FFFF00", S("(Temporary)")) new_description = new_description .. "\n"..core.colorize("#FFFF00", S("(Temporary)"))
minetest.override_item(experimental_items[i], { description = new_description }) minetest.override_item(experimental_items[i], { description = new_description })
end end