Makes it possible to setup pAI configuration from the character setup screen.

This commit is contained in:
PsiOmega
2014-08-08 13:23:44 +02:00
parent 8568a6aa89
commit 00fcfa7899
2 changed files with 23 additions and 12 deletions
+6
View File
@@ -388,6 +388,8 @@ datum/preferences
dat += "\t<a href=\"byond://?src=\ref[user];preference=skills\"><b>Set Skills</b> (<i>[GetSkillClass(used_skillpoints)][used_skillpoints > 0 ? " [used_skillpoints]" : "0"])</i></a><br>"
dat += "<a href='byond://?src=\ref[user];preference=flavor_text;task=open'><b>Set Flavor Text</b></a><br>"
dat += "<a href='byond://?src=\ref[user];preference=pAI><b>pAI Configuration</b></a><br>"
dat += "<br>"
dat += "<br><b>Hair</b><br>"
@@ -893,6 +895,10 @@ datum/preferences
SetFlavorText(user)
return
else if(href_list["preference"] == "pAI")
paiController.recruitWindow(user, 0)
return 1
else if(href_list["preference"] == "records")
if(text2num(href_list["record"]) >= 1)
SetRecords(user)