Yeah, it wasn’t as easy as it first looked.
I’m finding things out I never knew. Like, for instance, the pipe cleaner recipe has “subcategory”: “CSC_OTHER_TOOLS”. … why is it not just in TOOLS? I just can’t see the point of having a subcategory of OTHER_TOOLS instead of putting them in tools in the first place. OTHER is a terrible muddle of all the crap that doesn’t really fit anywhere so I would have thought that the less items in it the better.
{
"type": "recipe",
"activity_level": "fake",
"result": "pipe_cleaner",
"category": "CC_OTHER",
"subcategory": "CSC_OTHER_TOOLS",
"skill_used": "mechanics",
"difficulty": 1,
"time": "2 m",
"reversible": true,
"book_learn": [
[ "manual_shotgun", 0 ],
[ "manual_rifle", 0 ],
[ "manual_smg", 0 ],
[ "manual_pistol", 0 ],
[ "recipe_bullets", 0 ],
[ "textbook_mechanics", 1 ],
[ "mag_mechanics", 2 ],
[ "mag_rifle", 2 ]
],
"components": [ [ [ "wire", 2 ], [ "cable", 2 ] ] ]
},
The actual pipe cleaner item information is found with “type”: “GENERIC” and doesn’t have ‘category’ information.
{
"id": "pipe_cleaner",
"type": "GENERIC",
"name": { "str": "pipe cleaner" },
"description": "This is a tool designed to clean interior surface of pipes, bottles, and similar objects. This one is thin enough to be used for cleaning firearm barrels from dirt and fouling.",
"weight": "50 g",
"volume": "250 ml",
"price": 500,
"price_postapoc": 50,
"material": [ "steel", "cotton" ],
"symbol": ";",
"color": "light_gray"
},
But there are “type”: “GENERIC” items that aren’t OTHER so basically, if the category is not given then it is OTHER.
How am I supposed to search for something that doesn’t exist!!