[MIRROR] Reagent Addictions (#10888)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-05-27 15:52:49 -07:00
committed by GitHub
parent ca7345cb67
commit dc9ccc60c2
30 changed files with 580 additions and 9 deletions
+5
View File
@@ -20,6 +20,11 @@
else if(is_broken())
owner.adjustToxLoss(0.3 * PROCESS_ACCURACY)
// General organ damage from withdraw, kidneys do a lot of the work
if(prob(70) && owner.chem_effects[CE_WITHDRAWL])
take_damage(owner.chem_effects[CE_WITHDRAWL] * 0.05 * PROCESS_ACCURACY, prob(1)) // Chance to warn them
owner.adjustToxLoss(owner.chem_effects[CE_WITHDRAWL] * 0.3 * PROCESS_ACCURACY)
/obj/item/organ/internal/kidneys/handle_organ_proc_special()
. = ..()
+9
View File
@@ -43,6 +43,15 @@
if(filter_effect < 3)
owner.adjustToxLoss(owner.chem_effects[CE_ALCOHOL_TOXIC] * 0.1 * PROCESS_ACCURACY)
// General organ damage from withdraw
if(prob(20) && owner.chem_effects[CE_WITHDRAWL])
take_damage(owner.chem_effects[CE_WITHDRAWL] * 0.05 * PROCESS_ACCURACY, prob(1)) // Chance to warn them
if(filter_effect < 2) //Withdrawls intensified
owner.adjustToxLoss(owner.chem_effects[CE_WITHDRAWL] * 0.2 * PROCESS_ACCURACY)
if(filter_effect < 3)
owner.adjustToxLoss(owner.chem_effects[CE_WITHDRAWL] * 0.1 * PROCESS_ACCURACY)
/obj/item/organ/internal/liver/handle_germ_effects()
. = ..() //Up should return an infection level as an integer
if(!.) return
+5
View File
@@ -40,6 +40,11 @@
if(src.damage < 0)
src.damage = 0
// General organ damage from withdraw
if(prob(20) && owner.chem_effects[CE_WITHDRAWL])
take_damage(owner.chem_effects[CE_WITHDRAWL] * 0.05 * PROCESS_ACCURACY, prob(1)) // Chance to warn them
owner.adjustToxLoss(owner.chem_effects[CE_WITHDRAWL] * 0.2 * PROCESS_ACCURACY)
/obj/item/organ/internal/spleen/handle_germ_effects()
. = ..() //Up should return an infection level as an integer
if(!.) return