mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Dionaea names among others are now capped when choosing a custom one.
This commit is contained in:
@@ -393,7 +393,7 @@ var/list/advance_cures = list(
|
|||||||
|
|
||||||
if(D.symptoms.len > 0)
|
if(D.symptoms.len > 0)
|
||||||
|
|
||||||
var/new_name = input(user, "Name your new disease.", "New Name")
|
var/new_name = copytext(sanitize(input(user, "Name your new disease.", "New Name")),1,MAX_NAME_LEN)
|
||||||
D.AssignName(new_name)
|
D.AssignName(new_name)
|
||||||
D.Refresh()
|
D.Refresh()
|
||||||
|
|
||||||
|
|||||||
@@ -844,7 +844,7 @@
|
|||||||
|
|
||||||
if (bufferOption == "changeLabel")
|
if (bufferOption == "changeLabel")
|
||||||
var/datum/dna2/record/buf = src.buffers[bufferId]
|
var/datum/dna2/record/buf = src.buffers[bufferId]
|
||||||
var/text = sanitize(input(usr, "New Label:", "Edit Label", buf.name) as text|null)
|
var/text = copytext(sanitize(input(usr, "New Label:", "Edit Label", buf.name) as text|null)),1,MAX_NAME_LEN)
|
||||||
buf.name = text
|
buf.name = text
|
||||||
src.buffers[bufferId] = buf
|
src.buffers[bufferId] = buf
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
host << "<B>Too much darkness will send you into shock and starve you, but light will help you heal.</B>"
|
host << "<B>Too much darkness will send you into shock and starve you, but light will help you heal.</B>"
|
||||||
|
|
||||||
var/newname = input(host,"Enter a name, or leave blank for the default name.", "Name change","") as text
|
var/newname = input(host,"Enter a name, or leave blank for the default name.", "Name change","") as text
|
||||||
newname = sanitize(newname)
|
newname = sanitize(newname),1,MAX_NAME_LEN)
|
||||||
if (newname != "")
|
if (newname != "")
|
||||||
host.real_name = newname
|
host.real_name = newname
|
||||||
host.name = host.real_name
|
host.name = host.real_name
|
||||||
Reference in New Issue
Block a user