mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
@@ -70,6 +70,7 @@
|
||||
|
||||
var/translator_on = 0 // keeps track of the translator module
|
||||
|
||||
var/greeted = 0
|
||||
var/current_pda_messaging = null
|
||||
|
||||
/mob/living/silicon/pai/New(var/obj/item/device/paicard/newlocation)
|
||||
@@ -109,9 +110,18 @@
|
||||
..()
|
||||
|
||||
/mob/living/silicon/pai/Login()
|
||||
greet()
|
||||
..()
|
||||
|
||||
|
||||
/mob/living/silicon/pai/proc/greet()
|
||||
|
||||
if (!greeted)
|
||||
// Basic intro text.
|
||||
src << "<span class='danger'><font size=3>You are a Personal AI!</font></span>"
|
||||
src << "<span class='notice'>You are a small artificial intelligence contained inside a portable tablet, and you are bound to a master. Your primary directive is to serve them and follow their instructions, follow this prime directive above all others. Check your Software interface to spend ram on programs that can help, and unfold your chassis to take a holographic form and move around the world.</span>"
|
||||
greeted = 1
|
||||
|
||||
// this function shows the information about being silenced as a pAI in the Status panel
|
||||
/mob/living/silicon/pai/proc/show_silenced()
|
||||
if(src.silence_time)
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
return 1
|
||||
|
||||
// loads the savefile corresponding to the mob's ckey
|
||||
// if silent=true, report incompatible savefiles
|
||||
// if silent=false, report incompatible savefiles
|
||||
// returns 1 if loaded (or file was incompatible)
|
||||
// returns 0 if savefile did not exist
|
||||
|
||||
|
||||
@@ -29,6 +29,9 @@ var/datum/paiController/paiController // Global handler for pAI candidates
|
||||
if(href_list["download"])
|
||||
var/datum/paiCandidate/candidate = locate(href_list["candidate"])
|
||||
var/obj/item/device/paicard/card = locate(href_list["device"])
|
||||
if (!candidate in pai_candidates)
|
||||
return
|
||||
|
||||
if(card.pai)
|
||||
return
|
||||
if(istype(card,/obj/item/device/paicard) && istype(candidate,/datum/paiCandidate))
|
||||
@@ -107,6 +110,7 @@ var/datum/paiController/paiController // Global handler for pAI candidates
|
||||
candidate.key = M.key
|
||||
pai_candidates.Add(candidate)
|
||||
|
||||
candidate.savefile_load(M)//Load the pAI config before displaying the window
|
||||
var/dat = ""
|
||||
dat += {"
|
||||
<style type="text/css">
|
||||
|
||||
@@ -794,6 +794,9 @@ proc/is_blind(A)
|
||||
var/preposition= ""
|
||||
var/action = ""
|
||||
var/action3 = ""
|
||||
if (!reportto)
|
||||
return 0
|
||||
|
||||
if (istype(loc, /mob/living/carbon/human))//This function is for finding where we are on a human. not valid otherwise
|
||||
H = loc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user