mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Increases the maximum length of custom item descriptions (#31742)
* adds new defines * multiline to be safe * MORE!!! * why wasn't the 450 field multiline
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
//Don't set this very much higher then 1024 unless you like inviting people in to dos your server with message spam
|
||||
// Don't set this very much higher then 1024 unless you like inviting people in to dos your server with message spam
|
||||
#define MAX_MESSAGE_LEN 1024
|
||||
#define MAX_PAPER_MESSAGE_LEN 3072
|
||||
#define MAX_PAPER_FIELDS 50
|
||||
///Max Characters that can be on a single book page, this will give players an average of 5000 words worth of writing space (1000 per page)
|
||||
/// Max Characters that can be on a single book page, this will give players an average of 5000 words worth of writing space (1000 per page)
|
||||
#define MAX_CHARACTERS_PER_BOOKPAGE 5000
|
||||
#define MAX_SUMMARY_LEN 1500
|
||||
#define MAX_NAME_LEN 50 //diona names can get loooooooong
|
||||
#define MAX_FLAVORTEXT_PRINT 400 //Amount of flavor text characters to print before cutting off.
|
||||
#define MAX_NAME_LEN 50 // diona names can get loooooooong
|
||||
#define MAX_TWEAKNAME_LEN 50 // geartweaks item name; separated if this ever needs changing on its own
|
||||
#define MAX_TWEAKDESC_LEN 450 // geartweaks item description
|
||||
#define MAX_FLAVORTEXT_PRINT 400 // Amount of flavor text characters to print before cutting off.
|
||||
|
||||
/// Removes characters incompatible with file names.
|
||||
#define SANITIZE_FILENAME(text) (GLOB.filename_forbidden_chars.Replace(text, ""))
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
return ""
|
||||
|
||||
/datum/gear_tweak/rename/get_metadata(user, metadata)
|
||||
var/new_name = tgui_input_text(user, "Rename an object. Enter empty line for stock name.", "Rename Gear", metadata, MAX_NAME_LEN)
|
||||
var/new_name = tgui_input_text(user, "Rename an object. Enter empty line for stock name.", "Rename Gear", metadata, MAX_TWEAKNAME_LEN, TRUE)
|
||||
if(isnull(new_name))
|
||||
return metadata
|
||||
return new_name
|
||||
@@ -74,7 +74,7 @@
|
||||
return ""
|
||||
|
||||
/datum/gear_tweak/redesc/get_metadata(user, metadata)
|
||||
var/new_desc = tgui_input_text(user, "Edit an object's description. Enter empty line for stock description.", "Edit Gear Description", metadata, MAX_NAME_LEN)
|
||||
var/new_desc = tgui_input_text(user, "Edit an object's description. Enter empty line for stock description.", "Edit Gear Description", metadata, MAX_TWEAKDESC_LEN, TRUE)
|
||||
if(isnull(new_desc))
|
||||
return metadata
|
||||
return new_desc
|
||||
|
||||
Reference in New Issue
Block a user