Skip to content

Commit 1f74177

Browse files
authored
Metabolism Fixes (#1055)
* metabolism fixes * stomach fix
1 parent 53c0b2d commit 1f74177

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

code/modules/mob/living/carbon/death.dm

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
if(!gibbed)
99
INVOKE_ASYNC(src, PROC_REF(emote), "deathgasp")
10+
1011
reagents.end_metabolization(src)
1112

1213
add_memory_in_range(src, 7, MEMORY_DEATH, list(DETAIL_PROTAGONIST = src), story_value = STORY_VALUE_OKAY, memory_flags = MEMORY_CHECK_BLIND_AND_DEAF)

code/modules/mob/living/carbon/life.dm

+1-3
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@
357357
if(touching)
358358
. += touching.metabolize(src, can_overdose = FALSE, updatehealth = FALSE)
359359

360-
if(stat != DEAD)
360+
if(stat != DEAD && !HAS_TRAIT(src, TRAIT_NOMETABOLISM))
361361
var/obj/item/organ/stomach/S = organs_by_slot[ORGAN_SLOT_STOMACH]
362362
if(S?.reagents && !(S.organ_flags & ORGAN_DEAD))
363363
. += S.reagents.metabolize(src, can_overdose = TRUE, updatehealth = FALSE)
@@ -593,8 +593,6 @@ All effects don't start immediately, but rather get worse over time; the rate is
593593
if(liver)
594594
return
595595

596-
reagents.end_metabolization(src) //Stops trait-based effects on reagents, to prevent permanent buffs
597-
598596
if(HAS_TRAIT(src, TRAIT_STABLELIVER) || !needs_organ(ORGAN_SLOT_LIVER))
599597
return
600598

code/modules/surgery/organs/liver.dm

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
if(!istype(liver_owner))
7777
return
78-
if(organ_flags & ORGAN_DEAD || HAS_TRAIT(liver_owner, TRAIT_NOMETABOLISM))//can't process reagents with a failing liver
78+
if(organ_flags & ORGAN_DEAD)
7979
return
8080

8181
if (germ_level > INFECTION_LEVEL_ONE)

code/modules/surgery/organs/stomach/_stomach.dm

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@
5353
return ..()
5454

5555
/obj/item/organ/stomach/set_organ_dead(failing)
56+
. = ..()
5657
if(!.)
5758
return
5859

59-
if(organ_flags & ORGAN_DEAD && owner)
60+
if((organ_flags & ORGAN_DEAD) && owner)
6061
reagents.end_metabolization(owner)
6162

6263
/obj/item/organ/stomach/on_life(delta_time, times_fired)

0 commit comments

Comments
 (0)