Ingested ryetalyn (#20080)

Ingested ryetalyn now cures tumors, and does its effect.
Implemented time-constant STP_PROB in some procs.

Fixes #20058
This commit is contained in:
Fluffy
2024-10-25 17:56:12 +00:00
committed by GitHub
parent d9c44532fc
commit d799b7354d
6 changed files with 103 additions and 22 deletions
+2 -2
View File
@@ -138,10 +138,10 @@
. = "necrotic and dead [.]"
. = "[.][name]"
/obj/item/organ/internal/process()
/obj/item/organ/internal/process(seconds_per_tick)
..()
if(istype(owner) && (toxin_type in owner.chem_effects))
take_damage(owner.chem_effects[toxin_type] * 0.1 * PROCESS_ACCURACY, prob(1))
take_damage(owner.chem_effects[toxin_type] * 0.1 * PROCESS_ACCURACY, SPT_PROB(1, seconds_per_tick))
handle_regeneration()
tick_surge_damage() //Yes, this is intentional.