Files
Bubberstation/code/__DEFINES
Ghom 1f3894e793 Crafting refactor, implementing materials (#89465)
My original plan was to just implement materials into crafting so that
items would inherit the materials of their components, allowing for some
interesting stuff if the material flags of the item allow it. However to
my dismay crafting is a pile of old tech debt, starting from the old
`del_reqs` and `CheckParts` which still contain lines about old janky
bandaids that are no longer in use nor reachable, up to the
`customizable_reagent_holder` component which has some harddel issues
when your custom food is sliced, and items used in food recipes not
being deleted and instead stored inside the result with no purpose as
well as other inconsistencies like stack recipes that transfer materials
having counterparts in the UI that don't do that.

EDIT: Several things have come up while working on this, so I apologise
that it ended up changing over 100+ files. I managed to atomize some of
the changes, but it's a bit tedious.

EDIT: TLDR because I was told this section is too vague and there's too
much going on. This PR:
- Improves the dated crafting code (not the UI).
- replaced `atom/CheckParts` and `crafting_recipe/on_craft_completion`
with `atom/on_craft_completion`.
- Reqs used in food recipes are now deleted by default and not stored
inside the result (they did nothing).
- Renames the customizable_reagent_holder comp and improves it (No
harddels/ref issues).
- Adds a unit test that tries to craft all recipes to see what's wrong
(it skips some of the much more specific reqs for now).
- In the unit test is also the code to make sure materials of the
crafted item and a non-crafted item of the same type are roughly the
same, so far only applied to food.
- Some mild material/food refactoring around the fact that food item
code has been changed to support materials.

Improving the backbone of the crafting system. Also materials and food
code.

🆑
refactor: Refactored crafting backend. Report possible pesky bugs.
balance: the MEAT backpack (from the MEAT cargo pack) may be a smidge
different because of code standardization.
/🆑
2025-06-05 20:05:13 -04:00
..
2025-05-29 16:16:12 -04:00
2024-10-19 08:04:33 -07:00
2025-03-31 14:49:09 -04:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2025-04-29 17:41:26 -06:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2025-05-29 16:17:39 -04:00
2025-05-29 16:17:41 -04:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2025-03-31 14:49:09 -04:00
2024-10-19 08:04:33 -07:00
2025-05-28 20:19:38 -04:00
2025-03-25 15:47:38 -06:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2025-05-29 16:15:20 -04:00
2025-04-29 18:33:35 -06:00
2024-10-19 08:04:33 -07:00
2025-04-29 17:55:19 -06:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2025-05-13 15:05:46 -04:00
2025-06-01 02:00:57 -04:00
2025-03-12 15:45:45 -04:00
2025-04-29 18:04:56 -06:00
2025-06-02 15:02:03 -07:00
2024-10-19 08:04:33 -07:00
2025-03-17 08:26:32 +00:00

This folder is full of #define statements. They are similar to constants, but must come before any code that references them, and they do not take up memory the way constants do.

The values in this folder are NOT options. They are not for hosts to play with. Some of the values are arbitrary and only need to be different from similar constants; for example, the genetic mutation numbers in genetics.dm mean nothing, but MUST be distinct.

It is wise not to touch them unless you understand what they do, where they're used, and most importantly, how to undo your changes if you screw it up.

  • Sayu