Skip to content

Commit

Permalink
Merge pull request #55386 from bombasticSlacks/in-ear-drivers
Browse files Browse the repository at this point in the history
added in ear lowprofile hearing protection
  • Loading branch information
Rivet-the-Zombie authored Feb 15, 2022
2 parents 735e42d + 9900e30 commit 973d737
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 2 deletions.
6 changes: 5 additions & 1 deletion data/json/itemgroups/Clothing_Gear/clothing.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@
"type": "item_group",
"id": "ear_protection",
"//": "used in shooting_range.",
"items": [ { "item": "powered_earmuffs", "prob": 10, "charges": [ 0, 100 ] }, [ "ear_plugs", 50 ] ]
"items": [
{ "item": "powered_earmuffs", "prob": 10, "charges": [ 0, 100 ] },
[ "ear_plugs", 50 ],
{ "item": "powered_earplugs", "prob": 10, "charges": [ 0, 100 ] }
]
},
{
"id": "clothing_outdoor_shoes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,10 @@
{
"type": "item_group",
"id": "gunshop_accessories",
"items": [ { "item": "powered_earmuffs", "prob": 50, "charges": [ 0, 50 ] }, [ "ear_plugs", 80 ] ]
"items": [
{ "item": "powered_earmuffs", "prob": 50, "charges": [ 0, 50 ] },
[ "ear_plugs", 80 ],
{ "item": "powered_earplugs", "prob": 50, "charges": [ 0, 75 ] }
]
}
]
1 change: 1 addition & 0 deletions data/json/itemgroups/activities_hobbies.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
{ "item": "slingshot", "prob": 10 },
{ "item": "wristrocket", "prob": 5 },
{ "item": "powered_earmuffs", "prob": 80, "charges": [ 0, 50 ] },
{ "item": "powered_earplugs", "prob": 60, "charges": [ 0, 50 ] },
{ "item": "bandolier_wrist", "prob": 100 },
{ "item": "fitness_band", "prob": 5 }
]
Expand Down
50 changes: 50 additions & 0 deletions data/json/items/tool_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -2879,6 +2879,56 @@
],
"armor": [ { "encumbrance": 5, "coverage": 10, "covers": [ "head" ] } ]
},
{
"id": "powered_earplugs",
"type": "TOOL_ARMOR",
"category": "armor",
"symbol": "[",
"color": "blue",
"name": { "str_sp": "shooter's ear plugs" },
"description": "A pair of in-ear drivers designed to dampen loud sounds and amplify quiet sounds. Without batteries or when turned off, they function like normal earplugs and block most sound. They will block sounds over a certain decibel amount when turned on. The earplugs are currently off.",
"flags": [ "DEAF", "OVERSIZE", "USE_UPS", "NO_UNLOAD", "NO_RELOAD" ],
"repairs_like": "powered_earmuffs",
"price": 12500,
"price_postapoc": 1250,
"material": [ "plastic" ],
"weight": "20 g",
"volume": "200 ml",
"charges_per_use": 1,
"ammo": "battery",
"use_action": {
"type": "transform",
"msg": "You turn the earplugs on.",
"target": "powered_earplugs_on",
"active": true,
"need_charges": 1,
"need_charges_msg": "The earplugs's batteries are dead."
},
"material_thickness": 1,
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 100 } } ],
"armor": [ { "coverage": 1 } ]
},
{
"id": "powered_earplugs_on",
"type": "TOOL_ARMOR",
"repairs_like": "powered_earmuffs",
"copy-from": "powered_earplugs",
"symbol": "[",
"color": "blue",
"name": { "str_sp": "shooter's ear plugs (on)" },
"description": "A pair of in-ear drivers designed to dampen loud sounds and amplify quiet sounds. Without batteries or when turned off, they function like normal earplugs and block most sound. They will block sounds over a certain decibel amount when turned on. The earplugs are currently on.",
"flags": [ "OVERSIZE", "PARTIAL_DEAF", "USE_UPS", "NO_UNLOAD", "NO_RELOAD" ],
"//": "6-8 hours battery life",
"power_draw": 4000,
"revert_to": "powered_earplugs",
"use_action": {
"ammo_scale": 0,
"type": "transform",
"menu_text": "Turn off",
"msg": "The %s flicks off.",
"target": "powered_earplugs"
}
},
{
"id": "stethoscope",
"type": "TOOL_ARMOR",
Expand Down

0 comments on commit 973d737

Please sign in to comment.