/tg/ Station 13 - Modules - TypesDefine Details

code/game/atom/atom_materials.dm

COMPARISION_ACCEPTABLE_MATERIAL_DEVIATIONA bit of leeway when comparing the amount of material of two items. This was made to test the material composition of items spawned via crafting/processable component and an items of the same type spawned via other means, since small portion of materials can be lost when rounding down values to the nearest integers and we can't do much about it. (eg. a slab of meat worth 100 mat points is cut in three cutlets, each 33, with the remaining 1 percent lost to rounding)

Define Details

COMPARISION_ACCEPTABLE_MATERIAL_DEVIATION

A bit of leeway when comparing the amount of material of two items. This was made to test the material composition of items spawned via crafting/processable component and an items of the same type spawned via other means, since small portion of materials can be lost when rounding down values to the nearest integers and we can't do much about it. (eg. a slab of meat worth 100 mat points is cut in three cutlets, each 33, with the remaining 1 percent lost to rounding)

right now it's 3 points per 100 units of a material.