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

super noise emitter #328

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
69 changes: 69 additions & 0 deletions data/json/items/tool/electronics.json
Original file line number Diff line number Diff line change
Expand Up @@ -914,5 +914,74 @@
"menu_text": "Turn off",
"type": "transform"
}
},
{
"id": "noise_emitter_super",
"type": "TOOL",
"name": { "str": "super noise emitter (off)", "str_pl": "super noise emitters (off)" },
"description": "This is a noisemaker that has been further enhanced with a series of amplifiers. It's about as loud something can get without making you vomit from sound-induced nausea, and it's as sure to attract every zombie in town as it is to give you permanent hearing damage.",
"//": "I estimate this thing is about 130 decibels. Commercial amps can hit similar noise levels at a 100-200w of power input, the survivor's is less efficient.",
"weight": "6000 g",
"volume": "4 L",
"longest_side": "30 cm",
"price": "0 cent",
"price_postapoc": "90 cent",
"to_hit": -1,
"material": [ "plastic", "aluminum", "steel" ],
"symbol": ";",
"color": "yellow",
"ammo": [ "battery" ],
"charges_per_use": 1,
"use_action": {
"target": "noise_emitter_super_on",
"msg": "You turn the super noise emitter on.",
"menu_text": "Turn off",
"active": true,
"type": "transform"
},
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "WATER_BREAK" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"rigid": true,
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
],
"melee_damage": { "bash": 6 }
},
{
"id": "noise_emitter_super_on",
"copy-from": "noise_emitter_super",
"type": "TOOL",
"name": { "str": "super noise emitter (on)", "str_pl": "super noise emitters (on)" },
"description": "This is a noisemaker that has been further enhanced with a series of amplifiers. It's currently making an extraordinary amount of noise - hopefully you have hearing protection.",
"power_draw": "250 W",
"revert_to": "noise_emitter_super",
"use_action": {
"target": "noise_emitter_super",
"msg": "The infernal racket dies as the super noise emitter turns off.",
"menu_text": "Turn off",
"active": false,
"type": "transform"
},
"tick_action": {
"type": "effect_on_conditions",
"effect_on_conditions": [
{
"id": "EOC_toolweapon_running__supernoisemaker",
"effect": {
"run_eoc_with": "EOC_toolweapon_running",
"variables": {
"sound_chance": "0",
"sound_message": { "i18n": true, "str": "Your super noise emitter produces an unholy blast of sonic chaos." },
"volume": "300",
"revert_to": "noise_emitter_super"
}
}
}
]
},
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "TRADER_AVOID", "WATER_BREAK", "POWERED" ]
}
]
22 changes: 22 additions & 0 deletions data/json/recipes/tools/tools_electronic.json
Original file line number Diff line number Diff line change
Expand Up @@ -875,5 +875,27 @@
[ [ "draw_plate", 1 ] ],
[ [ "cable", 10 ] ]
]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "noise_emitter_super",
"category": "CC_ELECTRONIC",
"subcategory": "CSC_ELECTRONIC_TOOLS",
"skill_used": "electronics",
"difficulty": 3,
"time": "40 m",
"autolearn": true,
"book_learn": [ [ "radio_book", 2 ], [ "textbook_anarch", 3 ] ],
"using": [ [ "soldering_standard", 15 ] ],
"proficiencies": [ { "proficiency": "prof_elec_soldering" } ],
"qualities": [ { "id": "SCREW", "level": 1 } ],
"components": [
[ [ "noise_emitter", 1 ], [ "horn_big", 1 ] ],
[ [ "amplifier", 4 ] ],
[ [ "power_supply", 2 ] ],
[ [ "e_scrap", 5 ] ],
[ [ "amplifier_head", 1 ] ]
]
}
]
Loading