Nukes Xeno Revive Nest (#29376)

* Nukes Xeno Revive Nest

* Nukes Xeno Revive Nest

* Config changes are bad. Whoops

* Laying down on xeno weeds now cures viruses at the same rate as revival nests used to

* Adds owner virus check
This commit is contained in:
PollardTheDragon
2025-10-01 11:21:48 -04:00
committed by GitHub
parent 455172ffdf
commit 0a829ba143
5 changed files with 14 additions and 118 deletions
@@ -75,6 +75,8 @@
var/max_plasma = 300
var/heal_rate = 5
var/plasma_rate = 10
/// For curing viruses
var/processing_ticks = 0
/obj/item/organ/internal/alien/plasmavessel/prepare_eat()
var/obj/S = ..()
@@ -123,6 +125,15 @@
owner.adjustFireLoss(-heal_amt)
owner.adjustOxyLoss(-heal_amt)
owner.adjustCloneLoss(-heal_amt)
if(IS_HORIZONTAL(owner) && length(owner.viruses))
processing_ticks++
for(var/datum/disease/virus in owner.viruses)
if(virus.stage < 1 && processing_ticks >= 4)
virus.cure()
processing_ticks = 0
if(virus.stage > 1 && processing_ticks >= 4)
virus.stage--
processing_ticks = 0
/obj/item/organ/internal/alien/plasmavessel/insert(mob/living/carbon/M, special = 0)
..()