From de745d2625dd439ac1a66e0ff35c5cbf7762c730 Mon Sep 17 00:00:00 2001 From: Drulikar Date: Tue, 13 Feb 2024 20:29:26 -0800 Subject: [PATCH 1/2] Fix chemid param --- code/game/machinery/medical_pod/sleeper.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/machinery/medical_pod/sleeper.dm b/code/game/machinery/medical_pod/sleeper.dm index 84ef2f579ba1..623529677eb4 100644 --- a/code/game/machinery/medical_pod/sleeper.dm +++ b/code/game/machinery/medical_pod/sleeper.dm @@ -208,6 +208,9 @@ var/amount = text2num(params["amount"]) if(!length(chemical) || amount <= 0) return + if(!(chemical in connected.available_chemicals)) + log_debug("[chemical] is not available to inject in a [src]!") + return if(connected.occupant.health > connected.min_health || (chemical in connected.emergency_chems)) connected.inject_chemical(usr, chemical, amount) else From e2c78f1eb574200c93405f3386ad18297c563329 Mon Sep 17 00:00:00 2001 From: Drulikar Date: Wed, 14 Feb 2024 11:01:19 -0800 Subject: [PATCH 2/2] Grammar --- code/game/machinery/medical_pod/sleeper.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/medical_pod/sleeper.dm b/code/game/machinery/medical_pod/sleeper.dm index 623529677eb4..8de067ad7d00 100644 --- a/code/game/machinery/medical_pod/sleeper.dm +++ b/code/game/machinery/medical_pod/sleeper.dm @@ -209,7 +209,7 @@ if(!length(chemical) || amount <= 0) return if(!(chemical in connected.available_chemicals)) - log_debug("[chemical] is not available to inject in a [src]!") + log_debug("[chemical] is not available to inject in [src]!") return if(connected.occupant.health > connected.min_health || (chemical in connected.emergency_chems)) connected.inject_chemical(usr, chemical, amount)