Makes has_brain_worms cheaper

This commit is contained in:
Fox-McCloud
2017-08-04 23:37:17 -04:00
parent a56be89b76
commit b366f5e598
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