Jump to content

Recommended Posts

The materials required for constructing buildings are defined in the table CONSTRUCTION_PLANS.

----CONSTRUCTION PLANS----
CONSTRUCTION_PLANS =
{
	["multiplayer_portal_moonrock_constr"] = { Ingredient("purplemooneye", 1), Ingredient("moonrocknugget", 20) },
	["mermthrone_construction"]   = { Ingredient("kelp", 20), Ingredient("pigskin", 10), Ingredient("beefalowool", 15) },
	["hermithouse_construction1"] = { Ingredient("cookiecuttershell", 10), Ingredient("boards", 10), Ingredient("fireflies", 1) },
	["hermithouse_construction2"] = { Ingredient("marble", 10), Ingredient("cutstone", 5), Ingredient("lightbulb", 3) },
	["hermithouse_construction3"] = { Ingredient("moonrocknugget", 10), Ingredient("rope", 5), Ingredient("turf_carpetfloor", 5) },



	["moon_device_construction1"] = { Ingredient("wagpunk_bits", 4),Ingredient("moonstorm_spark", 10), Ingredient("moonglass_charged", 10) },
	["moon_device_construction2"] = { Ingredient("moonstorm_static_item", 1), Ingredient("moonglass_charged", 20), Ingredient("moonrockseed", 1) },

	["charlie_hand"] =				{ Ingredient("dreadstone", 5) },
	["wagstaff_npc_pstboss"] =		{ Ingredient("alterguardianhatshard", 1) },

	["support_pillar"] =			{ Ingredient("rocks", 40) },
	["support_pillar_dreadstone"] =	{ Ingredient("dreadstone", 40) },

	["collapsed_treasurechest"] =	{ Ingredient("boards", 3), Ingredient("alterguardianhatshard", 1) },
	["collapsed_dragonflychest"] =	{ Ingredient("dragon_scales", 1), Ingredient("boards", 4), Ingredient("goldnugget", 10), Ingredient("alterguardianhatshard", 1) },

	--Cult of the Lamb
	["cotl_tabernacle_level1"] = { Ingredient("cutstone", 5), Ingredient("log", 1) },
	["cotl_tabernacle_level2"] = { Ingredient("goldnugget", 10), Ingredient("cutstone", 10), Ingredient("log", 1) },
}
CONSTRUCTION_PLANS["support_pillar_scaffold"] = CONSTRUCTION_PLANS["support_pillar"]
CONSTRUCTION_PLANS["support_pillar_dreadstone_scaffold"] = CONSTRUCTION_PLANS["support_pillar_dreadstone"]

You should be able to modify it as follows:

CONSTRUCTION_PLANS["mermthrone_construction"] = { Ingredient("kelp", 10), Ingredient("pigskin", 10) }
STRINGS = GLOBAL.STRINGS
RECIPETABS = GLOBAL.RECIPETABS
Recipe = GLOBAL.Recipe
Ingredient = GLOBAL.Ingredient
TECH = GLOBAL.TECH

local support_pillar_dreadstone_scaffold = CONSTRUCTION_PLANS["support_pillar_dreadstone_scaffold"] = { Ingredient("kelp", 10), Ingredient("pigskin", 10) }

did I something wrong?

On 3/7/2025 at 5:30 AM, yanecc said:

Lua does not allow chained assignments like a = b = c.

Welp i feel like i just messed more

STRINGS = GLOBAL.STRINGS
RECIPETABS = GLOBAL.RECIPETABS
Recipe = GLOBAL.Recipe
Ingredient = GLOBAL.Ingredient
TECH = GLOBAL.TECH

local support_pillar_dreadstone_scaffold = CONSTRUCTION_PLANS("support_pillar_dreadstone_scaffold", {Ingredient("kelp", 10), Ingredient("pigskin", 10) })

 

On 3/13/2025 at 6:56 PM, PonyOfApocalips said:

Welp i feel like i just messed more

Spoiler
local DREADSTONE_PILLAR_PLANS =
{
	GLOBAL.Ingredient("kelp", 10), 
	GLOBAL.Ingredient("pigskin", 10),
} 
--GLOBAL.d_dreadstone_pillar = DREADSTONE_PILLAR_PLANS -- GLOBAL.dumptable(d_dreadstone_pillar)
GLOBAL.CONSTRUCTION_PLANS.support_pillar_dreadstone = DREADSTONE_PILLAR_PLANS
GLOBAL.CONSTRUCTION_PLANS.support_pillar_dreadstone_scaffold = DREADSTONE_PILLAR_PLANS -- the scaffold and pillar must have the same plans
Edited by oregu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...