I decided to try and get my feet wet with Cataclysm and GitHub by creating a custom weapon. So, I took a look at the CDDA Raw JSON, then clobbered together a weapon and associated recipe using the .50 caliber rifle as a base.
[spoiler=Heavy Automatic Shotgun]{
“type”: “recipe”,
“result”: “m2browning_shot” GUN, recipe,
“category”: “CC_WEAPON” recipe_category,
“subcategory”: “CSC_WEAPON_RANGED”,
“skill_used”: “mechanics” item_group, skill,
“skills_required”: [
“gun” skill,
4
],
“difficulty”: 6,
“time”: 180000,
“reversible”: false,
“autolearn”: true,
“qualities”: [
{
“id”: “SAW_M_FINE” tool_quality,
“level”: 1,
“amount”: 1
},
{
“id”: “SCREW_FINE” tool_quality,
“level”: 1,
“amount”: 1
}
],
“tools”: [
[
[
“goggles_welding” ARMOR, recipe,
-1
]
],
[
[
“oxy_torch” TOOL,
6
],
[
“welder” TOOL,
30
],
[
“welder_crude” TOOL, recipe,
30
],
[
“toolset” TOOL,
30
]
],
[
[
“small_repairkit” TOOL, recipe,
150
],
[
“large_repairkit” TOOL,
30
]
]
],
“components”: [
[
[
“m2browning” GUN,
1
]
],
[
[
“2x4” GENERIC, recipe,
1
]
]
],
[
[
“pipe” GENERIC, recipe,
1
]
],
[
[
“steel_chunk” GENERIC, recipe,
3
],
[
“scrap” GENERIC,
9
]
]
]
}
{
“id”: “m2browning_shot” GUN, recipe,
“type”: “GUN”,
“symbol”: “(”,
“color”: “dark_gray”,
“name”: “Heavy Automatic Shotgun”,
“description”: “A cut down M2 Browning heavy machine gun, re-chambered and re-bored for shotgun shells, and completely redesigned to be wielded by one user.”,
“price”: 750000,
“material”: [
“hardsteel” material,
“wood” material
],
“skill”: “shotgun” skill,
“ammo”: “shot” ammunition_type,
“weight”: 16500,
“volume”: 16,
“bashing”: 12,
“cutting”: 0,
“to_hit”: -1,
“dispersion”: 150,
“sight_dispersion”: 75,
“aim_speed”: 5,
“recoil”: 180,
“durability”: 8,
“burst”: 5,
“clip_size”: 20,
“reload”: 800,
“loudness”: 200,
“valid_mod_locations”: [
[
“accessories”,
4
],
[
“barrel”,
1
],
[
“bore”,
1
],
[
“sights”,
1
],
[
“mechanism”,
4
],
[
“muzzle”,
1
],
[
“sights”,
1
]
]
}[/spoiler]
Now I’m not the smartest guy, but I do pride myself on being clever enough to make things work. My question to anyone who has more actual experience, does this seem reasonable? I’m still trying to figure how to get this on to GitHub and wanted some feedback beforehand if I missed something incredibly obvious.