More Minor pAI bugfixes

- Closing a pAI turns off resting.
- Wiping a mobile pAI now works correctly. (Probably want to fix being
able to do this in the first place)
This commit is contained in:
DZD
2014-12-08 18:22:18 -05:00
parent 0c1c96a8b5
commit 8e4f2f6399
2 changed files with 5 additions and 1 deletions
@@ -250,6 +250,10 @@
M << "<font color = #ff4d4d><h3>Byte by byte you lose your sense of self.</h3></font>"
M << "<font color = #ff8787><h4>Your mental faculties leave you.</h4></font>"
M << "<font color = #ffc4c4><h5>oblivion... </h5></font>"
var/mob/living/silicon/pai/P = M
if(istype(P))
if(P.resting || P.canmove)
P.close_up()
M.death(0)
removePersonality()
if(href_list["wires"])
+1 -1
View File
@@ -424,7 +424,7 @@
/mob/living/silicon/pai/proc/close_up()
last_special = world.time + 200
resting = 0
if(src.loc == card)
return