mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +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:
@@ -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