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

pai_card

Vars

alert_cooldownSpam alert prevention
emotion_iconThe emotion icon displayed.
paiAny pAI personalities inserted
request_spamPrevents a crew member from hitting "request pAI" repeatedly

Procs

add_alertFlashes the pai card screen
alert_updateAlerts pAI cards that someone has submitted candidacy
download_candidateDownloads a candidate from the list and removes them from SSpai.candidates
find_paiPings ghosts to announce that someone is requesting a pAI
pool_candidatesGathers a list of candidates to display in the download candidate window. If the candidate isn't marked ready, ie they have not pressed submit, they will be skipped over.
remove_alertRemoves any overlays
set_personalitySets the personality on the current pai_card

Var Details

alert_cooldown

Spam alert prevention

emotion_icon

The emotion icon displayed.

pai

Any pAI personalities inserted

request_spam

Prevents a crew member from hitting "request pAI" repeatedly

Proc Details

add_alert

Flashes the pai card screen

alert_update

Alerts pAI cards that someone has submitted candidacy

download_candidate

Downloads a candidate from the list and removes them from SSpai.candidates

@param {string} ckey The ckey of the candidate to download

@returns {boolean} - TRUE if the candidate was downloaded, FALSE if not

find_pai

Pings ghosts to announce that someone is requesting a pAI

@param {mob} user - The user who is requesting a pAI

@returns {boolean} - TRUE if the pAI was requested, FALSE if not

pool_candidates

Gathers a list of candidates to display in the download candidate window. If the candidate isn't marked ready, ie they have not pressed submit, they will be skipped over.

@returns - An array of candidate objects.

remove_alert

Removes any overlays

set_personality

Sets the personality on the current pai_card

@param {silicon/pai} downloaded - The new pAI to load into the card.