Skip to content

Commit

Permalink
death
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Jul 17, 2024
1 parent 9c9dfb5 commit e4ef026
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
11 changes: 9 additions & 2 deletions code/modules/borer/borer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,15 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
if(host_mob)
set_light_on(FALSE)
heal_amt = 3
if(!stat && host_mob.stat != DEAD)
var/mob/living/carbon/human/human_host
var/mob/living/carbon/human/human_host
var/dead_host = FALSE
if(host_mob.stat == DEAD)
if(ishuman(host_mob))
human_host = host_mob
if(isxeno(host_mob) || (host_mob.status_flags & PERMANENTLY_DEAD) || human_host && human_host.undefibbable)
dead_host = TRUE

if(!stat && !dead_host)
if(ishuman(host_mob))
human_host = host_mob
if((human_host.chem_effect_flags & CHEM_EFFECT_ANTI_PARASITE) && (!human_host.reagents.has_reagent("borerenzyme") || human_host.reagents.has_reagent("borercure")))
Expand Down
16 changes: 13 additions & 3 deletions code/modules/borer/borer_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,13 @@
return FALSE
if(isxeno(target) && !(borer_flags_targets & BORER_TARGET_XENOS))//Can it infect xenos? Normally, no.
return FALSE
if(target.stat != DEAD && Adjacent(target) && !target.has_brain_worms())
if(target.stat == DEAD)
var/mob/living/carbon/human/human_target
if(ishuman(target))
human_target = target
if(isxeno(target) || (target.status_flags & PERMANENTLY_DEAD) || human_target && human_target.undefibbable)
return FALSE
if(Adjacent(target) && !target.has_brain_worms())
return TRUE
else
return FALSE
Expand Down Expand Up @@ -265,8 +271,12 @@
to_chat(src, SPAN_XENOWARNING("You cannot infest a target in your current state."))
return FALSE
if(target.stat == DEAD)
to_chat(src, SPAN_WARNING("You cannot infest the dead."))
return FALSE
var/mob/living/carbon/human/human_target
if(ishuman(target))
human_target = target
if(isxeno(target) || (target.status_flags & PERMANENTLY_DEAD) || human_target && human_target.undefibbable)
to_chat(src, SPAN_WARNING("You cannot infest the dead."))
return FALSE
if(target in view(1, src))
to_chat(src, SPAN_NOTICE("You wiggle into [target]'s ear."))
if(!stealthy && !target.stat)
Expand Down
8 changes: 6 additions & 2 deletions code/modules/borer/borer_wip.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@
if(!target || !host_mob.Adjacent(target))
return FALSE
if(target.stat == DEAD)
to_chat(host_mob, SPAN_WARNING("You cannot infest the dead."))
return FALSE
var/mob/living/carbon/human/human_target
if(ishuman(target))
human_target = target
if(isxeno(target) || (target.status_flags & PERMANENTLY_DEAD) || human_target && human_target.undefibbable)
to_chat(host_mob, SPAN_WARNING("You cannot infest the dead."))
return FALSE
if(target.has_brain_worms())
to_chat(host_mob, SPAN_WARNING("You cannot infest someone who is already infested!"))
return FALSE
Expand Down

0 comments on commit e4ef026

Please sign in to comment.