-
-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed repeating categories in the crafting menu and sorted all the re…
…cipes (#11272) * Sorted all the recipes properly + next standard for adding recipes if i see anything that looks odd, i'm gonna punt somoene * Fixes broken list * Random ass 5 ruining the day * how did seafood escaped? * Small update * uhhhhh i guess it sorted itself out? * whoops * the whoops was bigger * Indent fix --------- Co-authored-by: PigeonVerde322 <[email protected]>
- Loading branch information
1 parent
83ab879
commit 6e4fbcd
Showing
42 changed files
with
2,741 additions
and
2,378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// tablecrafting defines | ||
#define CAT_NONE "" | ||
#define CAT_WEAPONRY "Weaponry" | ||
#define CAT_WEAPON "Weapons" | ||
#define CAT_AMMO "Ammunition" | ||
#define CAT_ROBOT "Robots" | ||
#define CAT_MISC "Misc" | ||
#define CAT_PRIMAL "Primal" | ||
#define CAT_TAILORING "tailoring" | ||
#define CAT_CLOTHING "Clothing" | ||
#define CAT_EYEWEAR "Eyewear" | ||
#define CAT_STRUCTURE "Structures" | ||
|
||
// foodstuffs & drinks | ||
#define CAT_FOOD "Foods" | ||
#define CAT_BREAD "Breads" | ||
#define CAT_BURGER "Burgers" | ||
#define CAT_CAKE "Cakes" | ||
#define CAT_EGG "Egg-Based Food" | ||
#define CAT_MEAT "Meats" | ||
#define CAT_MISCFOOD "Misc. Food" | ||
#define CAT_MEXICAN "Mexican Food" | ||
#define CAT_PASTRY "Pastries" | ||
#define CAT_PIE "Pies" | ||
#define CAT_PIZZA "Pizzas" | ||
#define CAT_SALAD "Salads" | ||
#define CAT_SEAFOOD "Seafood" | ||
#define CAT_SANDWICH "Sandwiches" | ||
#define CAT_SOUP "Soups" | ||
#define CAT_SPAGHETTI "Spaghettis" | ||
#define CAT_ICE "Frozen" | ||
#define CAT_DRINK "Drinks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
/datum/crafting_recipe | ||
///in-game display name - Optional, if not set uses result name | ||
var/name = "" | ||
///type paths of items consumed associated with how many are needed | ||
var/list/reqs[] = list() | ||
//type paths of items explicitly not allowed as an ingredient | ||
var/list/blacklist[] = list() | ||
//type path of item resulting from this craft | ||
var/result | ||
//type paths of items needed but not consumed | ||
var/list/tools[] = list() | ||
//time in Seconds | ||
var/time = 3 SECONDS | ||
//type paths of items that will be placed in the result | ||
var/list/parts[] = list() | ||
//type paths of reagents that will be placed in the result | ||
var/list/chem_catalysts[] = list() | ||
//where it shows up in the crafting UI, as well it's subcategory | ||
var/category = CAT_NONE | ||
var/subcategory = CAT_NONE | ||
//Set to FALSE if it needs to be learned first. | ||
var/always_available = TRUE | ||
///Should only one object exist on the same turf? | ||
var/one_per_turf = FALSE | ||
/// Should admins be notified about this getting created by a non-antagonist? | ||
var/dangerous_craft = FALSE | ||
|
||
/datum/crafting_recipe/New() | ||
if(!(result in reqs)) | ||
blacklist += result | ||
|
||
/** | ||
* Run custom pre-craft checks for this recipe | ||
* | ||
* user: the /mob that initiated the crafting | ||
* collected_requirements: A list of lists of /obj/item instances that satisfy reqs. Top level list is keyed by requirement path. | ||
*/ | ||
/datum/crafting_recipe/proc/check_requirements(mob/user, list/collected_requirements) | ||
return TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.