Skip to content

Commit

Permalink
TGS Test Merge (#5717)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed Feb 14, 2024
2 parents 28c1074 + de745d2 commit 66a431d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/machinery/medical_pod/sleeper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66a431d

Please sign in to comment.