Skip to content

Commit

Permalink
handle all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraHell committed Jan 18, 2025
1 parent 884bff7 commit eb091b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/datums/diseases/zombie_virus.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
for(var/obj/item/organ/limb as anything in H.bodyparts)
if(!(limb.status & ORGAN_DEAD) && !limb.is_robotic())
limb.necrotize(TRUE, TRUE)
if(!HAS_TRAIT(limb, TRAIT_I_WANT_BRAINS_ORGAN))
ADD_TRAIT(limb, TRAIT_I_WANT_BRAINS_ORGAN, ZOMBIE_TRAIT)

if(!..())
return FALSE
Expand Down Expand Up @@ -112,6 +114,8 @@
for(var/obj/item/organ/limb as anything in H.bodyparts)
if(!(limb.status & ORGAN_DEAD) && !limb.is_robotic())
limb.necrotize(FALSE, TRUE)
if(!HAS_TRAIT(limb, TRAIT_I_WANT_BRAINS_ORGAN))
ADD_TRAIT(limb, TRAIT_I_WANT_BRAINS_ORGAN, ZOMBIE_TRAIT)
return FALSE

if(!HAS_TRAIT(affected_mob, TRAIT_I_WANT_BRAINS))
Expand Down Expand Up @@ -150,6 +154,10 @@
/datum/disease/zombie/cure()
affected_mob.mind?.remove_antag_datum(/datum/antagonist/zombie)
REMOVE_TRAIT(affected_mob, TRAIT_I_WANT_BRAINS, ZOMBIE_TRAIT)
var/mob/living/carbon/human/H = affected_mob
for(var/obj/item/organ/limb as anything in H.bodyparts)
if(HAS_TRAIT(limb, TRAIT_I_WANT_BRAINS_ORGAN))
REMOVE_TRAIT(limb, TRAIT_I_WANT_BRAINS_ORGAN, ZOMBIE_TRAIT)
affected_mob.DeleteComponent(/datum/component/zombie_regen)
affected_mob.med_hud_set_health()
affected_mob.med_hud_set_status()
Expand Down

0 comments on commit eb091b6

Please sign in to comment.