[s]Fixes writing bugs/exploits

This commit is contained in:
ShizCalev
2018-02-15 17:09:16 -05:00
committed by CitadelStationBot
parent 1cda9ef2b4
commit 98bbfb8709
15 changed files with 159 additions and 21 deletions
+4 -1
View File
@@ -41,8 +41,11 @@
to_chat(user, "<span class='notice'>You put [W] into [src].</span>")
update_icon()
else if(istype(W, /obj/item/pen))
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on the cover of [src]!</span>")
return
var/n_name = copytext(sanitize(input(user, "What would you like to label the folder?", "Folder Labelling", null) as text), 1, MAX_NAME_LEN)
if((in_range(src,user) && user.stat == CONSCIOUS))
if(user.canUseTopic(src, BE_CLOSE))
name = "folder[(n_name ? " - '[n_name]'" : null)]"