mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 01:54:52 +01:00
20118ad747
## About The Pull Request Converts as many time vars expressed in deciseconds as I could find to use time defines. ## Why It's Good For The Game Makes these values neater and more readable. ## Changelog 🆑 code: Converted a lot of time-based variables to be expressed with time defines. /🆑 # Conflicts: # code/modules/clothing/head/hat.dm # code/modules/clothing/shoes/boots.dm # code/modules/clothing/suits/utility.dm
60 lines
2.4 KiB
Plaintext
60 lines
2.4 KiB
Plaintext
/datum/surgery/advanced/wing_reconstruction
|
|
name = "Wing Reconstruction"
|
|
desc = "An experimental surgical procedure that reconstructs the damaged wings of moth people. Requires Synthflesh."
|
|
possible_locs = list(BODY_ZONE_CHEST)
|
|
steps = list(
|
|
/datum/surgery_step/incise,
|
|
/datum/surgery_step/retract_skin,
|
|
/datum/surgery_step/clamp_bleeders,
|
|
/datum/surgery_step/wing_reconstruction,
|
|
)
|
|
|
|
/datum/surgery/advanced/wing_reconstruction/can_start(mob/user, mob/living/carbon/target)
|
|
if(!istype(target))
|
|
return FALSE
|
|
var/obj/item/organ/wings/moth/wings = target.get_organ_slot(ORGAN_SLOT_EXTERNAL_WINGS)
|
|
if(!istype(wings, /obj/item/organ/wings/moth))
|
|
return FALSE
|
|
return ..() && wings?.burnt
|
|
|
|
/datum/surgery_step/wing_reconstruction
|
|
name = "start wing reconstruction (hemostat)"
|
|
implements = list(
|
|
TOOL_HEMOSTAT = 85,
|
|
TOOL_SCREWDRIVER = 35,
|
|
/obj/item/pen = 15)
|
|
time = 20 SECONDS
|
|
chems_needed = list(/datum/reagent/medicine/c2/synthflesh)
|
|
require_all_chems = FALSE
|
|
|
|
/datum/surgery_step/wing_reconstruction/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
|
display_results(
|
|
user,
|
|
target,
|
|
span_notice("You begin to fix [target]'s charred wing membranes..."),
|
|
span_notice("[user] begins to fix [target]'s charred wing membranes."),
|
|
span_notice("[user] begins to perform surgery on [target]'s charred wing membranes."),
|
|
)
|
|
display_pain(target, "Your wings sting like hell!")
|
|
|
|
/datum/surgery_step/wing_reconstruction/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery, default_display_results = FALSE)
|
|
if(ishuman(target))
|
|
var/mob/living/carbon/human/human_target = target
|
|
display_results(
|
|
user,
|
|
target,
|
|
span_notice("You succeed in reconstructing [target]'s wings."),
|
|
span_notice("[user] successfully reconstructs [target]'s wings!"),
|
|
span_notice("[user] completes the surgery on [target]'s wings."),
|
|
)
|
|
display_pain(target, "You can feel your wings again!")
|
|
var/obj/item/organ/wings/moth/wings = target.get_organ_slot(ORGAN_SLOT_EXTERNAL_WINGS)
|
|
if(istype(wings, /obj/item/organ/wings/moth)) //make sure we only heal moth wings.
|
|
wings.heal_wings(user, ALL)
|
|
|
|
var/obj/item/organ/antennae/antennae = target.get_organ_slot(ORGAN_SLOT_EXTERNAL_ANTENNAE) //i mean we might aswell heal their antennae too
|
|
antennae?.heal_antennae(user, ALL)
|
|
|
|
human_target.update_body_parts()
|
|
return ..()
|