Fix alien egg not being able to can (#27537)

* Force body eggs to call parent `on_life()`

* Force body eggs to call parent `dead_process()`

* Call parent
This commit is contained in:
Mikhail Dzianishchyts
2024-12-08 00:50:23 +00:00
committed by GitHub
parent aa140c1184
commit 3336bfd43b
3 changed files with 7 additions and 0 deletions
+4
View File
@@ -26,12 +26,16 @@
. = ..()
/obj/item/organ/internal/body_egg/on_life()
SHOULD_CALL_PARENT(TRUE)
..()
if(!(src in owner.internal_organs)) // I can only presume this is here for a reason, so not touching it.
remove(owner)
return
egg_process()
/obj/item/organ/internal/body_egg/dead_process()
SHOULD_CALL_PARENT(TRUE)
..()
if(!(src in owner.internal_organs)) // I can only presume this is here for a reason, so not touching it.
remove(owner)
return
+2
View File
@@ -10,6 +10,7 @@
var/stage = 1
/obj/item/organ/internal/body_egg/spider_eggs/on_life()
..()
if(stage < 5 && prob(3))
stage++
@@ -55,6 +56,7 @@
// Safety first.
if(!owner)
return
..()
// Parasite growth
cycle_num += 1