hey ghom i fixed it i think

This commit is contained in:
Hatterhat
2020-01-18 23:35:52 -06:00
parent 9aedc62ddb
commit 590d71ddc1
34 changed files with 84 additions and 70 deletions
@@ -57,12 +57,12 @@
return ..()
/obj/item/laser_pointer/examine(mob/user)
..()
. = ..()
if(in_range(user, src) || isobserver(user))
if(!diode)
to_chat(user, "<span class='notice'>The diode is missing.<span>")
. += "<span class='notice'>The diode is missing.<span>"
else
to_chat(user, "<span class='notice'>A class <b>[diode.rating]</b> laser diode is installed. It is <i>screwed</i> in place.<span>")
. += "<span class='notice'>A class <b>[diode.rating]</b> laser diode is installed. It is <i>screwed</i> in place.<span>"
/obj/item/laser_pointer/afterattack(atom/target, mob/living/user, flag, params)
. = ..()