diff --git a/code/__DEFINES/~monkestation/optfor.dm b/code/__DEFINES/~monkestation/optfor.dm index db0ec80970cf..cb2ed6e1fb66 100644 --- a/code/__DEFINES/~monkestation/optfor.dm +++ b/code/__DEFINES/~monkestation/optfor.dm @@ -26,11 +26,11 @@ #define OPFOR_REQUEST_UPDATE_COOLDOWN (5 MINUTES) #define OPFOR_PING_COOLDOWN (1 MINUTES) -#define OPFOR_TEXT_LIMIT_TITLE 40 +#define OPFOR_TEXT_LIMIT_TITLE 64 #define OPFOR_TEXT_LIMIT_BACKSTORY 2000 #define OPFOR_TEXT_LIMIT_DESCRIPTION 1000 #define OPFOR_TEXT_LIMIT_JUSTIFICATION 1000 -#define OPFOR_TEXT_LIMIT_MESSAGE 300 +#define OPFOR_TEXT_LIMIT_MESSAGE MAX_MESSAGE_LEN #define OPFOR_EQUIPMENT_LIMIT 10 #define OPFOR_EQUIPMENT_COUNT_LIMIT 5 diff --git a/tgui/packages/tgui/interfaces/OpposingForcePanel.jsx b/tgui/packages/tgui/interfaces/OpposingForcePanel.jsx index 34621a8a4577..c38c1bdd694c 100644 --- a/tgui/packages/tgui/interfaces/OpposingForcePanel.jsx +++ b/tgui/packages/tgui/interfaces/OpposingForcePanel.jsx @@ -248,6 +248,7 @@ export const OpposingForceTab = (props) => { height="100px" value={backstory} placeholder="Provide a description of why you want to do bad things. Include specifics such as what lead upto the events that made you want to do bad things, think of it as though you were your character, react appropriately. If you don't have any ideas, check the #player-shared-opfors channel for some. (2000 char limit)" + maxLength={2000} onChange={(_e, value) => act('set_backstory', { backstory: value, @@ -351,6 +352,7 @@ export const OpposingForceObjectives = (props) => { width="100%" placeholder="blank objective" value={selectedObjective.title} + maxLength={64} onChange={(e, value) => act('set_objective_title', { objective_ref: selectedObjective.ref, @@ -466,6 +468,7 @@ export const OpposingForceObjectives = (props) => { fluid disabled={!can_edit} height="85px" + maxLength={1000} value={selectedObjective.description} onChange={(e, value) => act('set_objective_description', { @@ -492,6 +495,7 @@ export const OpposingForceObjectives = (props) => { disabled={!can_edit} height="85px" value={selectedObjective.justification} + maxLength={1000} onChange={(e, value) => act('set_objective_justification', { objective_ref: selectedObjective.ref, @@ -581,6 +585,7 @@ export const EquipmentTab = (props) => { width="100%" placeholder="Reason for item" value={equipment.reason} + maxLength={1000} onChange={(e, value) => act('set_equipment_reason', { selected_equipment_ref: equipment.ref, @@ -656,6 +661,7 @@ export const AdminChatTab = (props) => { selfClear placeholder="Send a message or command using '/'" mt={1} + maxLength={1024} onEnter={(e, value) => act('send_message', { message: value,