Fixes runtimes related to mmi_holder and defib_timer (#7237)

Fixes runtime in life.dm,1831: undefined proc or verb /obj/item/organ/internal/mmi_holder/robot/tick defib timer().
Fixes runtime in defib.dm,511: undefined variable /obj/item/organ/internal/mmi_holder/robot/var/defib_timer
This commit is contained in:
Atermonera
2020-06-04 19:37:29 -07:00
committed by GitHub
parent 69a5424abf
commit 0c78a71226
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -5,6 +5,7 @@
organ_tag = O_CELL
parent_organ = BP_TORSO
vital = 1
var/defib_timer = 1 // This sits in the brain organ slot, but is not a brain.
/obj/item/organ/internal/cell/New()
robotize()
@@ -46,6 +47,10 @@
sleep(-1)
update_from_mmi()
// This sits in the brain organ slot, but is not a brain. Posibrains and dronecores aren't brains either.
/obj/item/organ/internal/mmi_holder/proc/tick_defib_timer()
return
/obj/item/organ/internal/mmi_holder/proc/update_from_mmi()
if(!stored_mmi.brainmob)