mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user