mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-08 16:41:58 +00:00
Allow an empty string when editing records, flavors, OOC notes (#24316)
This commit is contained in:
committed by
GitHub
parent
bca60c17df
commit
112a606ae2
@@ -66,21 +66,21 @@
|
||||
|
||||
if(href_list["task"] == "med_record")
|
||||
var/medmsg = tgui_input_text(usr, "Set your medical notes here.", "Medical Records", active_character.med_record, max_length = MAX_PAPER_MESSAGE_LEN, multiline = TRUE)
|
||||
if(!medmsg)
|
||||
if(isnull(medmsg))
|
||||
return
|
||||
active_character.med_record = medmsg
|
||||
active_character.SetRecords(user)
|
||||
|
||||
if(href_list["task"] == "sec_record")
|
||||
var/secmsg = tgui_input_text(usr, "Set your security notes here.", "Security Records", active_character.sec_record, max_length = MAX_PAPER_MESSAGE_LEN, multiline = TRUE)
|
||||
if(!secmsg)
|
||||
if(isnull(secmsg))
|
||||
return
|
||||
active_character.sec_record = secmsg
|
||||
active_character.SetRecords(user)
|
||||
|
||||
if(href_list["task"] == "gen_record")
|
||||
var/genmsg = tgui_input_text(usr, "Set your employment notes here.", "Employment Records", active_character.gen_record, max_length = MAX_PAPER_MESSAGE_LEN, multiline = TRUE)
|
||||
if(!genmsg)
|
||||
if(isnull(genmsg))
|
||||
return
|
||||
active_character.gen_record = genmsg
|
||||
active_character.SetRecords(user)
|
||||
@@ -319,7 +319,7 @@
|
||||
|
||||
if("metadata")
|
||||
var/new_metadata = tgui_input_text(user, "Enter any information you'd like others to see, such as Roleplay-preferences:", "Game Preference", active_character.metadata, multiline = TRUE, encode = FALSE)
|
||||
if(!new_metadata)
|
||||
if(isnull(new_metadata))
|
||||
return
|
||||
active_character.metadata = new_metadata
|
||||
|
||||
@@ -706,7 +706,7 @@
|
||||
|
||||
if("flavor_text")
|
||||
var/msg = tgui_input_text(usr, "Set the flavor text in your 'examine' verb. The flavor text should be a physical descriptor of your character at a glance. SFW Drawn Art of your character is acceptable.", "Flavor Text", active_character.flavor_text, max_length = MAX_PAPER_MESSAGE_LEN, multiline = TRUE)
|
||||
if(!msg)
|
||||
if(isnull(msg))
|
||||
return
|
||||
active_character.flavor_text = msg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user