From 7d813397cfb91f577b31b1c0f5d83e66747eb831 Mon Sep 17 00:00:00 2001
From: Sharkmare <34294231+Sharkmare@users.noreply.github.com>
Date: Wed, 21 Aug 2019 03:10:59 +0200
Subject: [PATCH] Lowered injection cost for Boozeborg
Boozeborg can now comfily keep a crewmate "stablizized" inside
Upped the fluid capacity from 20 to 50 since this is handling drinks and not medicine.
---
.../living/silicon/robot/dogborg/dog_sleeper_vr.dm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
index 6641901567..8108759efd 100644
--- a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
+++ b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
@@ -681,6 +681,20 @@
injection_chems = list("vodka","beer","gin") //Injected alcohol is 3 times as strong
max_item_count = 1
+/obj/item/device/dogborg/sleeper/compactor/brewer/inject_chem(mob/user, chem)
+ if(patient && patient.reagents)
+ if(chem in injection_chems + "inaprovaline")
+ if(hound.cell.charge < 200) //This is so borgs don't kill themselves with it.
+ to_chat(hound, "You don't have enough power to synthesize fluids.")
+ return
+ else if(patient.reagents.get_reagent_amount(chem) + 10 >= 50) //Preventing people from accidentally killing themselves by trying to inject too many chemicals!
+ to_chat(hound, "Your stomach is currently too full of fluids to secrete more fluids of this kind.")
+ else if(patient.reagents.get_reagent_amount(chem) + 10 <= 50) //No overdoses for you
+ patient.reagents.add_reagent(chem, inject_amount)
+ drain(100) //-100 charge per injection
+ var/units = round(patient.reagents.get_reagent_amount(chem))
+ to_chat(hound, "Injecting [units] unit\s of [chemical_reagents_list[chem]] into occupant.") //If they were immersed, the reagents wouldn't leave with them.
+
// PLACEHOLDER SERVICE BORG BELLY
/obj/item/device/dogborg/sleeper/servborg
name = "Gourmet Gut"