Station-built AIs now default to having Asimov laws, as opposed to no laws.

AIs can no longer take the same name as an existing AI.

Removing the glass panel from a partially-constructed AI core now gives the proper iconstate if there was a brain inserted.

Removed obsolete statement in malf's post-setup.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@169 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2010-09-25 03:06:44 +00:00
parent a1f10f5f2b
commit 93fa2f9f06
5 changed files with 31 additions and 18 deletions

View File

@@ -512,6 +512,27 @@
/proc/format_frequency(var/f)
return "[round(f / 10)].[f % 10]"
/proc/ainame(var/mob/M as mob)
var/randomname = pick(ai_names)
var/newname = input(M,"You are the AI. Would you like to change your name to something else?", "Name change",randomname)
if (length(newname) == 0)
newname = randomname
if (newname)
if (newname == "Inactive AI")
M << "That name is reserved."
return ainame(M)
for (var/mob/living/silicon/ai/A in world)
if (A.real_name == newname)
M << "There's already an AI with that name."
return ainame(M)
if (length(newname) >= 26)
newname = copytext(newname, 1, 26)
newname = dd_replacetext(newname, ">", "'")
M.real_name = newname
M.name = newname
/proc/activeais()
var/select = null
var/list/names = list()