@TheCommanderIs there a way to add a reference to a prodecural list (like a custom list) in an existing container in an existing room?
Im tryin to add a new reference to the "pharmacystorage" room on the "metal_shelves" container like so:
table.insert(Distributions.pharmacystorage.metal_shelves.procList,'{name="CustomList", min=1, max=6}');
This line of code keeps throwing a nullpointer, saying that "metal_shelves" does not exist on the pharmacystorage element. From Distributions.lua:
pharmacystorage = {
isShop = true,
metal_shelves = {
procedural = true,
procList = {
{name="MedicalStorageDrugs", min=1, max=6},
{name="MedicalStorageTools", min=1, max=4},
{name="MedicalStorageOutfit", min=1, max=2},
}
},
fridge = {
procedural = true,
procList = {
{name="FridgeWater", min=0, max=12},
}
},
freezer = {
rolls = 0,
items = {
}
},
counter = {
procedural = true,
procList = {
{name="MedicalClinicDrugs", min=1, max=4},
{name="MedicalClinicTools", min=1, max=2},
{name="MedicalClinicOutfit", min=1, max=2},
}
}
},
What am i missing here?
EDIT: I have since found a solution that no longer throws any errors, and from what i can tell from the object stack in the debugger, the custom procedural distribution list gets added to the existinng room refinition. However, the game does not seem to want to pull items from the custom list, even though i have given the custom items a high priority, and ensured that min = max in the proc. dist. list