Space Station 13 - Modules - TypesVar Details - Proc Details

photocopier

Vars

categorySelected form's category
copyingIs the photocopier performing an action currently?
copyitemCurrent obj stored in the copier to be copied
copymobMob that is currently on the photocopier
folderCurrent folder obj stored in the copier to copy into
formSelected form's datum
form_idSelected form's id
formsList of available forms
maxcopiesMax number of copies that can be made at one time
print_soundPrinting sound
saved_documentsLazy init list, Objs currently saved inside the photocopier for printing later
total_copiesTotal copies printed from copymachines globally

Procs

bundlecopyA public proc for copying bundles of paper
cancopyAn internal proc for checking if a photocopier is able to copy an object
check_mobInternal proc for checking the Mob on top of the copier Reports FALSE if there is no copymob or if the copymob is in a diff location than the copy machine, otherwise reports TRUE
copyPublic proc for copying items
papercopyPublic proc for copying paper objs
photocopyPublic proc for copying photo objs

Var Details

category

Selected form's category

copying

Is the photocopier performing an action currently?

copyitem

Current obj stored in the copier to be copied

copymob

Mob that is currently on the photocopier

folder

Current folder obj stored in the copier to copy into

form

Selected form's datum

form_id

Selected form's id

forms

List of available forms

maxcopies

Max number of copies that can be made at one time

print_sound

Printing sound

saved_documents

Lazy init list, Objs currently saved inside the photocopier for printing later

total_copies

Total copies printed from copymachines globally

Proc Details

bundlecopy

A public proc for copying bundles of paper

It iterates through each object in the bundle and calls papercopy() and photocopy() and stores the produce photo/paper in the bundle Arguments:

cancopy

An internal proc for checking if a photocopier is able to copy an object

It performs early checks/returns to see if the copier has any toner, if the copier is powered/working, if the copier is currently perfoming an action, or if we've hit the global copy limit. Used to inform the player in-game if they're using the photocopier incorrectly (no toner, no item inside, etc) Arguments:

check_mob

Internal proc for checking the Mob on top of the copier Reports FALSE if there is no copymob or if the copymob is in a diff location than the copy machine, otherwise reports TRUE

copy

Public proc for copying items

Determines what item needs to be copied whether it's a mob's ass, paper, bundle, or photo and then calls the respective proc for it. Most toner var changing happens here so that the faxmachine child obj does not need to worry about toner Arguments:

papercopy

Public proc for copying paper objs

Takes a paper object and makes a copy of it. This proc specifically does not change toner which allows more versatile use for child objects returns null if paper failed to be copied and returns the new copied paper obj if succesful Arguments:

photocopy

Public proc for copying photo objs

Takes a photo object and makes a copy of it. This proc specifically does not change toner which allows more versatile use for child objects returns null if photo failed to be copied and returns the new copied photo object if succesful Arguments: