[s]Fixes writing bugs/exploits (#35552)

* literacy crisis

* cleanup
This commit is contained in:
ShizCalev
2018-02-15 17:09:16 -05:00
committed by oranges
parent 6230b0f363
commit 0195f03435
15 changed files with 87 additions and 22 deletions
@@ -25,10 +25,13 @@
/obj/item/implantcase/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/pen))
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on the side of [src]!</span>")
return
var/t = stripped_input(user, "What would you like the label to be?", name, null)
if(user.get_active_held_item() != W)
return
if(!in_range(src, user) && loc != user)
if(!user.canUseTopic(src, BE_CLOSE))
return
if(t)
name = "implant case - '[t]'"
@@ -43,10 +43,13 @@
/obj/item/implanter/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/pen))
if(!user.is_literate())
to_chat(user, "<span class='notice'>You prod at [src] with [W]!</span>")
return
var/t = stripped_input(user, "What would you like the label to be?", name, null)
if(user.get_active_held_item() != W)
return
if(!in_range(src, user) && loc != user)
if(!user.canUseTopic(src, BE_CLOSE))
return
if(t)
name = "implanter ([t])"