///Use on an anomaly core to "awake" the anomaly and stabilize it /obj/item/anomaly_releaser name = "anomaly releaser" desc = "Single-use injector that releases and stabilizes anomalies by injecting an unknown substance." icon = 'icons/obj/device.dmi' icon_state = "anomaly_releaser" inhand_icon_state = "stimpen" lefthand_file = 'icons/mob/inhands/equipment/medical_lefthand.dmi' righthand_file = 'icons/mob/inhands/equipment/medical_righthand.dmi' throwforce = 0 w_class = WEIGHT_CLASS_SMALL throw_speed = 3 throw_range = 5 ///icon state after being used up var/used_icon_state = "anomaly_releaser_used" ///are we used? if used we can't be used again var/used = FALSE ///Can we be used infinitely? var/infinite = FALSE /obj/item/anomaly_releaser/afterattack(atom/target, mob/user, proximity_flag, click_parameters) . = ..() if(used || !proximity_flag || !istype(target, /obj/item/assembly/signaler/anomaly)) return if(!do_after(user, 3 SECONDS, target)) return var/obj/item/assembly/signaler/anomaly/core = target if(!core.anomaly_type) return var/obj/effect/anomaly/anomaly = new core.anomaly_type(get_turf(core)) anomaly.stabilize() if(infinite) return icon_state = used_icon_state used = TRUE name = "used " + name qdel(core)