mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Adds the signal origin as the first arg to all signals * Fixes some storage and nanite procs
12 lines
379 B
Plaintext
12 lines
379 B
Plaintext
/datum/component/wearertargeting/earprotection
|
|
signals = list(COMSIG_CARBON_SOUNDBANG)
|
|
mobtype = /mob/living/carbon
|
|
|
|
/datum/component/wearertargeting/earprotection/Initialize(_valid_slots)
|
|
. = ..()
|
|
valid_slots = _valid_slots
|
|
callback = CALLBACK(src, .proc/reducebang)
|
|
|
|
/datum/component/wearertargeting/earprotection/proc/reducebang(datum/source, list/reflist)
|
|
reflist[1]--
|