[MIRROR] John Splintercell: a gun that is only good for shooting out lights [MDB IGNORE] (#23650)

* John Splintercell: a gun that is only good for shooting out lights

* Removes this flashlight nonsense, we don't need copy pasted procs for something this simple

---------

Co-authored-by: Hatterhat <31829017+Hatterhat@users.noreply.github.com>
Co-authored-by: Pinta <68373373+softcerv@users.noreply.github.com>
Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-09-12 22:57:44 +02:00
committed by GitHub
parent f666e95564
commit e45f17efae
18 changed files with 191 additions and 57 deletions
@@ -38,6 +38,7 @@
)
//technically it's huge and bulky, but this provides an incentive to use it
AddComponent(/datum/component/two_handed, force_unwielded=0, force_wielded=20)
RegisterSignal(src, COMSIG_HIT_BY_SABOTEUR, PROC_REF(on_saboteur))
/obj/item/kinetic_crusher/Destroy()
QDEL_LIST(trophies)
@@ -165,6 +166,10 @@
playsound(user, 'sound/weapons/empty.ogg', 100, TRUE)
update_appearance()
/obj/item/kinetic_crusher/proc/on_saboteur(datum/source, disrupt_duration)
set_light_on(FALSE)
playsound(src, 'sound/weapons/empty.ogg', 100, TRUE)
return TRUE
/obj/item/kinetic_crusher/update_icon_state()
inhand_icon_state = "crusher[HAS_TRAIT(src, TRAIT_WIELDED)]" // this is not icon_state and not supported by 2hcomponent