# Crafting expansion - byproducts

**URL:** <https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923>\
**Category:** The Lab\
**Created:** [July 29, 2014, 8:23am UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923 "2014-07-29T08:23:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [July 29, 2014, 8:23am UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/1 "2014-07-29T08:23:59Z")

</div>

Hey,  
I am working on crafting expansion which will allow to define byproducts in recipes.  
Work is almost done, but I would like to have your thoughts on existing recipes, or new ones, which can use such feature, so I can include these in initial release.

Here is an example (this one is for fun and will not be in release)  
 ![](https://dl.dropboxusercontent.com/u/18187861/toothpick.PNG)

[ul][li]Recipe can have more than one byproduct.[/li]  
[li]Byproduct can have charge multiplier defined - useful for comestibles and ammo, which have charges defined, you can multiply the amount of charges this way[/li]  
[li]Byproduct can have amount specified - like in toothpick example above[/li][/ul]

If you have any suggestion, please share 🙂

---

<div class="post-metadata">

**Author:** ![Snaaty](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Snaaty](https://discourse.cataclysmdda.org/u/Snaaty)\
**Post date:** [July 29, 2014, 9:39am UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/2 "2014-07-29T09:39:39Z")

</div>

Looks awesome!

Although I am not sure I get the charge-multiplier-thingy.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [July 29, 2014, 10:20am UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/3 "2014-07-29T10:20:57Z")

</div>

[quote=“Snaaty, post:2, topic:6923”]Looks awesome!

Although I am not sure I get the charge-multiplier-thingy.[/quote]

Comestibles have defined charges - which is quantity in which it is crafted, bread is defined with 8 charges, so it has 8 uses - you can eat 8 loafs, one per each eat action. Similarly, ammo is defined with count, .223 Remington is crafted in batches of 40.

Multiplier multiple, how many charges / count you craft per one crafting action. Currently, it is used only in brewing (or I didn’t find any other instance where it is used). For example, whiskey wort is defined with 7 charges - like rest of the alcohol. Author of brewing (guess it was him) used multiplier 3 in recipe, so that crafting can make 21 charges in one go, which is enough to fill one glass bottle.

I just added same possibility to byproduct.

---

<div class="post-metadata">

**Author:** ![Duros](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@Duros](https://discourse.cataclysmdda.org/u/Duros)\
**Post date:** [July 29, 2014, 8:02pm UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/4 "2014-07-29T20:02:14Z")

</div>

This looks incredible! 😃

Good luck with this project, if you manage to pull it off it will make it into the main-line without a doubt 😃

…This will be game changing 🙂

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [July 29, 2014, 9:34pm UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/5 "2014-07-29T21:34:09Z")

</div>

[quote=“Duros, post:4, topic:6923”]This looks incredible! 😃

Good luck with this project, if you manage to pull it off it will make it into the main-line without a doubt 😃

…This will be game changing :)[/quote]

Thanks!

It does work already and it most likely ends up in the mainline. I am not the one who will decide that, but KA101 and Kevin are very helpful and supportive. Though I still need to do more testing and add some more recipes that fit in, changes will hopefully be in experimental version in a few days.

I believe it will be especially useful for your chemical stuff, like Zireael pointed out already, as in chemical reactions, byproducts are more of a rule than an exception.

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [July 30, 2014, 12:17am UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/6 "2014-07-30T00:17:05Z")

</div>

It’s about to get merged, unless something breaks in testing. I’ve queued it and am ramping up.

Update: Stuff broke, but [this wasn’t one of 'em](https://github.com/CleverRaven/Cataclysm-DDA/pull/8364). Merged.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [July 30, 2014, 9:41am UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/7 "2014-07-30T09:41:39Z")

</div>

[quote=“KA101, post:6, topic:6923”]It’s about to get merged, unless something breaks in testing. I’ve queued it and am ramping up.

Update: Stuff broke, but [this wasn’t one of 'em](https://github.com/CleverRaven/Cataclysm-DDA/pull/8364). Merged.[/quote]

Cool, thanks!

---

<div class="post-metadata">

**Author:** ![Duros](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@Duros](https://discourse.cataclysmdda.org/u/Duros)\
**Post date:** [August 3, 2014, 9:41am UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/8 "2014-08-03T09:41:32Z")

</div>

[quote=“KA101, post:6, topic:6923”]It’s about to get merged, unless something breaks in testing. I’ve queued it and am ramping up.

Update: Stuff broke, but [this wasn’t one of 'em](https://github.com/CleverRaven/Cataclysm-DDA/pull/8364). Merged.[/quote]

Congratulations 😃

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [August 3, 2014, 10:33am UTC](https://discourse.cataclysmdda.org/t/crafting-expansion-byproducts/6923/9 "2014-08-03T10:33:11Z")

</div>

Thanks 🙂
