mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-18 11:44:05 +01:00
[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:
committed by
GitHub
parent
ca7345cb67
commit
dc9ccc60c2
@@ -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()
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user