69 lines
2.5 KiB
Lua
69 lines
2.5 KiB
Lua
--
|
|
-- Define callbacks
|
|
--
|
|
|
|
local function register_solution(shortname, desc, tex, canthrow)
|
|
-- Register solution
|
|
local bname = "alchemy:beaker_" .. shortname
|
|
alchemy.solutions[bname] = shortname
|
|
-- Register beaker
|
|
alchemy.register_beaker(shortname, desc, tex)
|
|
if canthrow == true then
|
|
alchemy.register_splash_beaker(shortname, desc, tex)
|
|
end
|
|
-- Register cauldrons
|
|
alchemy.register_cauldron(shortname .. "1", {
|
|
texture = tex,
|
|
mesh = "cauldron_one_third.x",
|
|
description = "Cauldron of " .. desc
|
|
})
|
|
alchemy.register_cauldron(shortname .. "2", {
|
|
texture = tex,
|
|
mesh = "cauldron_two_thirds.x",
|
|
description = "Cauldron of " .. desc
|
|
})
|
|
alchemy.register_cauldron(shortname .. "3", {
|
|
texture = tex,
|
|
mesh = "cauldron_three_thirds.x",
|
|
description = "Cauldron of " .. desc
|
|
})
|
|
-- Register put-take reactions
|
|
alchemy.register_put_take_reactions(shortname)
|
|
end
|
|
|
|
alchemy.register_solution = register_solution
|
|
|
|
-- Base solution
|
|
register_solution("base", "Base Solution", "base_solution.png")
|
|
-- Slime
|
|
register_solution("slime", "Slime", "slime_solution.png")
|
|
-- Energized base
|
|
register_solution("energized_base", "Energized Base", "energized_base_solution.png")
|
|
-- Glycon brew
|
|
register_solution("glycon_brew", "Glycon Brew", "glycon_brew_solution.png")
|
|
-- Celros brew
|
|
register_solution("celros_brew", "Celros Brew", "celros_brew_solution.png")
|
|
-- Firus brew
|
|
register_solution("firus_brew", "Firus Brew", "firus_brew_solution.png")
|
|
-- Iceweed brew
|
|
register_solution("iceweed_brew", "Iceweed Brew", "iceweed_brew_solution.png")
|
|
-- Shal stalk brew
|
|
register_solution("shal_stalk_brew", "Shal Stalk Brew", "shal_stalk_brew_solution.png")
|
|
-- Emen brew
|
|
register_solution("emen_brew", "Emen Brew", "emen_brew_solution.png")
|
|
-- Boost solution
|
|
register_solution("boost", "Boost Solution", "boost_solution.png")
|
|
-- Mese solution
|
|
register_solution("mese", "Mese Solution", "mese_solution.png")
|
|
|
|
--
|
|
-- Potions
|
|
--
|
|
|
|
register_solution("healing_brew", "Healing Brew", "healing_brew_solution.png", true)
|
|
register_solution("fire_resistance", "Fire Resistance", "fire_resistance_solution.png", true)
|
|
register_solution("jump_boost", "Jump Boost", "jump_boost_solution.png", true)
|
|
register_solution("speed_boost", "Speed Boost", "speed_boost_solution.png", true)
|
|
register_solution("invisibility_brew", "Invisibility Brew", "invisibility_brew_solution.png", true)
|
|
register_solution("water_breathing_brew", "Water Breathing Brew", "water_breathing_brew_solution.png", true)
|