refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+24 -24
View File
@@ -38,19 +38,19 @@
return ..() && target_zone == O_MOUTH && target.op_stage.face == 0
/datum/surgery_step/generic/cut_face/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='filter_notice'>[user] starts to cut open [target]'s face and neck with \the [tool].</span>", \
"<span class='filter_notice'>You start to cut open [target]'s face and neck with \the [tool].</span>")
user.visible_message(span_filter_notice("[user] starts to cut open [target]'s face and neck with \the [tool]."), \
span_filter_notice("You start to cut open [target]'s face and neck with \the [tool]."))
..()
/datum/surgery_step/generic/cut_face/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='notice'>[user] has cut open [target]'s face and neck with \the [tool].</span>" , \
"<span class='notice'> You have cut open[target]'s face and neck with \the [tool].</span>",)
user.visible_message(span_notice("[user] has cut open [target]'s face and neck with \the [tool].") , \
span_notice(" You have cut open[target]'s face and neck with \the [tool]."),)
target.op_stage.face = 1
/datum/surgery_step/generic/cut_face/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message("<span class='danger'>[user]'s hand slips, slicing [target]'s throat wth \the [tool]!</span>" , \
"<span class='danger'>Your hand slips, slicing [target]'s throat wth \the [tool]!</span>" )
user.visible_message(span_danger("[user]'s hand slips, slicing [target]'s throat wth \the [tool]!") , \
span_danger("Your hand slips, slicing [target]'s throat wth \the [tool]!") )
affected.createwound(CUT, 60)
target.AdjustLosebreath(10)
@@ -73,18 +73,18 @@
return ..() && target.op_stage.face == 1
/datum/surgery_step/face/mend_vocal/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='filter_notice'>[user] starts mending [target]'s vocal cords with \the [tool].</span>", \
"<span class='filter_notice'>You start mending [target]'s vocal cords with \the [tool].</span>")
user.visible_message(span_filter_notice("[user] starts mending [target]'s vocal cords with \the [tool]."), \
span_filter_notice("You start mending [target]'s vocal cords with \the [tool]."))
..()
/datum/surgery_step/face/mend_vocal/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='notice'>[user] mends [target]'s vocal cords with \the [tool].</span>", \
"<span class='notice'>You mend [target]'s vocal cords with \the [tool].</span>")
user.visible_message(span_notice("[user] mends [target]'s vocal cords with \the [tool]."), \
span_notice("You mend [target]'s vocal cords with \the [tool]."))
target.op_stage.face = 2
/datum/surgery_step/face/mend_vocal/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='danger'>[user]'s hand slips, clamping [target]'s trachea shut for a moment with \the [tool]!</span>", \
"<span class='danger'>Your hand slips, clamping [user]'s trachea shut for a moment with \the [tool]!</span>")
user.visible_message(span_danger("[user]'s hand slips, clamping [target]'s trachea shut for a moment with \the [tool]!"), \
span_danger("Your hand slips, clamping [user]'s trachea shut for a moment with \the [tool]!"))
target.AdjustLosebreath(10)
///////////////////////////////////////////////////////////////
@@ -107,19 +107,19 @@
return ..() && target.op_stage.face == 2
/datum/surgery_step/face/fix_face/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='filter_notice'>[user] starts pulling the skin on [target]'s face back in place with \the [tool].</span>", \
"<span class='filter_notice'>You start pulling the skin on [target]'s face back in place with \the [tool].</span>")
user.visible_message(span_filter_notice("[user] starts pulling the skin on [target]'s face back in place with \the [tool]."), \
span_filter_notice("You start pulling the skin on [target]'s face back in place with \the [tool]."))
..()
/datum/surgery_step/face/fix_face/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='notice'>[user] pulls the skin on [target]'s face back in place with \the [tool].</span>", \
"<span class='notice'>You pull the skin on [target]'s face back in place with \the [tool].</span>")
user.visible_message(span_notice("[user] pulls the skin on [target]'s face back in place with \the [tool]."), \
span_notice("You pull the skin on [target]'s face back in place with \the [tool]."))
target.op_stage.face = 3
/datum/surgery_step/face/fix_face/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message("<span class='danger'>[user]'s hand slips, tearing skin on [target]'s face with \the [tool]!</span>", \
"<span class='danger'>Your hand slips, tearing skin on [target]'s face with \the [tool]!</span>")
user.visible_message(span_danger("[user]'s hand slips, tearing skin on [target]'s face with \the [tool]!"), \
span_danger("Your hand slips, tearing skin on [target]'s face with \the [tool]!"))
target.apply_damage(10, BRUTE, affected, sharp = TRUE, sharp = TRUE)
///////////////////////////////////////////////////////////////
@@ -142,14 +142,14 @@
return ..() && target.op_stage.face > 0
/datum/surgery_step/face/cauterize/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='notice'>[user] is beginning to cauterize the incision on [target]'s face and neck with \the [tool].</span>" , \
"<span class='notice'>You are beginning to cauterize the incision on [target]'s face and neck with \the [tool].</span>")
user.visible_message(span_notice("[user] is beginning to cauterize the incision on [target]'s face and neck with \the [tool].") , \
span_notice("You are beginning to cauterize the incision on [target]'s face and neck with \the [tool]."))
..()
/datum/surgery_step/face/cauterize/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message("<span class='notice'>[user] cauterizes the incision on [target]'s face and neck with \the [tool].</span>", \
"<span class='notice'>You cauterize the incision on [target]'s face and neck with \the [tool].</span>")
user.visible_message(span_notice("[user] cauterizes the incision on [target]'s face and neck with \the [tool]."), \
span_notice("You cauterize the incision on [target]'s face and neck with \the [tool]."))
affected.open = 0
affected.status &= ~ORGAN_BLEEDING
if (target.op_stage.face == 3)
@@ -159,6 +159,6 @@
/datum/surgery_step/face/cauterize/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message("<span class='danger'>[user]'s hand slips, leaving a small burn on [target]'s face with \the [tool]!</span>", \
"<span class='danger'>Your hand slips, leaving a small burn on [target]'s face with \the [tool]!</span>")
user.visible_message(span_danger("[user]'s hand slips, leaving a small burn on [target]'s face with \the [tool]!"), \
span_danger("Your hand slips, leaving a small burn on [target]'s face with \the [tool]!"))
target.apply_damage(4, BURN, affected)