Those holothingies that whatsisface added can now check their laws while running around cybering people.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@712 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2010-12-27 16:01:55 +00:00
parent 81da30cd4f
commit 80d3f6c115
4 changed files with 29 additions and 3 deletions
+2 -1
View File
@@ -4,4 +4,5 @@
icon = 'mob.dmi'//
icon_state = "ai-holo"
density = 0
var/parent_ai = null
var/mob/living/silicon/ai/parent_ai = null
var/datum/ai_laws/ailaws = null
+1
View File
@@ -6,6 +6,7 @@
if(src.state == "off") //question number three
var/mob/living/silicon/aihologram/holo = new /mob/living/silicon/aihologram(src.loc)
holo.parent_ai = user
holo.ailaws = holo.parent_ai.laws_object
holo.client = usr.client //should move the client there
src.state = "on"
src.icon_state = "holopad1"
@@ -1 +1,25 @@
//I don't even know -- Urist
//I don't even know -- Urist
//I do. -- NEOFite
/mob/living/silicon/aihologram/verb/show_laws_verb()
set category = "AI Commands"
set name = "Show Laws"
src.show_laws()
/mob/living/silicon/aihologram/show_laws(var/everyone = 0)
var/who
if (everyone)
who = world
else
who = src
who << "<b>Obey these laws:</b>"
src.laws_sanity_check()
src.ailaws.show_laws(who)
/mob/living/silicon/aihologram/proc/laws_sanity_check()
if (!src.ailaws)
src << "You are somehow an AI hologram without referencing a set of AI laws, so I got you a laws datum to prevent runtime errors."
src.ailaws = new /datum/ai_laws/asimov
@@ -1,4 +1,4 @@
/mob/dead/aihologram/Login()
/mob/living/silicon/aihologram/Login()
..()
src.client.screen = null