/tg/ Station 13 - Modules - Types — Var Details - Proc Details

id

"Retro" ID card that renders itself as the icon state with no overlays. Request Emergency Temporary Access - ID Card Extensions code\modules\reta\reta_system.dm

Vars

accessAccess levels held by this card.
assignmentThe job name registered on the card (for example: Assistant).
big_pointerIf true, the wearer will have bigger arrow when pointing at things. Passed down by trims.
chosen_honorificWhat is our selected honorific?
honorific_positionWill this ID card use the first or last name as the name displayed with the honorific?
is_internBoolean value. If TRUE, the [Intern] tag gets prepended to this ID card when the label is updated.
pointer_colorIf set, the arrow will have a different color.
registered_accountLinked bank account.
registered_ageRegistered owner's age.
registered_nameThe name registered on the card (for example: Dr Bryan See)
reta_temp_accessDictionary of temporary department access: dept_name -> list(access_flags)
reta_timersDictionary of timer IDs for clearing temporary access: dept_name -> timer_id
trimTrim datum associated with the card. Controls which job icon is displayed on the card and which accesses do not require wildcards.
trim_changeableWhether the trim on this card can be changed.
wildcard_slotsList of wildcard slot names as keys with lists of wildcard data as values.

Procs

DestroyCleanup temporary access when ID card is deleted
add_accessAttempts to add the given accesses to the ID card as non-wildcards.
add_wildcardsAttempts to add the given wildcards to the ID card.
alt_click_can_use_idHelper proc. Can the user alt-click the ID?
build_access_listsHelper proc. Creates access lists for the access procs.
can_add_wildcardsHelper proc, checks whether the ID card can hold any given set of wildcards.
can_be_used_in_paymentHelper proc that determines if a card can be used in certain types of payment transactions.
clear_accessClears all accesses from the ID card - both wildcard and normal.
clear_accountClears the economy account from the ID card.
clear_reta_accessClears all temporary department access from this ID card
clear_reta_access_for_deptClears temporary access for a specific department
equip_to_item_locID card is being equipped to an item (like a pda or wallet)
get_displayed_nameGetter for the registered name, with optional honorifics
get_id_holderHelper to get the human holding this ID card
get_reta_accessGets all current temporary access flags for this ID card
get_reta_access_for_deptGets temporary access flags for a specific department
get_reta_summaryGets a summary of all active RETA accesses (for debugging/display)
get_trim_assignmentReturns the trim assignment name.
get_trim_sechud_iconReturns the trim sechud icon state.
get_trim_sechud_icon_stateReturns the trim sechud icon state.
grant_reta_accessGrants temporary department access to this ID card
has_any_reta_accessChecks if this ID card has any temporary access
has_reta_accessChecks if this ID card has temporary access to a specific flag
has_reta_access_for_deptChecks if this ID card has temporary access for a specific department
insert_moneyInsert credits or coins into the ID card and add their value to the associated bank account.
mass_insert_moneyInsert multiple money or money-equivalent items at once.
remove_accessRemoves the given accesses from the ID Card.
remove_wildcardsRemoves wildcards from the ID card.
retrieve_accessCalled when we're being used as access.
set_accessAttempts to set the card's accesses to the given accesses, clearing all accesses not in the given list.
set_accountSets the bank account for the ID card.
set_new_accountAttempts to set a new bank account on the ID card.
unequip_from_item_locID card is being unequipped from an item (like a pda or wallet)
update_honorificRe-generates the honorific title. Returns the compiled honorific_title value
update_in_walletCalled on COMSIG_ATOM_UPDATED_ICON. Updates the visuals of the wallet this card is in.
update_labelUpdates the name based on the card's vars and state.

Var Details

access

Access levels held by this card.

assignment

The job name registered on the card (for example: Assistant).

big_pointer

If true, the wearer will have bigger arrow when pointing at things. Passed down by trims.

chosen_honorific

What is our selected honorific?

honorific_position

Will this ID card use the first or last name as the name displayed with the honorific?

is_intern

Boolean value. If TRUE, the [Intern] tag gets prepended to this ID card when the label is updated.

pointer_color

If set, the arrow will have a different color.

registered_account

Linked bank account.

registered_age

Registered owner's age.

registered_name

The name registered on the card (for example: Dr Bryan See)

reta_temp_access

Dictionary of temporary department access: dept_name -> list(access_flags)

reta_timers

Dictionary of timer IDs for clearing temporary access: dept_name -> timer_id

trim

Trim datum associated with the card. Controls which job icon is displayed on the card and which accesses do not require wildcards.

trim_changeable

Whether the trim on this card can be changed.

wildcard_slots

List of wildcard slot names as keys with lists of wildcard data as values.

Proc Details

Destroy

Cleanup temporary access when ID card is deleted

add_access

Attempts to add the given accesses to the ID card as non-wildcards.

Depending on the mode, may add accesses as wildcards or error if it can't add them as non-wildcards. Arguments:

add_wildcards

Attempts to add the given wildcards to the ID card.

Arguments:

alt_click_can_use_id

Helper proc. Can the user alt-click the ID?

build_access_lists

Helper proc. Creates access lists for the access procs.

Takes the accesses list and compares it with the trim. Any basic accesses that match the trim are added to basic_access_list and the rest are added to wildcard_access_list.

This proc directly modifies the lists passed in as args. It expects these lists to be instantiated. There is no return value. Arguments:

can_add_wildcards

Helper proc, checks whether the ID card can hold any given set of wildcards.

Returns TRUE if the card can hold the wildcards, FALSE otherwise. Arguments:

can_be_used_in_payment

Helper proc that determines if a card can be used in certain types of payment transactions.

clear_access

Clears all accesses from the ID card - both wildcard and normal.

clear_account

Clears the economy account from the ID card.

clear_reta_access

Clears all temporary department access from this ID card

clear_reta_access_for_dept

Clears temporary access for a specific department

equip_to_item_loc

ID card is being equipped to an item (like a pda or wallet)

get_displayed_name

Getter for the registered name, with optional honorifics

get_id_holder

Helper to get the human holding this ID card

get_reta_access

Gets all current temporary access flags for this ID card

get_reta_access_for_dept

Gets temporary access flags for a specific department

get_reta_summary

Gets a summary of all active RETA accesses (for debugging/display)

get_trim_assignment

Returns the trim assignment name.

get_trim_sechud_icon

Returns the trim sechud icon state.

get_trim_sechud_icon_state

Returns the trim sechud icon state.

grant_reta_access

Grants temporary department access to this ID card

has_any_reta_access

Checks if this ID card has any temporary access

has_reta_access

Checks if this ID card has temporary access to a specific flag

has_reta_access_for_dept

Checks if this ID card has temporary access for a specific department

insert_money

Insert credits or coins into the ID card and add their value to the associated bank account.

Returns TRUE if the money was successfully inserted, FALSE otherwise. Arguments: money - The item to attempt to convert to credits and insert into the card. user - The user inserting the item. physical_currency - Boolean, whether this is a physical currency such as a coin and not a holochip.

mass_insert_money

Insert multiple money or money-equivalent items at once.

Arguments: money - List of items to attempt to convert to credits and insert into the card. user - The user inserting the items.

remove_access

Removes the given accesses from the ID Card.

Will remove the wildcards if the accesses given are on the card as wildcard accesses. Arguments:

remove_wildcards

Removes wildcards from the ID card.

Arguments:

retrieve_access

Called when we're being used as access.

set_access

Attempts to set the card's accesses to the given accesses, clearing all accesses not in the given list.

Depending on the mode, may add accesses as wildcards or error if it can't add them as non-wildcards. Arguments:

set_account

Sets the bank account for the ID card.

set_new_account

Attempts to set a new bank account on the ID card.

unequip_from_item_loc

ID card is being unequipped from an item (like a pda or wallet)

update_honorific

Re-generates the honorific title. Returns the compiled honorific_title value

update_in_wallet

Called on COMSIG_ATOM_UPDATED_ICON. Updates the visuals of the wallet this card is in.

update_label

Updates the name based on the card's vars and state.