From c70a649116be73a4f6b13a3a072dd77cf742c0ab Mon Sep 17 00:00:00 2001 From: MistakeNot4892 Date: Sat, 3 Sep 2022 12:16:56 +1000 Subject: [PATCH] Fixes oversight with grafadreka reagent processing. --- .../mob/living/simple_mob/subtypes/animal/sif/grafadreka.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/sif/grafadreka.dm b/code/modules/mob/living/simple_mob/subtypes/animal/sif/grafadreka.dm index a91c40577f..8772a061d7 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/sif/grafadreka.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/sif/grafadreka.dm @@ -310,7 +310,7 @@ var/global/list/wounds_being_tended_by_drakes = list() // Process food and sap chems. if(reagents?.total_volume) for(var/datum/reagent/chem in reagents.reagent_list) - var/removed = min(REM, min(chem.ingest_met, chem.volume)) + var/removed = clamp(chem.ingest_met, REM, chem.volume) chem.affect_animal(src, removed) reagents.remove_reagent(chem.id, removed)