code/__DEFINES/paper.dm ![code/__DEFINES/paper.dm0](git.png)
MAX_PAPER_LENGTH | Maximimum number of characters that we allow on paper. |
---|---|
MAX_PAPER_STAMPS | Max number of stamps that can be applied to the paper in tgui. |
MAX_PAPER_STAMPS_OVERLAYS | Max number of stamp overlays that we'll add to a piece of paper's icon. |
MAX_PAPER_INPUT_FIELD_LENGTH | Maximum length of input fields. Input fields greater than this length are clamped tgui-side. Input field text input greater than this length is rejected tgui-side, discarded + logged if it reaches DM-side. |
MODE_READING | Should not be able to write on or stamp paper. |
MODE_WRITING | Should be able to write on paper. |
MODE_STAMPING | Should be able to stamp paper. |
LIST_PAPER_COLOR | key defines used when converting a paper to and fro' a data/json list. It's really important that they stay the same lest we break persistence. |
Define Details
LIST_PAPER_COLOR ![code/__DEFINES/paper.dm 26](git.png)
key defines used when converting a paper to and fro' a data/json list. It's really important that they stay the same lest we break persistence.
MAX_PAPER_INPUT_FIELD_LENGTH ![code/__DEFINES/paper.dm 8](git.png)
Maximum length of input fields. Input fields greater than this length are clamped tgui-side. Input field text input greater than this length is rejected tgui-side, discarded + logged if it reaches DM-side.
MAX_PAPER_LENGTH ![code/__DEFINES/paper.dm 2](git.png)
Maximimum number of characters that we allow on paper.
MAX_PAPER_STAMPS ![code/__DEFINES/paper.dm 4](git.png)
Max number of stamps that can be applied to the paper in tgui.
MAX_PAPER_STAMPS_OVERLAYS ![code/__DEFINES/paper.dm 6](git.png)
Max number of stamp overlays that we'll add to a piece of paper's icon.
MODE_READING ![code/__DEFINES/paper.dm 11](git.png)
Should not be able to write on or stamp paper.
MODE_STAMPING ![code/__DEFINES/paper.dm 15](git.png)
Should be able to stamp paper.
MODE_WRITING ![code/__DEFINES/paper.dm 13](git.png)
Should be able to write on paper.