mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-02 04:52:10 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
34 lines
1.2 KiB
Plaintext
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_notice("The circuitry of [src] fries from the strain of neutralizing [A]!"))
|
|
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
|