mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
Merge pull request #18005 from swankcookie/book_length
adds a 20 character limit to book titles
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user