CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.33k stars 4.14k forks source link

Recipes with specified item result's variant disappears in the crafting menu. #76927

Open gettingusedto opened 4 days ago

gettingusedto commented 4 days ago

Describe the bug

I was gonna specify the faux fur cat ears recipe to only craft the faux fur cat ears variant like so: { "result": "faux_fur_cat_ears", "type": "recipe", "activity_level": "LIGHT_EXERCISE", "category": "CC_ARMOR", "subcategory": "CSC_ARMOR_HEAD", "skill_used": "tailor", "difficulty": 3, "variant": "faux_fur_cat_ears", "time": "1 h", "book_learn": [ [ "mag_animecon", 3 ] ], "using": [ [ "sewing_standard", 10 ] ], "tools": [ [ [ "surface_heat", 5, "LIST" ] ] ], "components": [ [ [ "faux_fur", 2 ] ], [ [ "plastic_chunk", 3 ] ] ], "proficiencies": [ { "proficiency": "prof_plasticworking" }, { "proficiency": "prof_leatherworking_basic" }, { "proficiency": "prof_furriery" } ], "byproducts": [ [ "scrap_faux_fur", 4 ] ] },

For some reason giving the variant thing just makes the recipe disappear in the crafting menu. I also changed the variant's id so it's not the same as the main item's id, but no dice, it's still disappears.

Attach save file

N/A

Steps to reproduce

  1. Either give an item that has variants their specific recipe or use the faux fur cat ears one i written above into your build of the game.
  2. Open a world.
  3. debug learn all of the recipes
  4. search for thing in the crafting menu
  5. see that it doesnt appear.

Expected behavior

It being visible or atleast gives me an error about it.

Screenshots

No response

Versions and configuration

Additional context

No response

RenechCDDA commented 4 days ago

Sometimes it appeared, sometimes it did not. Inexplicable and I have not determined the cause