Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/matfab_recipe/simple

Simple matfab recipie definition

Vars

createMultiplierMultiply output numbers by this.
materialsUsage: 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.
resultTypepath of the resulting item.
stackIf 1, we change the stack amount instead of creating multiple objects.

Procs

postProcessCalled 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")