mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Alert Revert (#6631)
This commit is contained in:
@@ -397,16 +397,11 @@
|
|||||||
usr << "<span class='info'>There isn't enough space left on \the [src] to write anything.</span>"
|
usr << "<span class='info'>There isn't enough space left on \the [src] to write anything.</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
var/t = sanitize(input("Enter what you want to write:", "Write", null, null) as message, extra = 0)
|
var/t = sanitize(input("Enter what you want to write:", "Write", null, null) as message, MAX_PAPER_MESSAGE_LEN, extra = 0)
|
||||||
|
|
||||||
if(!t)
|
if(!t)
|
||||||
return
|
return
|
||||||
|
|
||||||
if(t > free_space)
|
|
||||||
var/textalert = "[copytext(t, free_space-5, free_space)] ..."
|
|
||||||
alert(usr, "You've gone over the allowed amount of text! Here's where you're about to be cut off: [textalert]", "", "Okay!")
|
|
||||||
t = sanitize(input("Enter what you want to write:", "Write", null, textalert) as message, extra = 0)
|
|
||||||
|
|
||||||
var/obj/item/i = usr.get_active_hand() // Check to see if he still got that darn pen, also check if he's using a crayon or pen.
|
var/obj/item/i = usr.get_active_hand() // Check to see if he still got that darn pen, also check if he's using a crayon or pen.
|
||||||
var/iscrayon = 0
|
var/iscrayon = 0
|
||||||
if(!istype(i, /obj/item/weapon/pen))
|
if(!istype(i, /obj/item/weapon/pen))
|
||||||
|
|||||||
Reference in New Issue
Block a user