/tg/ Station 13 - Modules - TypesDefine Details

code/__HELPERS/construction.dm

OPTIMAL_COSTMakes sure only integer values are used when consuming, removing & checking for mats
GET_MATERIAL_REFWrapper for fetching material references. Exists exclusively so that people don't need to wrap everything in a list every time.
/proc/rcd_result_with_memory Produces a new RCD result from the given one if it can be calculated that the RCD should speed up with the remembered form.
/proc/amount2sheet Turns material amount into the number of sheets, returning FALSE if the number is less than SHEET_MATERIAL_AMOUNT
/proc/sheet2amount Turns number of sheets into material amount, returning FALSE if the number is <= 0
/proc/fast_split_stack Splits a stack. we don't use /obj/item/stack/proc/fast_split_stack because Byond complains that should only be called asynchronously. This proc is also more faster because it doesn't deal with mobs, copying evidences or refreshing atom storages Has special internal uses for e.g. by the material container

Define Details

GET_MATERIAL_REF

Wrapper for fetching material references. Exists exclusively so that people don't need to wrap everything in a list every time.

OPTIMAL_COST

Makes sure only integer values are used when consuming, removing & checking for mats