Merge pull request #7939 from Fox-McCloud/wormsss

Makes has_brain_worms cheaper
This commit is contained in:
Crazy Lemon
2017-08-05 07:16:58 -07:00
committed by GitHub
5 changed files with 16 additions and 8 deletions
+4
View File
@@ -19,6 +19,10 @@
/mob/living/carbon/Destroy()
QDEL_LIST(internal_organs)
QDEL_LIST(stomach_contents)
var/mob/living/simple_animal/borer/B = has_brain_worms()
if(B)
B.leave_host()
qdel(B)
remove_from_all_data_huds()
return ..()
@@ -14,6 +14,8 @@
var/obj/item/head = null
var/obj/item/clothing/suit/wear_suit = null //TODO: necessary? Are they even used? ~Carn
var/mob/living/simple_animal/borer/borer = null
//Active emote/pose
var/pose = null