[MIRROR] Paicontroller subsystem port (#12484)

This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-04 20:22:33 +01:00
committed by GitHub
parent bb87aa896b
commit 33d52d9a7d
95 changed files with 4055 additions and 2704 deletions
+1 -5
View File
@@ -150,13 +150,9 @@
pai.key = choice.key
card.setPersonality(pai)
if(tgui_alert(pai, "Do you want to load your pAI data?", "Load", list("Yes", "No")) == "Yes")
pai.savefile_load(pai)
pai.apply_preferences(pai.client)
else
pai.name = sanitizeSafe(tgui_input_text(pai, "Enter your pAI name:", "pAI Name", "Personal AI", encode = FALSE))
card.setPersonality(pai)
for(var/datum/paiCandidate/candidate in paiController.pai_candidates)
if(candidate.key == choice.key)
paiController.pai_candidates.Remove(candidate)
log_admin("made a pAI with key=[pai.key] at ([T.x],[T.y],[T.z])")
feedback_add_details("admin_verb","MPAI") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!