Files
Bubberstation/code/game/objects/items/devices/anomaly_neutralizer.dm
Gandalf c0b99ccfef Coronal Mass Ejection Event (#3280)
* a

* Update cme.dm

* Update _cme_defines.dm

* Update cme.dm

* Update cme.dm

* Update cme.dm

* a

* Update cme.dm

* a

* random!

* TEMP DEBUG STATS, UNDO ONCE READY TO MERGE!

* a

* Update cme.dm

* better sfx

* Update cme.dm

* Update cme.dm

* Update cme.dm

* Neutralize!

* Update cme.dm

* Update cme.dm

* a

* Update cme.dm

* Update cme.dm

* Update cme.dm

* CME changes

* Update anomaly_neutralizer.dm

* aa

* Update cme.dm

* a

* Update admin_verbs.dm

* Fix gamma loop

* Update cme.dm

* Update set_security_level.dm

* Update code/controllers/subsystem/events.dm
2021-02-15 20:18:57 +00:00

34 lines
1.2 KiB
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"
inhand_icon_state = "electronic"
worn_icon_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/living/user, proximity) //SKYRAT EDIT - MOB/LIVING
..()
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)
//SKYRAT EDIT ADDITON START - CME
if(istype(target, /obj/effect/cme))
var/obj/effect/cme/C = target
to_chat(user, "<span class='danger'>The circuitry of [src] fries from the strain of neutralizing [C] causing you to absorb the shock!</span>")
do_sparks(5, FALSE, src)
electrocute_mob(user, get_area(src), src, 1, TRUE)
user.adjust_fire_stacks(5)
user.IgniteMob()
C.anomalyNeutralize()
qdel(src)
//SKYRAT EDIT END