mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Personal crafting & Dependencies
This commit is contained in:
committed by
Darlantan
parent
04a8c35801
commit
d7f20396de
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user