mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
/mob/living/death(gibbed)
|
|
clear_fullscreens()
|
|
update_mob_action_buttons()
|
|
if(ai_holder)
|
|
ai_holder.go_sleep()
|
|
|
|
if(nest) //Ew.
|
|
if(istype(nest, /obj/structure/prop/nest))
|
|
var/obj/structure/prop/nest/N = nest
|
|
N.remove_creature(src)
|
|
if(istype(nest, /obj/structure/blob/factory))
|
|
var/obj/structure/blob/factory/F = nest
|
|
F.spores -= src
|
|
//VOREStation Edit Start
|
|
if(istype(nest, /obj/structure/mob_spawner))
|
|
var/obj/structure/mob_spawner/S = nest
|
|
S.get_death_report(src)
|
|
//VOREStation Edit End
|
|
nest = null
|
|
|
|
if(isbelly(loc) && tf_mob_holder)
|
|
mind?.vore_death = TRUE
|
|
tf_mob_holder.mind?.vore_death = TRUE
|
|
|
|
for(var/datum/soul_link/S as anything in owned_soul_links)
|
|
S.owner_died(gibbed)
|
|
for(var/datum/soul_link/S as anything in shared_soul_links)
|
|
S.sharer_died(gibbed)
|
|
|
|
. = ..()
|
|
|
|
/mob/living/proc/delayed_gib()
|
|
visible_message(span_danger(span_bold("[src]") + " starts convulsing violently!"), span_danger("You feel as if your body is tearing itself apart!"))
|
|
Weaken(30)
|
|
make_jittery(1000)
|
|
addtimer(CALLBACK(src, PROC_REF(gib)), rand(2 SECONDS, 10 SECONDS))
|