mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Fixed a bug where you could not choose the AI job.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1987 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -499,6 +499,8 @@ datum/preferences
|
||||
if ((job!="AI" || config.allow_ai) && !jobban_isbanned(user, job))
|
||||
HTML += "<a href=\"byond://?src=\ref[user];preferences=1;occ=[occ];job=[job]\">[job]</a><br>"
|
||||
|
||||
if(!jobban_isbanned(user, "AI"))
|
||||
HTML += "<a href=\"byond://?src=\ref[user];preferences=1;occ=[occ];job=AI\">AI</a><br>"
|
||||
if(!jobban_isbanned(user, "Captain"))
|
||||
HTML += "<a href=\"byond://?src=\ref[user];preferences=1;occ=[occ];job=Captain\">Captain</a><br>"
|
||||
HTML += "<br>"
|
||||
@@ -511,7 +513,7 @@ datum/preferences
|
||||
return
|
||||
|
||||
proc/SetJob(mob/user, occ=1, job="Captain")
|
||||
if ((!( occupations.Find(job) ) && !( assistant_occupations.Find(job) ) && job != "Captain"))
|
||||
if ((!( occupations.Find(job) ) && !( assistant_occupations.Find(job) ) && (job != "Captain" && job != "AI")))
|
||||
return
|
||||
if (job=="AI" && (!config.allow_ai))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user