Adds holding pen check + alert

This commit is contained in:
Shadow
2020-01-10 19:55:04 -06:00
parent 335676d340
commit 061c6dfb43
+4
View File
@@ -404,6 +404,10 @@
var/obj/item/i = usr.get_active_hand() // Check to see if he still got that darn pen, also check if he's using a crayon or pen.
var/iscrayon = 0
if(!istype(i, /obj/item/weapon/pen))
alert(usr, "You aren't holding a pen anymore! If you want to keep your work, grab one.", "Confirm Continuation", "Okay")
i = usr.get_active_hand()
if(!istype(i, /obj/item/weapon/pen))
var/mob/living/M = usr
if(istype(M) && M.back && istype(M.back,/obj/item/weapon/rig))