/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/surgery/eye.dm
172 строки
8 KB
gurfan
Getting Messy (Bloody Surgery Tools + Blood Splatter Fixes/Tweaks) (#38913)
27 янв 2026, 17:53
Не верифицирован
27 янв 2026, 17:53
2841361
Код
Авторство
О чём код?
//Procedures in this file: Eye mending surgery ////////////////////////////////////////////////////////////////// // EYE SURGERY // ////////////////////////////////////////////////////////////////// /datum/surgery_step/eye priority = 2 can_infect = 1 blood_level = 0 /datum/surgery_step/eye/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) if (!hasorgans(target)) return 0 var/datum/organ/external/affected = target.get_organ(target_zone) if (!affected) return 0 var/datum/organ/internal/eyes = target.internal_organs_by_name["eyes"] return target_zone == "eyes" && eyes //////CUT OPEN/////// /datum/surgery_step/eye/cut_open/tool_quality(obj/item/tool, mob/living/user) . = ..() if(!tool.is_sharp()) return 0 /datum/surgery_step/eye/cut_open allowed_tools = list( /obj/item/tool/scalpel = 100, /obj/item/weapon/melee/blood_dagger = 90, /obj/item/weapon/kitchen/utensil/knife/large = 75, /obj/item/weapon/shard = 50, /obj/item/soulstone/gem = 0, /obj/item/soulstone = 50, ) duration = 9 SECONDS /datum/surgery_step/eye/cut_open/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) return ..() && target.op_stage.eyes == 0 /datum/surgery_step/eye/cut_open/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] starts to separate the corneas on [target]'s eyes with \the [tool].", \ "You start to separate the corneas on [target]'s eyes with \the [tool].") ..() /datum/surgery_step/eye/cut_open/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("<span class='notice'>[user] has separated the corneas on [target]'s eyes with \the [tool].</span>" , \ "<span class='notice'>You have separated the corneas on [target]'s eyes with \the [tool].</span>",) target.op_stage.eyes = 1 target.blinded += 1.5 /datum/surgery_step/eye/cut_open/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) var/datum/organ/internal/eyes/eyes = target.internal_organs_by_name["eyes"] var/datum/organ/external/affected = target.get_organ(target_zone) user.visible_message("<span class='warning'>[user]'s hand slips, slicing [target]'s eyes wth \the [tool]!</span>" , \ "<span class='warning'>Your hand slips, slicing [target]'s eyes wth \the [tool]!</span>" ) affected.createwound(CUT, 10) eyes.take_damage(5, 0) //////LIFT EYES/////// /datum/surgery_step/eye/lift_eyes allowed_tools = list( /obj/item/tool/retractor = 100, /obj/item/weapon/kitchen/utensil/fork = 50, ) duration = 3 SECONDS digging = TRUE /datum/surgery_step/eye/lift_eyes/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) return ..() && target.op_stage.eyes == 1 /datum/surgery_step/eye/lift_eyes/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] starts lifting corneas from [target]'s eyes with \the [tool].", \ "You start lifting corneas from [target]'s eyes with \the [tool].") ..() /datum/surgery_step/eye/lift_eyes/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("<span class='notice'>[user] has lifted the corneas from [target]'s eyes from with \the [tool].</span>" , \ "<span class='notice'>You has lifted the corneas from [target]'s eyes from with \the [tool].</span>" ) target.op_stage.eyes = 2 /datum/surgery_step/eye/lift_eyes/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) var/datum/organ/internal/eyes/eyes = target.internal_organs_by_name["eyes"] var/datum/organ/external/affected = target.get_organ(target_zone) user.visible_message("<span class='warning'>[user]'s hand slips, damaging [target]'s eyes with \the [tool]!</span>", \ "<span class='warning'>Your hand slips, damaging [target]'s eyes with \the [tool]!</span>") target.apply_damage(10, BRUTE, affected) eyes.take_damage(5, 0) ///////MEND EYES///////// /datum/surgery_step/eye/mend_eyes allowed_tools = list( /obj/item/tool/hemostat = 100, /obj/item/stack/cable_coil = 75, /obj/item/device/assembly/mousetrap = 10, //I don't know. Don't ask me. But I'm leaving it because hilarity. ) duration = 8 SECONDS digging = TRUE /datum/surgery_step/eye/mend_eyes/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) return ..() && target.op_stage.eyes == 2 /datum/surgery_step/eye/mend_eyes/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] starts mending the nerves and lenses in [target]'s eyes with \the [tool].", \ "You start mending the nerves and lenses in [target]'s eyes with the [tool].") ..() /datum/surgery_step/eye/mend_eyes/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("<span class='notice'>[user] mends the nerves and lenses in [target]'s with \the [tool].</span>" , \ "<span class='notice'>You mend the nerves and lenses in [target]'s with \the [tool].</span>") target.op_stage.eyes = 3 /datum/surgery_step/eye/mend_eyes/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) var/datum/organ/internal/eyes/eyes = target.internal_organs_by_name["eyes"] var/datum/organ/external/affected = target.get_organ(target_zone) user.visible_message("<span class='warning'>[user]'s hand slips, stabbing \the [tool] into [target]'s eye!</span>", \ "<span class='warning'>Your hand slips, stabbing \the [tool] into [target]'s eye!</span>") target.apply_damage(10, BRUTE, affected) eyes.take_damage(5, 0) //////CAUTERIZE/////// /datum/surgery_step/eye/cauterize/tool_quality(obj/item/tool, mob/living/user) . = ..() if(!tool.is_hot()) return 0 /datum/surgery_step/eye/cauterize allowed_tools = list( /obj/item/tool/cautery = 100, /obj/item/tool/scalpel/laser = 100, /obj/item/clothing/mask/cigarette = 75, /obj/item/weapon/lighter = 50, /obj/item/tool/weldingtool = 25, ) duration = 7 SECONDS /datum/surgery_step/eye/cauterize/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) return ..() && target.op_stage.eyes == 3 /datum/surgery_step/eye/cauterize/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("[user] is beginning to cauterize the incision around [target]'s eyes with \the [tool]." , \ "You are beginning to cauterize the incision around [target]'s eyes with \the [tool].") /datum/surgery_step/eye/cauterize/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) var/datum/organ/internal/eyes/eyes = target.internal_organs_by_name["eyes"] user.visible_message("<span class='notice'>[user] cauterizes the incision around [target]'s eyes with \the [tool].</span>", \ "<span class='notice'>You cauterize the incision around [target]'s eyes with \the [tool].</span>") if (target.op_stage.eyes == 3) target.disabilities &= ~NEARSIGHTED target.sdisabilities &= ~BLIND target.eye_blind = 0 target.eye_blurry = 0 eyes.damage = 0 target.op_stage.eyes = 0 /datum/surgery_step/eye/cauterize/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) var/datum/organ/internal/eyes/eyes = target.internal_organs_by_name["eyes"] var/datum/organ/external/affected = target.get_organ(target_zone) user.visible_message("<span class='warning'>[user]'s hand slips, searing [target]'s eyes with \the [tool]!</span>", \ "<span class='warning'>Your hand slips, searing [target]'s eyes with \the [tool]!</span>") target.apply_damage(5, BURN, affected) eyes.take_damage(5, 0)