mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
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:
@@ -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)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user