Skip to content

Commit

Permalink
Adds dynamite bomb and recipe (#37107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Otten authored and kevingranade committed Jan 17, 2020
1 parent 22ee3d0 commit 9915387
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
57 changes: 57 additions & 0 deletions data/json/items/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -1909,6 +1909,63 @@
},
"flags": [ "TRADER_AVOID", "BOMB" ]
},
{
"id": "dynamite_bomb",
"type": "TOOL",
"category": "weapons",
"name": "dynamite bomb",
"name_plural": "dynamite bombs",
"description": "These are several sticks of explosives surrounded by shrapnel stuffed inside a metal container. The fuse is sticking out through a small hole. Use this item to light the fuse. You will, of course, need a lighter or matches in your inventory to do this. Shortly after lighting the fuse, this item will explode, so get away!",
"weight": "2730 g",
"volume": "2000 ml",
"price": 6000,
"to_hit": -3,
"bashing": 4,
"material": [ "paper", "powder" ],
"symbol": "*",
"looks_like": "fragment_bomb",
"color": "red",
"explode_in_fire": true,
"explosion": { "power": 938, "shrapnel": { "casing_mass": 1597, "fragment_mass": 1 } },
"use_action": {
"target": "dynamite_bomb_act",
"msg": "You light the dynamite.",
"target_charges": 20,
"active": true,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
},
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "BOMB" ]
},
{
"id": "dynamite_bomb_act",
"type": "TOOL",
"category": "weapons",
"name": "dynamite bomb (lit)",
"name_plural": "dynamite bombs (lit)",
"description": "The fuse on this dynamite bomb is lit and hissing. It'll explode any moment now.",
"weight": "2730 g",
"volume": "2000 ml",
"price": 0,
"to_hit": -3,
"bashing": 4,
"material": [ "paper", "powder" ],
"symbol": "*",
"looks_like": "fragment_bomb_act",
"color": "red",
"turns_per_charge": 1,
"explode_in_fire": true,
"explosion": { "power": 938, "shrapnel": { "casing_mass": 1597, "fragment_mass": 1 } },
"use_action": {
"type": "explosion",
"sound_volume": 0,
"sound_msg": "ssss...",
"no_deactivate_msg": "You've already lit the %s, try throwing it instead.",
"explosion": { "power": 938, "shrapnel": { "casing_mass": 1597, "fragment_mass": 1 } }
},
"flags": [ "TRADER_AVOID", "BOMB" ]
},
{
"id": "e_handcuffs",
"type": "TOOL",
Expand Down
15 changes: 15 additions & 0 deletions data/json/recipes/weapon/explosive.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,21 @@
]
]
},
{
"result": "dynamite_bomb",
"type": "recipe",
"category": "CC_WEAPON",
"subcategory": "CSC_WEAPON_EXPLOSIVE",
"skill_used": "fabrication",
"skills_required": [ "mechanics", 2 ],
"difficulty": 3,
"time": "12 m",
"reversible": true,
"autolearn": true,
"qualities": [ { "id": "SAW_M", "level": 1 }, { "id": "GLARE", "level": 2 } ],
"tools": [ [ [ "welder", 20 ], [ "welder_crude", 30 ], [ "toolset", 30 ], [ "soldering_iron", 30 ] ] ],
"components": [ [ [ "metal_tank_little", 1 ] ], [ [ "nail", 200 ], [ "scrap", 16 ] ], [ [ "fuse", 1 ] ], [ [ "dynamite", 1 ] ] ]
},
{
"result": "pipebomb",
"type": "recipe",
Expand Down

0 comments on commit 9915387

Please sign in to comment.