/datum/matfab_recipe/simple
Simple matfab recipie definition
Vars | |
createMultiplier | Multiply output numbers by this. |
---|---|
materials | Usage: list("!metal"=5, "crystal"=3, "rubber"=1) , putting a ! in front of a material name will make that material the main material that is applied at the end. |
result | Typepath of the resulting item. |
stack | If 1, we change the stack amount instead of creating multiple objects. |
Procs | |
postProcess | Called after the object is created and the material is assigned to it. Do any additional processing in here. |
Var Details
createMultiplier
Multiply output numbers by this.
materials
Usage: list("!metal"=5, "crystal"=3, "rubber"=1) , putting a ! in front of a material name will make that material the main material that is applied at the end.
result
Typepath of the resulting item.
stack
If 1, we change the stack amount instead of creating multiple objects.
Proc Details
postProcess
Called after the object is created and the material is assigned to it. Do any additional processing in here.
getObjectByPartName(var/findName) works in here. Check the new proc below to see what the expected names are. This might not work if you have multiple parts of the same type.
A normal metal part would be getObjectByPartName("Metal"), a metal part set to main(!) would be getObjectByPartName("(Main) Metal")