/tg/ Station 13 - Modules - TypesVar Details - Proc Details

mail

Mail is tamper-evident and unresealable, postmarked by CentCom for an individual recepient.

Vars

department_colorsmail will have the color of the department the recipient is in.
generic_goodiesGoodies which can be given to anyone. The base weight is 50. For there to be a 50/50 chance of getting a department item, they need 50 weight as well.
goodie_countHow many goodies this mail contains.
postmarkedDoes the letter have the postmark overlay?
recipient_refWeak reference to who this mail is for and who can open it.
sort_tagDestination tagging for the mail sorter.
stamp_maxMaximum number of stamps on the letter.
stamp_offset_xPhysical offset of stamps on the object. X direction.
stamp_offset_yPhysical offset of stamps on the object. Y direction.
stampedDoes the letter have a stamp overlay?
stampsList of all stamp overlays on the letter.

Procs

initialize_for_recipientAccepts a mind to initialize goodies for a piece of mail.
junk_mailAlternate setup, just complete garbage inside and anyone can open
unwrapproc for unwrapping a mail. Goes just for an unwrapping procces, returns FALSE if it fails.

Var Details

department_colors

mail will have the color of the department the recipient is in.

generic_goodies

Goodies which can be given to anyone. The base weight is 50. For there to be a 50/50 chance of getting a department item, they need 50 weight as well.

goodie_count

How many goodies this mail contains.

postmarked

Does the letter have the postmark overlay?

recipient_ref

Weak reference to who this mail is for and who can open it.

sort_tag

Destination tagging for the mail sorter.

stamp_max

Maximum number of stamps on the letter.

stamp_offset_x

Physical offset of stamps on the object. X direction.

stamp_offset_y

Physical offset of stamps on the object. Y direction.

stamped

Does the letter have a stamp overlay?

stamps

List of all stamp overlays on the letter.

Proc Details

initialize_for_recipient

Accepts a mind to initialize goodies for a piece of mail.

junk_mail

Alternate setup, just complete garbage inside and anyone can open

unwrap

proc for unwrapping a mail. Goes just for an unwrapping procces, returns FALSE if it fails.