mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
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:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user