pai_card ![code/modules/pai/card.dm 1](git.png)
Vars | |
alert_cooldown | Spam alert prevention |
---|---|
pai | Any pAI personalities inserted |
request_spam | Prevents a crew member from hitting "request pAI" repeatedly |
screen_image | The icon displayed on the card's screen. |
Procs | |
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 |
find_pai | Pings ghosts to announce that someone is requesting a pAI |
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. |
remove_alert | Removes any overlays |
set_personality | Sets the personality on the current pai_card |
Var Details
alert_cooldown ![code/modules/pai/card.dm 16](git.png)
Spam alert prevention
pai ![code/modules/pai/card.dm 20](git.png)
Any pAI personalities inserted
request_spam ![code/modules/pai/card.dm 22](git.png)
Prevents a crew member from hitting "request pAI" repeatedly
screen_image ![code/modules/pai/card.dm 18](git.png)
The icon displayed on the card's screen.
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.