Merge pull request #7615 from Crazylemon64/no_suicide_clone

No more cloning suiciders
This commit is contained in:
tigercat2000
2017-10-22 10:48:30 -07:00
committed by GitHub
4 changed files with 8 additions and 1 deletions
+1
View File
@@ -70,6 +70,7 @@
// the world.time since the mob has been brigged, or -1 if not at all
var/brigged_since = -1
var/suicided = FALSE
New(var/key)
src.key = key
+3
View File
@@ -203,6 +203,9 @@
if(clonemind.active) //somebody is using that mind
if(ckey(clonemind.key) != R.ckey)
return 0
if(clonemind.suicided) // and stay out!
malfunction(go_easy = 0)
return -1 // Flush the record
else
// get_ghost() will fail if they're unable to reenter their body
var/mob/dead/observer/G = clonemind.get_ghost()
+1 -1
View File
@@ -372,7 +372,7 @@
scantemp = "<span class=\"bad\">Error: No signs of intelligence detected.</span>"
nanomanager.update_uis(src)
return
if(subject.suiciding == 1 && src.scanner.scan_level < 2)
if(subject.suiciding)
scantemp = "<span class=\"bad\">Error: Subject's brain is not responding to scanning stimuli.</span>"
nanomanager.update_uis(src)
return
+3
View File
@@ -1,6 +1,9 @@
/mob/living/death(gibbed)
blinded = max(blinded, 1)
if(suiciding)
mind.suicided = TRUE
clear_fullscreens()
update_action_buttons_icon()