From dae5010ed07d229962c73cc38c980d03c3af1f1f Mon Sep 17 00:00:00 2001 From: Swankcookie Date: Sat, 28 May 2016 13:45:03 -0500 Subject: [PATCH] adds a 20 character limit to book titles --- code/modules/library/lib_items.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm index fc376776adc..e6da9004c1b 100644 --- a/code/modules/library/lib_items.dm +++ b/code/modules/library/lib_items.dm @@ -175,7 +175,6 @@ var/title //The real name of the book. var/window_size = null // Specific window size for the book, i.e: "1920x1080", Size x Width - /obj/item/weapon/book/attack_self(mob/user) if(is_blind(user)) return @@ -201,8 +200,11 @@ switch(choice) if("Title") var/newtitle = reject_bad_text(stripped_input(usr, "Write a new title:")) + if (length(newtitle) > 20) + usr << "That title won't fit on the cover!" + return if(!newtitle) - usr << "The title is invalid." + usr << "That title is invalid." return else name = newtitle