Skip to content

Commit

Permalink
Add staff sling and ammo (CleverRaven#35417)
Browse files Browse the repository at this point in the history
  • Loading branch information
snipercup authored and AMurkin committed Nov 13, 2019
1 parent 56c5661 commit 8cf4b1e
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 16 deletions.
22 changes: 22 additions & 0 deletions data/json/items/ammo.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,28 @@
"container": "metal_tank_little",
"count": 10
},
{
"type": "AMMO",
"id": "rock",
"symbol": "*",
"color": "light_gray",
"name": "rock",
"description": "A rock the size of a baseball. Makes a decent melee weapon, and is also good for throwing at enemies.",
"category": "spare_parts",
"material": "stone",
"ammo_type": "rock",
"flags": "TRADER_AVOID",
"weight": "657 g",
"volume": "250 ml",
"bashing": 7,
"damage": 7,
"range": 10,
"dispersion": 14,
"loudness": 0,
"to_hit": -2,
"effects": [ "NEVER_MISFIRES", "NON-FOULING", "RECOVER_80" ],
"qualities": [ [ "HAMMER", 1 ] ]
},
{
"type": "AMMO",
"id": "pebble",
Expand Down
6 changes: 6 additions & 0 deletions data/json/items/ammo_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
"name": "pebbles",
"default": "pebble"
},
{
"type": "ammunition_type",
"id": "rock",
"name": "rocks",
"default": "rock"
},
{
"type": "ammunition_type",
"id": "shotcanister",
Expand Down
16 changes: 0 additions & 16 deletions data/json/items/melee.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,6 @@
"category": "weapons",
"qualities": [ [ "AXE", 2 ], [ "CUT", 1 ], [ "HAMMER", 2 ], [ "HAMMER_FINE", 1 ], [ "BUTCHER", 16 ] ]
},
{
"type": "GENERIC",
"id": "rock",
"symbol": "*",
"color": "light_gray",
"name": "rock",
"description": "A rock the size of a baseball. Makes a decent melee weapon, and is also good for throwing at enemies.",
"category": "spare_parts",
"material": "stone",
"flags": "TRADER_AVOID",
"weight": "657 g",
"volume": "250 ml",
"bashing": 7,
"to_hit": -2,
"qualities": [ [ "HAMMER", 1 ] ]
},
{
"type": "GENERIC",
"id": "sharp_rock",
Expand Down
34 changes: 34 additions & 0 deletions data/json/items/ranged.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,40 @@
"durability": 6,
"clip_size": 1
},
{
"id": "staff_sling",
"looks_like": "slingshot",
"type": "GUN",
"symbol": "(",
"color": "brown",
"name": "staff sling",
"description": "A leather sling attached to a staff, easy to use and accurate. It uses rocks as ammunition.",
"price": 150,
"//": "The staff sling,consists of a staff with a short sling at one end. ",
"material": [ "wood", "leather" ],
"flags": [
"RELOAD_AND_SHOOT",
"NEVER_JAMS",
"PRIMITIVE_RANGED_WEAPON",
"BELTED",
"DURABLE_MELEE",
"NONCONDUCTIVE",
"SHEATH_SPEAR",
"ALWAYS_TWOHAND"
],
"techniques": [ "WBLOCK_2", "RAPID", "SWEEP" ],
"skill": "throw",
"ammo": "rock",
"weight": "2000 g",
"volume": "3 L",
"to_hit": 1,
"ranged_damage": 10,
"bashing": 18,
"range": 10,
"dispersion": 200,
"durability": 8,
"clip_size": 1
},
{
"id": "slingshot",
"//": "Tileset whitelist for sling & slingshots.",
Expand Down
13 changes: 13 additions & 0 deletions data/json/recipes/weapon/ranged.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
"using": [ [ "welding_standard", 40 ] ],
"components": [ [ [ "pipe", 2 ] ], [ [ "hose", 2 ] ], [ [ "steel_lump", 1 ], [ "steel_chunk", 4 ], [ "scrap", 12 ] ] ]
},
{
"type": "recipe",
"result": "staff_sling",
"category": "CC_WEAPON",
"subcategory": "CSC_WEAPON_RANGED",
"skill_used": "fabrication",
"difficulty": 3,
"skills_required": [ "throw", 1 ],
"time": "1 h",
"autolearn": true,
"qualities": [ { "id": "HAMMER", "level": 3 }, { "id": "SAW_W", "level": 1 } ],
"components": [ [ [ "stick_long", 1 ] ], [ [ "sling", 1 ] ], [ [ "nail", 1 ] ] ]
},
{
"result": "nailrifle",
"type": "recipe",
Expand Down

0 comments on commit 8cf4b1e

Please sign in to comment.