From 769403c93f5c7c031a898b75e966b41e3a935f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=BA?= Date: Tue, 9 Jan 2024 18:39:26 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=9C=D0=B5=D0=B4=D0=B8=D1=86=D0=B8=D0=BD=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D0=B9=20=D0=91=D0=B8=D0=BC=D0=B3=D0=B0=D0=BD=20=D0=B2=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B3=D0=BE=20=D0=B8=20=D1=83=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D1=88=D0=B8=D0=BB=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=20=D0=B5=D0=B3=D0=BE=20=D0=BB=D0=B5=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20(=D0=B2=20=D1=82=D0=BE=D0=BC=20?= =?UTF-8?q?=D1=87=D0=B8=D1=81=D0=BB=D0=B5=20=D0=B2=20=D0=B1=D0=BE=D1=8E).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/modules/cargo/packs/medical.dm | 8 ++++++++ code/modules/projectiles/guns/misc/medbeam.dm | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/code/modules/cargo/packs/medical.dm b/code/modules/cargo/packs/medical.dm index bc1891cbe875..3b2bc6a3a82a 100644 --- a/code/modules/cargo/packs/medical.dm +++ b/code/modules/cargo/packs/medical.dm @@ -256,3 +256,11 @@ /obj/item/reagent_containers/hypospray/medipen/blood_loss, /obj/item/reagent_containers/hypospray/medipen/blood_loss) crate_name = "medipen crate" + +/datum/supply_pack/medical/medbeamgun + name = "Medipen Variety-Pak" + desc = "Содержит два медицинского орудия для лечения при помощи лечебных нанитов." + cost = 25000 + contains = list(/obj/item/gun/medbeam, + /obj/item/gun/medbeam) + crate_name = "medipen crate" diff --git a/code/modules/projectiles/guns/misc/medbeam.dm b/code/modules/projectiles/guns/misc/medbeam.dm index 4e53e3f608c4..b5783d43d59b 100644 --- a/code/modules/projectiles/guns/misc/medbeam.dm +++ b/code/modules/projectiles/guns/misc/medbeam.dm @@ -117,10 +117,16 @@ /obj/item/gun/medbeam/proc/on_beam_tick(var/mob/living/target) if(target.health != target.maxHealth) new /obj/effect/temp_visual/heal(get_turf(target), "#80F5FF") + target.drowsyness = max(target.drowsyness-5, 0) + target.AdjustUnconscious(main_heal, FALSE) + target.AdjustAllImmobility(main_heal, FALSE) + target.adjustStaminaLoss(main_heal, FALSE) target.adjustBruteLoss(main_heal) target.adjustFireLoss(main_heal) + target.heal_overall_damage(2,2) target.adjustToxLoss(second_heal, forced = TRUE) target.adjustOxyLoss(second_heal) + target.adjust_disgust(second_heal) return /obj/item/gun/medbeam/proc/on_beam_release(var/mob/living/target)