From b25e0be33b39c7c2694e98d56ca6635e1b0a2789 Mon Sep 17 00:00:00 2001 From: DZD Date: Mon, 26 Jan 2015 20:00:26 -0500 Subject: [PATCH] Borer + Respawn as NPC hotfix Should prevent people from using Respawn as NPC to enter borers that are currently in control of carbons. --- code/modules/mob/living/simple_animal/borer.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/borer.dm b/code/modules/mob/living/simple_animal/borer.dm index 56ca314b62e..abcd7b94627 100644 --- a/code/modules/mob/living/simple_animal/borer.dm +++ b/code/modules/mob/living/simple_animal/borer.dm @@ -233,7 +233,7 @@ else src << "\red You plunge your probosci deep into the cortex of the host brain, interfacing directly with their nervous system." host << "\red You feel a strange shifting sensation behind your eyes as an alien consciousness displaces yours." - + var/borer_key = src.key host.attack_log += text("\[[time_stamp()]\] [src.name] ([src.ckey]) has assumed control of [host.name] ([host.ckey])") msg_admin_attack("[src.name] ([src.ckey]) has assumed control of [host.name] ([host.ckey]) (JMP)") // host -> brain @@ -275,6 +275,8 @@ host.verbs += /mob/living/carbon/proc/punish_host host.verbs += /mob/living/carbon/proc/spawn_larvae + if(src && !src.key) + src.key = "@[borer_key]" return /mob/living/simple_animal/borer/verb/secrete_chemicals()