mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 22:07:07 +01:00
22 lines
526 B
Plaintext
22 lines
526 B
Plaintext
/**
|
|
* get recipe list
|
|
*/
|
|
/datum/prototype/material/proc/get_recipes()
|
|
return isnull(recipes)? generate_recipes() : recipes
|
|
|
|
/**
|
|
* regenerate recipes list and return it
|
|
*/
|
|
/datum/prototype/material/proc/generate_recipes()
|
|
recipes = list()
|
|
recipes += special_recipes()
|
|
return recipes
|
|
|
|
/**
|
|
* allows for better override support, for when you want specific subtypes to have specific recipes
|
|
*
|
|
* returns a recipe list that's added to generate_recipes()
|
|
*/
|
|
/datum/prototype/material/proc/special_recipes()
|
|
return list()
|