Skip to content

Commit

Permalink
feat(content): adds an entry-level launcher weapon (#4202)
Browse files Browse the repository at this point in the history
* feat(content): adds an entry-level launcher weapon

* Update turret.json
  • Loading branch information
chaosvolt authored Feb 10, 2024
1 parent 0d8e532 commit 13ae3d3
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/json/itemgroups/Weapons_Mods_Ammo/guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,8 @@
"//": "Makeshift or otherwise poor quality grenade and rocket launchers",
"items": [
{ "item": "launcher_simple", "prob": 100 },
{ "item": "triple_launcher_simple", "prob": 15, "charges-min": 0, "charges-max": 3 }
{ "item": "triple_launcher_simple", "prob": 15, "charges-min": 0, "charges-max": 3 },
{ "item": "slingshot_cannon", "prob": 30 }
]
},
{
Expand Down
25 changes: 25 additions & 0 deletions data/json/items/ranged/slings.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,30 @@
"range": 8,
"dispersion": 45,
"durability": 7
},
{
"id": "slingshot_cannon",
"copy-from": "rifle_elastic",
"type": "GUN",
"weapon_category": [ "SLINGSHOTS", "ELASTIC" ],
"color": "brown",
"looks_like": "LAW",
"name": { "str": "slingshot cannon" },
"description": "Somewhere between a bullet crossbow and a slingshot on steroids, this shoulder-mounted weapon uses a winch to keep several elastic bands under tension. It fires full-size rocks with much more power and range than pebbles out of a normal slingshot. High strength will make it faster to reload.",
"price": "115 USD",
"price_postapoc": "15 USD",
"material": [ "wood", "plastic" ],
"ammo": "rock",
"weight": "8 kg",
"volume": "4 L",
"skill": "launcher",
"ranged_damage": { "damage_type": "bash", "amount": 20 },
"dispersion": 60,
"range": 24,
"reload": 800,
"durability": 6,
"clip_size": 1,
"valid_mod_locations": [ [ "accessories", 2 ], [ "sights", 1 ], [ "sling", 1 ] ],
"delete": { "flags": [ "WATERPROOF_GUN", "UNDERWATER_GUN" ] }
}
]
20 changes: 20 additions & 0 deletions data/json/recipes/weapon/ranged.json
Original file line number Diff line number Diff line change
Expand Up @@ -1214,5 +1214,25 @@
"book_learn": [ [ "manual_luty", 4 ] ],
"qualities": [ { "id": "SAW_M_FINE", "level": 1 }, { "id": "SCREW_FINE", "level": 1 } ],
"components": [ [ [ "pipe", 2 ] ], [ [ "scrap", 3 ] ], [ [ "spring", 1 ] ], [ [ "2x4", 2 ] ], [ [ "sheet_metal", 1 ] ] ]
},
{
"type": "recipe",
"result": "slingshot_cannon",
"category": "CC_WEAPON",
"subcategory": "CSC_WEAPON_RANGED",
"skill_used": "fabrication",
"skills_required": [ [ "mechanics", 2 ] ],
"difficulty": 4,
"time": "30 m",
"autolearn": true,
"book_learn": [ [ "manual_fabrication", 3 ], [ "textbook_fabrication", 3 ], [ "manual_launcher", 2 ] ],
"using": [ [ "wood_structural", 2 ], [ "steel_tiny", 1 ] ],
"qualities": [
{ "id": "CUT", "level": 1 },
{ "id": "HAMMER", "level": 2 },
{ "id": "SCREW", "level": 1 },
{ "id": "SAW_W", "level": 1 }
],
"components": [ [ [ "hose", 4 ] ], [ [ "foot_crank", 1 ] ], [ [ "spring", 1 ] ] ]
}
]
17 changes: 17 additions & 0 deletions data/json/vehicleparts/turret.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,5 +461,22 @@
"breaks_into": [ { "item": "scrap", "count": 28 }, { "item": "steel_chunk", "count": 20 }, { "item": "steel_lump", "count": 12 } ],
"requirements": { "install": { "skills": [ [ "mechanics", 4 ], [ "rifle", 2 ] ] }, "removal": { "skills": [ [ "mechanics", 3 ] ] } },
"description": "A rotary firearm from the 19th Century driving multiple barrels with a hand crank for sustained fire."
},
{
"id": "mounted_slingshot_cannon",
"copy-from": "turret",
"type": "vehicle_part",
"name": { "str": "mounted slingshot cannon" },
"item": "slingshot_cannon",
"looks_like": "tow_launcher",
"color": "brown",
"broken_color": "light_gray",
"breaks_into": [
{ "item": "steel_chunk", "count": [ 1, 2 ] },
{ "item": "scrap", "count": [ 0, 2 ] },
{ "item": "splinter", "count": [ 8, 16 ] },
{ "item": "hose", "count": [ 0, 2 ] }
],
"requirements": { "install": { "skills": [ [ "mechanics", 3 ], [ "launcher", 1 ] ] }, "removal": { "skills": [ [ "mechanics", 1 ] ] } }
}
]

0 comments on commit 13ae3d3

Please sign in to comment.