[s]Fixes writing bugs/exploits

This commit is contained in:
ShizCalev
2018-02-15 16:10:03 -06:00
committed by CitadelStationBot
parent 1cda9ef2b4
commit 98bbfb8709
15 changed files with 159 additions and 21 deletions
+4 -1
View File
@@ -1040,13 +1040,16 @@ GLOBAL_LIST_EMPTY(allCasters)
/obj/item/newspaper/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 [src]!</span>")
return
if(scribble_page == curr_page)
to_chat(user, "<span class='notice'>There's already a scribble in this page... You wouldn't want to make things too cluttered, would you?</span>")
else
var/s = stripped_input(user, "Write something", "Newspaper")
if (!s)
return
if (!in_range(src, usr) && loc != usr)
if(!user.canUseTopic(src, BE_CLOSE))
return
scribble_page = curr_page
scribble = s