[MIRROR] Stops AIs from taking actions while depowered (#2813)
* Stops AIs from taking actions while depowered * Update ai.dm
This commit is contained in:
committed by
Poojawa
parent
4bc6e9d522
commit
d8a1fc936e
@@ -856,9 +856,6 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
var/list/plist = list()
|
||||
var/list/namecounts = list()
|
||||
|
||||
if(user.stat == DEAD)
|
||||
return //won't work if dead
|
||||
|
||||
if(src.aiPDA.toff)
|
||||
to_chat(user, "Turn on your receiver in order to send messages.")
|
||||
return
|
||||
@@ -883,6 +880,10 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
if(add_photo=="Yes")
|
||||
var/datum/picture/Pic = aicamera.selectpicture(aicamera)
|
||||
src.aiPDA.photo = Pic.fields["img"]
|
||||
|
||||
if(incapacitated())
|
||||
return
|
||||
|
||||
src.aiPDA.create_message(src, selected)
|
||||
|
||||
|
||||
@@ -910,8 +911,8 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
to_chat(usr, "You do not have a PDA. You should make an issue report about this.")
|
||||
|
||||
/mob/living/silicon/ai/proc/cmd_show_message_log(mob/user)
|
||||
if(user.stat == DEAD)
|
||||
return //won't work if dead
|
||||
if(incapacitated())
|
||||
return
|
||||
if(!isnull(aiPDA))
|
||||
var/HTML = "<html><head><title>AI PDA Message Log</title></head><body>[aiPDA.tnote]</body></html>"
|
||||
user << browse(HTML, "window=log;size=400x444;border=1;can_resize=1;can_close=1;can_minimize=0")
|
||||
|
||||
Reference in New Issue
Block a user