Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- modinfo config option
- configuration_options =
- {
- {
- name = "OPT_DIFFICULTY",
- label = "Recipe difficulty",
- options = {
- {description = "Easy", data = 1, hover="Log(1), Stinger(4)"},
- {description = "Normal", data = 2, hover="Log(2), TentacleSpots(1), Stinger(6)"},
- {description = "Hard", data = 3, hover="Log(2), TentacleSpots(2), Stinger(8)"},
- },
- default = 2,
- }
- }
- -------------------------------------------------------
- --modmain
- GLOBAL.CRAFTABLETENTACLESPIKE_OPT_DIFFICULTY = GetModConfigData("OPT_DIFFICULTY")
- STRINGS = GLOBAL.STRINGS
- RECIPETABS = GLOBAL.RECIPETABS
- Recipe = GLOBAL.Recipe
- Ingredient = GLOBAL.Ingredient
- TECH = GLOBAL.TECH
- STRINGS.RECIPE_DESC.TENTACLESPIKE = "It's pointy and slimy."
- local recipe = Recipe("tentaclespike", { Ingredient("log", 2), Ingredient("tentaclespots", 1), Ingredient("stinger", 6) }, RECIPETABS.WAR, TECH.SCIENCE_TWO)
- if GLOBAL.CRAFTABLETENTACLESPIKE_OPT_DIFFICULTY == 1 then
- Recipe("tentaclespike", { Ingredient("log", 1), Ingredient("stinger", 4) }, RECIPETABS.WAR, TECH.SCIENCE_ONE)
- elseif GLOBAL.CRAFTABLETENTACLESPIKE_OPT_DIFFICULTY == 2 then
- Recipe("tentaclespike", { Ingredient("log", 2), Ingredient("tentaclespots", 1), Ingredient("stinger", 6) }, RECIPETABS.WAR, TECH.SCIENCE_TWO)
- elseif GLOBAL.CRAFTABLETENTACLESPIKE_OPT_DIFFICULTY == 3 then
- Recipe("tentaclespike", { Ingredient("log", 2), Ingredient("tentaclespots", 2), Ingredient("stinger", 8) }, RECIPETABS.WAR, TECH.SCIENCE_TWO)
- end
Advertisement
Add Comment
Please, Sign In to add comment