/tg/ Station 13 - Modules - TypesDefine Details

code/modules/unit_tests/crafting.dm

ACCEPTABLE_MATERIAL_DEVIATIONThe accepted discrepancy between the amount of material between an item when crafted and the same item when spawned so we don't have to be obnoxious about small portion of mats being lost for items that are processed in multiple other results (eg. a slab of meat being cut in three cutlets, and each cutlet can be used to craft different things) right now it's around 3 points per 100 units of a material.
/datum/unit_test/craftingCheck if a generic atom (because both mobs and the crafter machinery can do it) can potentially craft all recipes, with the exact same types required in the recipe, and also compare the materials of crafted result with one of the same type to ansure they match if the recipe has the CRAFT_ENFORCE_MATERIALS_PARITY flag.

Define Details

ACCEPTABLE_MATERIAL_DEVIATION

The accepted discrepancy between the amount of material between an item when crafted and the same item when spawned so we don't have to be obnoxious about small portion of mats being lost for items that are processed in multiple other results (eg. a slab of meat being cut in three cutlets, and each cutlet can be used to craft different things) right now it's around 3 points per 100 units of a material.