mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-03 05:52:17 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user