Limits Rollerbed IV Transfer Rate (#16778)

This commit is contained in:
Doxxmedearly
2023-07-19 17:34:25 +00:00
committed by GitHub
parent 1656c16d8a
commit e150555928
2 changed files with 6 additions and 1 deletions
@@ -372,6 +372,7 @@
var/obj/item/vitals_monitor/vitals
var/iv_attached = 0
var/iv_stand = TRUE
var/iv_transfer_rate = 4 //Same as max for regular IV drips
//Items that can be attached to an IV
var/list/accepted_containers = list(
/obj/item/reagent_containers/blood,
@@ -452,7 +453,7 @@
return
if(beaker.volume > 0)
beaker.reagents.trans_to_mob(buckled, beaker.amount_per_transfer_from_this, CHEM_BLOOD)
beaker.reagents.trans_to_mob(buckled, min(iv_transfer_rate, beaker.amount_per_transfer_from_this), CHEM_BLOOD)
update_icon()
/obj/structure/bed/roller/proc/remove_beaker(mob/user)