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 15, 2024
2 parents cb47890 + e2c78f1 commit 04efe80
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 [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 04efe80

Please sign in to comment.