mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Merge pull request #6482 from PsiOmegaDelta/pAI
pAI submission process change
This commit is contained in:
@@ -106,8 +106,7 @@ var/datum/paiController/paiController // Global handler for pAI candidates
|
|||||||
if(!candidate)
|
if(!candidate)
|
||||||
candidate = new /datum/paiCandidate()
|
candidate = new /datum/paiCandidate()
|
||||||
candidate.key = M.key
|
candidate.key = M.key
|
||||||
if(allowSubmit)
|
pai_candidates.Add(candidate)
|
||||||
pai_candidates.Add(candidate)
|
|
||||||
|
|
||||||
var/dat = ""
|
var/dat = ""
|
||||||
dat += {"
|
dat += {"
|
||||||
@@ -358,11 +357,7 @@ var/datum/paiController/paiController // Global handler for pAI candidates
|
|||||||
else
|
else
|
||||||
asked.Remove(O.key)
|
asked.Remove(O.key)
|
||||||
if(O.client)
|
if(O.client)
|
||||||
var/hasSubmitted = 0
|
if(O.client.prefs.be_special & BE_PAI)
|
||||||
for(var/datum/paiCandidate/c in paiController.pai_candidates)
|
|
||||||
if(c.key == O.key)
|
|
||||||
hasSubmitted = 1
|
|
||||||
if(!hasSubmitted && (O.client.prefs.be_special & BE_PAI))
|
|
||||||
question(O.client)
|
question(O.client)
|
||||||
|
|
||||||
/datum/paiController/proc/question(var/client/C)
|
/datum/paiController/proc/question(var/client/C)
|
||||||
|
|||||||
Reference in New Issue
Block a user