Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Blood Sausage  (Read 641 times)

Ygvir

  • Bay Watcher
    • View Profile
Blood Sausage
« on: May 16, 2016, 05:36:41 pm »

I'd like to try to create a reaction to use blood in barrels, as you would get from the caravan. Blood sausage is a fairly common food in many cultures so I'd really like to do something like that. I'm not clear on where to start though. I'm a fair hand at reactions but do I need to make a new material to do this? How do I make the product of my reaction edible?

Here's a skeleton of what I had in mind...

Code: [Select]
[REACTION:MAKE_BLOOD_SAUSAGE]
[NAME:make blood sausage]
[BUILDING:KITCHEN:NONE]
[REAGENT:blood:150:LIQUID_MISC:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:RENDER_BLOOD]
[REAGENT:blood container:1:NONE:NONE:NONE:NONE]
[CONTAINS:blood]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:1:GLOB:NONE:GET_MATERIAL_FROM_REAGENT:blood:RENDER_BLOOD]
[SKILL:COOK]
[AUTOMATIC]

This is basically a mashup of RENDER_FAT and this post http://www.bay12forums.com/smf/index.php?topic=157587.msg6936346#msg6936346.

I'd presume I'd need to put something into blood similar to the RENDER_MAT tag in the RENDER FAT reaction has in the FAT material e.g. an equivalent of [MATERIAL_REACTION_PRODUCT:RENDER_MAT:LOCAL_CREATURE_MAT:TALLOW] but for my blood sausage.

I'm just not sure what the last bits are to put this together. Thanks for any help you can give!

edit: changed the amount of liquid to a reasonable number instead of 1.
« Last Edit: May 16, 2016, 05:40:08 pm by Ygvir »
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Blood Sausage
« Reply #1 on: May 17, 2016, 06:03:30 am »

You can find sausages in my Genesis Reborn mod:
http://www.bay12forums.com/smf/index.php?topic=109846.0

It is pretty easy to do

Code: [Select]

[REACTION:MAKE_SAUSAGE]
   [NAME:make sausage (5)]
   [BUILDING:KITCHEN:CUSTOM_SHIFT_F]
   [REAGENT:A:1:MEAT:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:SAUSAGE_MAT][UNROTTEN]
   [REAGENT:B:1:MEAT:NONE:NONE:NONE][REACTION_CLASS:INTESTINE][UNROTTEN]
   [PRODUCT:100:5:MEAT:NONE:GET_MATERIAL_FROM_REAGENT:A:SAUSAGE_MAT]
   [SKILL:COOK]

In my case they are made from meat. Replace meat with blood, and lookup material definitions. Basically I gave each creature unique sausage by adding SAUSAGE_TEMPLATE (which is a copypaste from meat) to b_detail_plan_default to various material plans.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository