Goonstation 13 - Modules - TypesVar Details - Proc Details

Academy automated printing press

makes books and pamphlets.

Vars

alchemical_symbolsalchemical symbols (because theres a lot of them)
book_amounthow many books to make?
book_authorwho made the book?
book_coverwhat cover design to use?
book_infowhat text will the made books have?
book_info_rawraw version of the text, for editing.
book_namewhats the made book's name?
books_upgradeFALSE by default, set to TRUE when custom book covers upgrade is installed
colorable_flairsflairs that can be coloured
colorable_symbolslist of symbols that can be coloured
colors_upgradeFALSE by default, set to TRUE when ink colors upgrade is installed
cover_colorwhite by default, what colour will our book be?
cover_designslist of covers to choose from
cover_flairwhats the "flair" thing on the book?
cover_symbolwhat symbol is on our front cover?
flair_colorwhite by default, whats the color of the flair (if its colorable)?
flair_colorablethis is a bugfix for non-colourable flairs being coloured
forbidden_upgradeFALSE by default, set to TRUE when forbidden covers/symbols/styles upgrade is installed
headline_len_limheadlines can be 128 characters max, unlike book titles
info_len_lim64 character titles/author names max
ink_colorwhat color is the text written in?
ink_leveldecrements by 2 for each book printed, can be refilled (expensively)
is_runningTRUE if its working, FALSE when idle/depowered
newspaper_amountAmount of newspapers to print
newspaper_headlineheadline of the newspaper. Saved separately to book details.
newspaper_infoThe contents of the article
newspaper_info_rawraw version of newspaper_info, for editing
newspaper_publisherthe name of the newspaper e.g. Nanotrasen Daily.
newspaper_upgradeFalse by default, set to true when newspaper printing upgrade is installed.
non_writing_iconsjust the bible for now. add covers to this list if their icon file isnt icons/obj/writing.dmi
paper_amtempty by default, 0 to 70
press_modesthe default modes, can be expanded to have "Ink Colors" and "Custom Cover"
standard_flairsflairs that can't be coloured
standard_symbolssymbols that can't be coloured
symbol_colorwhite by default, if our symbol is colourable, what colour is it?
symbol_colorablethis is a bugfix for non-colourable symbols being coloured
was_paperworkaround for now, need to update icon if paper_amt is 0 to clear overlay

Procs

convert_inputHTML encodes input and converts bbcode to HTML
trim_inputtrim text down to max length for contents

Var Details

alchemical_symbols

alchemical symbols (because theres a lot of them)

book_amount

how many books to make?

book_author

who made the book?

book_cover

what cover design to use?

book_info

what text will the made books have?

book_info_raw

raw version of the text, for editing.

book_name

whats the made book's name?

books_upgrade

FALSE by default, set to TRUE when custom book covers upgrade is installed

colorable_flairs

flairs that can be coloured

colorable_symbols

list of symbols that can be coloured

colors_upgrade

FALSE by default, set to TRUE when ink colors upgrade is installed

cover_color

white by default, what colour will our book be?

cover_designs

list of covers to choose from

cover_flair

whats the "flair" thing on the book?

cover_symbol

what symbol is on our front cover?

flair_color

white by default, whats the color of the flair (if its colorable)?

flair_colorable

this is a bugfix for non-colourable flairs being coloured

forbidden_upgrade

FALSE by default, set to TRUE when forbidden covers/symbols/styles upgrade is installed

headline_len_lim

headlines can be 128 characters max, unlike book titles

info_len_lim

64 character titles/author names max

ink_color

what color is the text written in?

ink_level

decrements by 2 for each book printed, can be refilled (expensively)

is_running

TRUE if its working, FALSE when idle/depowered

newspaper_amount

Amount of newspapers to print

newspaper_headline

headline of the newspaper. Saved separately to book details.

newspaper_info

The contents of the article

newspaper_info_raw

raw version of newspaper_info, for editing

newspaper_publisher

the name of the newspaper e.g. Nanotrasen Daily.

newspaper_upgrade

False by default, set to true when newspaper printing upgrade is installed.

non_writing_icons

just the bible for now. add covers to this list if their icon file isnt icons/obj/writing.dmi

paper_amt

empty by default, 0 to 70

press_modes

the default modes, can be expanded to have "Ink Colors" and "Custom Cover"

standard_flairs

flairs that can't be coloured

standard_symbols

symbols that can't be coloured

symbol_color

white by default, if our symbol is colourable, what colour is it?

symbol_colorable

this is a bugfix for non-colourable symbols being coloured

was_paper

workaround for now, need to update icon if paper_amt is 0 to clear overlay

Proc Details

convert_input

HTML encodes input and converts bbcode to HTML

trim_input

trim text down to max length for contents