Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Repairing quarry bush  (Read 1751 times)

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Repairing quarry bush
« on: July 19, 2014, 06:41:45 pm »

Can anyone tell me what exactly I need to add to which entries in which particular raws, so that my quarry bushes produce seeds again, when being processed to a bag?
Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

scamtank

  • Bay Watcher
    • View Profile
Re: Repairing quarry bush
« Reply #1 on: July 19, 2014, 06:55:01 pm »

Code: [Select]
reaction_other

[REACTION:PROCESS_PLANT_TO_BAG]
[NAME:process plant to bag]
[BUILDING:FARMER:CUSTOM_B]
[REAGENT:plant:1:PLANT:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:BAG_ITEM]
[UNROTTEN]
[REAGENT:bag:1:BOX:NONE:NONE:NONE]
[EMPTY]
[BAG]
[PRESERVE_REAGENT]
[PRODUCT:100:5:GET_ITEM_DATA_FROM_REAGENT:plant:BAG_ITEM]
[PRODUCT_TO_CONTAINER:bag]
[PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT] <<<--- this thing. this line was missing
[SKILL:PROCESSPLANTS]

Code: [Select]
plant_standard

[PLANT:BUSH_QUARRY]
[NAME:quarry bush][NAME_PLURAL:quarry bushes][ADJ:quarry bush]
[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]
[MATERIAL_VALUE:2]
[EDIBLE_VERMIN]
[MATERIAL_REACTION_PRODUCT:SEED_MAT:LOCAL_PLANT_MAT:SEED] <<<--- you also need this counterpart in the plant definition itself
[ITEM_REACTION_PRODUCT:BAG_ITEM:PLANT_GROWTH:LEAVES:LOCAL_PLANT_MAT:LEAF]
[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]
Logged

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Re: Repairing quarry bush
« Reply #2 on: July 19, 2014, 07:14:37 pm »

Thank you kindly!
Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Repairing quarry bush
« Reply #3 on: July 19, 2014, 09:10:35 pm »

If you want to replicate the game's original logic for leaving seeds, you should make the job produce 1 seed 100% of the time and 2 additional seeds with a 25% chance on each one. The original game logic didn't work exactly that way (it started the seed count at 1, increased it to 2 with a 1/2 chance, and increased it to 3 with a 1/8 chance OF it didn't hit the "2 seeds" case), but the probabilities work out the same.

[PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
[PRODUCT:25:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
[PRODUCT:25:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
« Last Edit: July 25, 2014, 07:57:38 am by Quietust »
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.