Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cordless drills to "power tools" itemgroup, create corded power drills #68021

Merged
merged 6 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/json/itemgroups/SUS/domestic.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@
{ "item": "bottle_opener", "prob": 75 },
{ "item": "pockknife", "prob": 75 },
{ "item": "cordless_drill", "prob": 70 },
{ "item": "corded_powerdrill", "prob": 20 },
{ "item": "scissors", "prob": 65 },
{ "item": "pliers", "prob": 65 },
{ "item": "permanent_marker", "prob": 70, "charges-min": 50 },
Expand Down
8 changes: 6 additions & 2 deletions data/json/itemgroups/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"items": [
{ "group": "tools_common", "prob": 100 },
{ "item": "circsaw_off", "prob": 100, "charges": [ 0, 500 ] },
{ "item": "cordless_drill", "prob": 100, "charges": [ 0, 500 ] },
{ "item": "cordless_drill", "prob": 80, "charges": [ 0, 500 ] },
{ "item": "corded_powerdrill", "prob": 80 },
{ "item": "reciprocating_saw", "prob": 80, "charges": [ 0, 500 ] },
{ "item": "cordless_impact_wrench", "prob": 20, "charges": [ 0, 500 ] },
[ "hand_drill", 20 ],
Expand Down Expand Up @@ -150,7 +151,8 @@
{ "item": "circsaw_off", "prob": 25, "charges": [ 0, 500 ] },
{ "item": "reciprocating_saw", "prob": 20, "charges": [ 0, 500 ] },
{ "item": "cordless_impact_wrench", "prob": 10, "charges": [ 0, 500 ] },
{ "item": "cordless_drill", "prob": 45, "charges": [ 0, 500 ] }
{ "item": "cordless_drill", "prob": 20, "charges": [ 0, 500 ] },
{ "item": "corded_powerdrill", "prob": 20 }
]
},
{
Expand Down Expand Up @@ -842,6 +844,8 @@
{ "item": "elec_jackhammer", "prob": 50, "charges": [ 0, 1320 ] },
{ "item": "reciprocating_saw", "prob": 50, "charges": [ 0, 500 ] },
{ "item": "cordless_impact_wrench", "prob": 30, "charges": [ 0, 500 ] },
{ "item": "cordless_drill", "prob": 20, "charges": [ 0, 500 ] },
{ "item": "corded_powerdrill", "prob": 30 },
{ "item": "circsaw_off", "prob": 10, "charges": [ 0, 500 ] },
{ "item": "angle_grinder", "prob": 20, "charges": [ 0, 500 ] },
{ "item": "masonrysaw_off", "prob": 50, "charges": [ 0, 450 ] },
Expand Down
30 changes: 30 additions & 0 deletions data/json/items/tool/workshop.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,36 @@
],
"melee_damage": { "bash": 3, "cut": 1 }
},
{
"id": "corded_powerdrill",
"type": "TOOL",
"name": { "str": "power drill" },
dchieh222 marked this conversation as resolved.
Show resolved Hide resolved
"description": "A power drill with a selection of bits, with a cord for power. ",
"weight": "2721 g",
"volume": "750 ml",
"longest_side": "22 cm",
"price": 2000,
"price_postapoc": 250,
"to_hit": -2,
"material": [ "plastic", "steel" ],
"symbol": ";",
"color": "yellow",
"ammo": [ "battery" ],
"qualities": [ [ "SCREW", 1 ] ],
"charged_qualities": [ [ "DRILL", 3 ] ],
"charges_per_use": 5,
"use_action": [
{
"type": "link_up",
"menu_text": "Plug in / Unplug",
"ammo_scale": 0,
"cable_length": 3,
"charge_rate": "2200 W"
}
],
dchieh222 marked this conversation as resolved.
Show resolved Hide resolved
"flags": [ "NONCONDUCTIVE", "FRAGILE_MELEE", "NO_UNLOAD", "NO_RELOAD", "WATER_BREAK", "ELECTRONIC" ],
"melee_damage": { "bash": 3, "cut": 1 }
},
{
"id": "cordless_impact_wrench",
"type": "TOOL",
Expand Down
1 change: 1 addition & 0 deletions data/json/npcs/items_generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@
[ "cooking_oil", 3 ],
[ "cooking_oil2", 3 ],
[ "cordless_drill", 2 ],
[ "corded_powerdrill", 2 ],
[ "cornmeal", 3 ],
{ "group": "cotton_ball_bag_used", "prob": 3 },
[ "crack", 3 ],
Expand Down
4 changes: 2 additions & 2 deletions data/json/recipes/ammo/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"batch_time_factors": [ 60, 5 ],
"book_learn": [ [ "manual_pistol", 5 ], [ "recipe_bullets", 3 ] ],
"qualities": [ { "id": "SAW_M", "level": 1 }, { "id": "DRILL", "level": 2 } ],
"tools": [ [ [ "press", -1 ] ], [ [ "cordless_drill", 2 ] ] ],
"tools": [ [ [ "press", -1 ] ], [ [ "cordless_drill", 2 ], ["corded_powerdrill", 2] ] ],
dchieh222 marked this conversation as resolved.
Show resolved Hide resolved
"components": [ [ [ "308_casing", 1 ], [ "3006_casing", 1 ] ] ]
},
{
Expand All @@ -162,7 +162,7 @@
"batch_time_factors": [ 80, 5 ],
"book_learn": [ [ "manual_pistol", 5 ], [ "recipe_bullets", 3 ] ],
"qualities": [ { "id": "SAW_M", "level": 1 }, { "id": "DRILL", "level": 2 } ],
"tools": [ [ [ "press", -1 ] ], [ [ "cordless_drill", 2 ] ] ],
"tools": [ [ [ "press", -1 ] ], [ [ "cordless_drill", 2 ], ["corded_powerdrill", 2] ] ],
dchieh222 marked this conversation as resolved.
Show resolved Hide resolved
"components": [ [ [ "223_casing", 1 ] ] ]
},
{
Expand Down
6 changes: 3 additions & 3 deletions data/json/requirements/toolsets.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"type": "requirement",
"//": "Construction of chainmail items",
"qualities": [ { "id": "HAMMER", "level": 3 }, { "id": "ANVIL", "level": 3 }, { "id": "WRENCH", "level": 1 } ],
"tools": [ [ [ "boltcutters", -1 ] ], [ [ "cordless_drill", 10 ], [ "drill_press_tool", 5 ] ] ]
"tools": [ [ [ "boltcutters", -1 ] ], [ [ "cordless_drill", 10 ], [ "corded_powerdrill", 10 ], [ "drill_press_tool", 5 ] ] ]
dchieh222 marked this conversation as resolved.
Show resolved Hide resolved
},
{
"id": "soldering_standard",
Expand All @@ -259,7 +259,7 @@
"id": "drilling_standard",
"type": "requirement",
"//": "Drilling holes in various materials, including metal",
"tools": [ [ [ "cordless_drill", 2 ], [ "drill_press_tool", 1 ], [ "hand_drill", -1 ] ] ]
"tools": [ [ [ "cordless_drill", 2 ],[ "corded_powerdrill", 2 ], [ "drill_press_tool", 1 ], [ "hand_drill", -1 ] ] ]
dchieh222 marked this conversation as resolved.
Show resolved Hide resolved
},
{
"id": "anesthetic",
Expand Down Expand Up @@ -331,7 +331,7 @@
[ "hammer_sledge", -1 ]
],
[ [ "masonrysaw_off", 100 ], [ "electric_masonrysaw_off", 1320 ] ],
[ [ "cordless_drill", 200 ] ],
[ [ "cordless_drill", 200 ],[ "corded_powerdrill", 200 ] ],
dchieh222 marked this conversation as resolved.
Show resolved Hide resolved
[ [ "angle_grinder", 200 ] ]
]
},
Expand Down
17 changes: 17 additions & 0 deletions data/json/uncraft/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@
[ [ "scrap", 1 ] ]
]
},
{
"result": "corded_powerdrill",
"type": "uncraft",
"activity_level": "MODERATE_EXERCISE",
"skill_used": "fabrication",
"difficulty": 1,
"time": "30 m",
"qualities": [ { "id": "SCREW", "level": 1 } ],
"components": [
[ [ "antenna", 1 ] ],
[ [ "plastic_chunk", 4 ] ],
[ [ "motor_tiny", 1 ] ],
[ [ "power_supply", 1 ] ],
[ [ "cable", 100 ] ],
[ [ "scrap", 1 ] ]
]
},
{
"result": "trimmer_off",
"type": "uncraft",
Expand Down
1 change: 1 addition & 0 deletions data/json/vehicleparts/modular_tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"con_mix",
"copper_pan",
"cordless_drill",
"corded_powerdrill",
"elec_hairtrimmer",
"elec_shears",
"electric_spinwheel",
Expand Down
1 change: 1 addition & 0 deletions gfx/tile_config_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,7 @@
{ "id": "jar_meat_pickled", "fg": -1, "bg": -1, "rotates": false, "multitile": false },
{ "id": "jar_human_pickled", "fg": -1, "bg": -1, "rotates": false, "multitile": false },
{ "id": "cordless_drill", "fg": -1, "bg": -1, "rotates": false, "multitile": false },
{ "id": "corded_powerdrill", "fg": -1, "bg": -1, "rotates": false, "multitile": false },
{ "id": "vac_sealer", "fg": -1, "bg": -1, "rotates": false, "multitile": false },
{ "id": "plastic_bag_vac", "fg": -1, "bg": -1, "rotates": false, "multitile": false },
{ "id": "medical_gauze", "fg": -1, "bg": -1, "rotates": false, "multitile": false },
Expand Down