/tg/ Station 13 - Modules - TypesVar Details - Proc Details

material_slot

Singleton datum which controls how materials affect atoms they're applied to

Vars

material_amountRelative amount of material in this slot for when multiple slots are filled with a single material
nameName of the slot for autolathe UI
requirement_typeMaterial requirement type which controls what materials can be used to fill this slot when printing an item

Procs

on_appliedCalled when the material in this slot is applied to the atom. Return FALSE to prevent base apply_single_mat_effect from running. If the material is main, main material application will also be cancelled. Should be consistent with on_removed.
on_removedCalled when the material in this slot is removed from the atom. Return FALSE to prevent base remove_single_mat_effect from running. If the material is main, main material removal will also be cancelled. Should be consistent with on_applied.

Var Details

material_amount

Relative amount of material in this slot for when multiple slots are filled with a single material

name

Name of the slot for autolathe UI

requirement_type

Material requirement type which controls what materials can be used to fill this slot when printing an item

Proc Details

on_applied

Called when the material in this slot is applied to the atom. Return FALSE to prevent base apply_single_mat_effect from running. If the material is main, main material application will also be cancelled. Should be consistent with on_removed.

on_removed

Called when the material in this slot is removed from the atom. Return FALSE to prevent base remove_single_mat_effect from running. If the material is main, main material removal will also be cancelled. Should be consistent with on_applied.