replaces BANG_PROTECT_2 with a component, also kills OMNITONGUE_2 and flags_2
This commit is contained in:
committed by
CitadelStationBot
parent
e42cce26da
commit
0958d35b26
@@ -0,0 +1,11 @@
|
||||
/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(list/reflist)
|
||||
reflist[1]--
|
||||
Reference in New Issue
Block a user