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

crew_self_serve

Vars

authenticated_cardThe ID card used to authenticate.
authenticated_userThe name of the registered user, related to authenticated_card.
target_trimWhat trim is applied to inserted IDs?

Procs

authenticateAuthenticates the program based on the specific ID card.
clock_inClocks the currently inserted ID Card back in
clock_outClocks out the currently inserted ID Card
id_cooldown_checkIs the inserted ID on cooldown? return -1 if invalid ID, 0 if ID is not on cooldown, and remaining time until cooldown ends otherwise.
id_cooldown_minutes_secondsReturns the remaining time left for the ID, as a minutes:seconds string.
id_locked_checkIs the inserted ID locked from clocking in? returns TRUE if the ID is locked
job_is_CMD_or_SECIs the job of the inserted ID being worked by a job that in an important department? If so, this proc will return TRUE.
off_duty_checkIs the inserted ID off-duty? Returns true if the ID is off-duty
secure_itemsPlaces any items inside of the eligible_items list to a lockbox, to be opened by the player when they clock back in.

Var Details

authenticated_card

The ID card used to authenticate.

authenticated_user

The name of the registered user, related to authenticated_card.

target_trim

What trim is applied to inserted IDs?

Proc Details

authenticate

Authenticates the program based on the specific ID card.

Arguments:

clock_in

Clocks the currently inserted ID Card back in

clock_out

Clocks out the currently inserted ID Card

id_cooldown_check

Is the inserted ID on cooldown? return -1 if invalid ID, 0 if ID is not on cooldown, and remaining time until cooldown ends otherwise.

id_cooldown_minutes_seconds

Returns the remaining time left for the ID, as a minutes:seconds string.

id_locked_check

Is the inserted ID locked from clocking in? returns TRUE if the ID is locked

job_is_CMD_or_SEC

Is the job of the inserted ID being worked by a job that in an important department? If so, this proc will return TRUE.

off_duty_check

Is the inserted ID off-duty? Returns true if the ID is off-duty

secure_items

Places any items inside of the eligible_items list to a lockbox, to be opened by the player when they clock back in.