Fix duplicate results from analyzing some objects (#7660)

This commit is contained in:
Meghan-Rossi
2020-09-20 04:17:40 -07:00
committed by GitHub
parent 04e6cde877
commit 4cd1f55467
6 changed files with 8 additions and 18 deletions
@@ -43,9 +43,12 @@
for(var/obj/item/I in contents)
. += "<span class='notice'>\the [I]</span>"
/obj/machinery/particle_smasher/atmosanalyze(var/mob/user)
return list("<span class='notice'>\The [src] reads an energy level of [energy].</span>")
/obj/machinery/particle_smasher/attackby(obj/item/W as obj, mob/user as mob)
if(W.type == /obj/item/device/analyzer)
to_chat(user, "<span class='notice'>\The [src] reads an energy level of [energy].</span>")
return
else if(istype(W, /obj/item/stack/material))
var/obj/item/stack/material/M = W
if(M.uses_charge)