From d6c1fc48cb787bcc70dea83fd84f3cfe56035755 Mon Sep 17 00:00:00 2001 From: "vageyenaman@gmail.com" Date: Sat, 6 Aug 2011 21:07:51 +0000 Subject: [PATCH] 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 --- code/game/jobs/jobs.dm | 2 +- code/modules/mob/new_player/preferences.dm | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/jobs/jobs.dm b/code/game/jobs/jobs.dm index d0e8075f996..21e60485e1a 100644 --- a/code/game/jobs/jobs.dm +++ b/code/game/jobs/jobs.dm @@ -335,7 +335,7 @@ var/list/occupations = list( //I afraid I can't do that, Dave // "AI" = 1,now picked like the captain - "Cyborg" = 1, + "Cyborg" = 1 ) diff --git a/code/modules/mob/new_player/preferences.dm b/code/modules/mob/new_player/preferences.dm index 0fdec384dc8..368fb9a7579 100644 --- a/code/modules/mob/new_player/preferences.dm +++ b/code/modules/mob/new_player/preferences.dm @@ -499,6 +499,8 @@ datum/preferences if ((job!="AI" || config.allow_ai) && !jobban_isbanned(user, job)) HTML += "[job]
" + if(!jobban_isbanned(user, "AI")) + HTML += "AI
" if(!jobban_isbanned(user, "Captain")) HTML += "Captain
" HTML += "
" @@ -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