mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 09:31:54 +00:00
## About The Pull Request This PR fixes wrong usage of bitflags in a few places, where instead of bitfields lists were used. ## Why It's Good For The Game It will help prevent problems that can be a thing in the future, improving consistency of the codebase.
15 lines
485 B
Plaintext
15 lines
485 B
Plaintext
/datum/component/wearertargeting/earprotection
|
|
signals = list(COMSIG_CARBON_SOUNDBANG)
|
|
mobtype = /mob/living/carbon
|
|
proctype = PROC_REF(reducebang)
|
|
var/reduce_amount = 1
|
|
valid_slots = ITEM_SLOT_EARS | ITEM_SLOT_HEAD
|
|
|
|
/datum/component/wearertargeting/earprotection/Initialize(reduce_amount = 1)
|
|
. = ..()
|
|
if(reduce_amount)
|
|
src.reduce_amount = reduce_amount
|
|
|
|
/datum/component/wearertargeting/earprotection/proc/reducebang(datum/source, list/reflist)
|
|
reflist[1] -= reduce_amount
|