diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm index 170ff64138..3388018280 100644 --- a/code/modules/reagents/reagent_containers/borghydro.dm +++ b/code/modules/reagents/reagent_containers/borghydro.dm @@ -102,6 +102,12 @@ Borg Hypospray if(!istype(M)) return if(R.total_volume && M.can_inject(user, 1, user.zone_selected,bypass_protection)) + if(user.a_intent == INTENT_HELP) //Prevents mediborgs from OD'ing people unless on harm intent + for(var/datum/reagent/RG in R.reagent_list) + if(M.reagents.has_reagent(RG.type) && !RG.overdose_threshold == 0) + if(((M.reagents.get_reagent_amount(RG.type)) + amount_per_transfer_from_this > RG.overdose_threshold)) + to_chat(user, "Injecting [M] with more [RG] would overdose them.") + return to_chat(M, "You feel a tiny prick!") to_chat(user, "You inject [M] with the injector.") var/fraction = min(amount_per_transfer_from_this/R.total_volume, 1)