mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-21 14:34:49 +00:00
* (mostly) nodrop * (mostly) dropdel * (mostly) abstract * nobludgeon * things i missed * forgot one * unintended changes * energy handcuffs
22 lines
774 B
Plaintext
22 lines
774 B
Plaintext
/obj/item/anomaly_neutralizer
|
|
name = "anomaly neutralizer"
|
|
desc = "A one-use device capable of instantly neutralizing anomalies."
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "memorizer2"
|
|
item_state = "electronic"
|
|
lefthand_file = 'icons/mob/inhands/misc/devices_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/misc/devices_righthand.dmi'
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
slot_flags = ITEM_SLOT_BELT
|
|
item_flags = NOBLUDGEON
|
|
|
|
/obj/item/anomaly_neutralizer/afterattack(atom/target, mob/user, proximity)
|
|
..()
|
|
if(!proximity || !target)
|
|
return
|
|
if(istype(target, /obj/effect/anomaly))
|
|
var/obj/effect/anomaly/A = target
|
|
to_chat(user, "<span class='notice'>The circuitry of [src] fries from the strain of neutralizing [A]!</span>")
|
|
A.anomalyNeutralize()
|
|
qdel(src)
|