pAI improvements and fixes (#8000)

rebranded and reduced #6814

 Fix pAI preferences not working (fixes #2772)
 Ports pAI submission window to VueUi
This commit is contained in:
Karolis
2020-01-15 17:48:29 -03:00
committed by Alberyk
parent 35d70f08ce
commit 7a5133822a
6 changed files with 150 additions and 165 deletions
+19 -1
View File
@@ -926,4 +926,22 @@ mob/abstract/observer/MayRespawn(var/feedback = 0, var/respawn_type = null)
to_chat(usr, "<span class='danger'>The round hasn't started yet!</span>")
return
SSghostroles.vui_interact(src)
SSghostroles.vui_interact(src)
/mob/abstract/observer/verb/submitpai()
set category = "Ghost"
set name = "Submit pAI personality"
set desc = "Submits you pAI personality to the pAI candidate pool."
if(jobban_isbanned(src, "pAI"))
to_chat(src, "You are job banned from the pAI position.")
return
SSpai.recruitWindow(src)
/mob/abstract/observer/verb/revokepai()
set category = "Ghost"
set name = "Revoke pAI personality"
set desc = "Removes you from the pAI candidite pool."
if(SSpai.revokeCandidancy(src))
to_chat(src, "You have been removed from the pAI candidate pool.")
+2
View File
@@ -29,6 +29,8 @@ main ui datum.
var/windowid
// determines if ui state should be constantly be cheacked for updates
var/auto_update_content = FALSE
// list for storing ui sensitive data. this meant for object data tracking
var/list/metadata
/**
* Creates a new ui