Skip to content

Commit

Permalink
Update organs.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Aug 6, 2024
1 parent a07a22b commit 6a2eb3b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions code/modules/organs/organs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,15 @@
current_medicine_cap = initial(current_medicine_cap) - 2 * organ_status

/obj/item/organ/kidneys/process()
var/bypass = FALSE

if(owner.bodytemperature <= 170) //No sense worrying about a chem cap if we're in cryo anyway. Still need to clear tick counts.
bypass = TRUE

current_medicine_count += new_medicines //We want to include medicines that were individually both added and removed this tick
var/overflow = current_medicine_count - current_medicine_cap //This catches any case where a reagent was added with volume below its metabolism
current_medicine_count -= removed_medicines //Otherwise, you can microdose infinite chems without kidneys complaining

new_medicines = 0
removed_medicines = 0

if(overflow < 1 || bypass)
//No sense worrying about a chem cap if we're in cryo anyway. Still need to clear tick counts.
if(overflow < 1 || owner.bodytemperature <= 170)
if(old_overflow)
to_chat(owner, span_notice("You don't feel as overwhelmed by all the drugs any more."))
old_overflow = FALSE
Expand Down

0 comments on commit 6a2eb3b

Please sign in to comment.