Personal crafting & Dependencies

This commit is contained in:
Chompstation Bot
2021-05-06 04:51:46 +00:00
committed by Darlantan
parent 04a8c35801
commit d7f20396de
42 changed files with 2569 additions and 386 deletions

View File

@@ -256,6 +256,7 @@ GLOBAL_LIST_EMPTY(mannequins)
var/datum/digest_mode/DM = new T
GLOB.digest_modes[DM.id] = DM
// VOREStation Add End
init_crafting_recipes(GLOB.crafting_recipes)
/*
// Custom species traits
@@ -292,8 +293,13 @@ GLOBAL_LIST_EMPTY(mannequins)
return 1 // Hooks must return 1
return 1
/// Inits the crafting recipe list, sorting crafting recipe requirements in the process.
/proc/init_crafting_recipes(list/crafting_recipes)
for(var/path in subtypesof(/datum/crafting_recipe))
var/datum/crafting_recipe/recipe = new path()
recipe.reqs = sortList(recipe.reqs, /proc/cmp_crafting_req_priority)
crafting_recipes += recipe
return crafting_recipes
/* // Uncomment to debug chemical reaction list.
/client/verb/debug_chemical_list()