Skip to content

Commit

Permalink
Declent bodyparts in surgery steps (#522)
Browse files Browse the repository at this point in the history
## About The Pull Request
После этого #521


![image](https://github.com/user-attachments/assets/3edd92f5-7aa6-47c6-ac93-9c645bb4175b)
  • Loading branch information
larentoun authored Oct 6, 2024
1 parent ca6f191 commit 32bc060
Show file tree
Hide file tree
Showing 16 changed files with 240 additions and 240 deletions.
20 changes: 10 additions & 10 deletions code/datums/components/surgery_initiator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@
patient.surgeries -= the_surgery
REMOVE_TRAIT(patient, TRAIT_ALLOWED_HONORBOUND_ATTACK, type)
user.visible_message(
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] снимает [parent.declent_ru(ACCUSATIVE)] с <i>[patient.parse_zone_with_bodypart(selected_zone)]</i> у [patient.declent_ru(GENITIVE)]."),
span_notice("Вы снимаете [parent.declent_ru(ACCUSATIVE)] с <i>[patient.parse_zone_with_bodypart(selected_zone)]</i> у [patient.declent_ru(GENITIVE)]."),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] снимает [parent.declent_ru(ACCUSATIVE)] с [patient.parse_zone_with_bodypart(selected_zone, declent = GENITIVE)] у [patient.declent_ru(GENITIVE)]."),
span_notice("Вы снимаете [parent.declent_ru(ACCUSATIVE)] с [patient.parse_zone_with_bodypart(selected_zone, declent = GENITIVE)] у [patient.declent_ru(GENITIVE)]."),
)

patient.balloon_alert(user, "прекращение работы над <i>[patient.parse_zone_with_bodypart(selected_zone)]</i>")
patient.balloon_alert(user, "прекращение работы над [patient.parse_zone_with_bodypart(selected_zone, declent = INSTRUMENTAL)]")

qdel(the_surgery)
return
Expand All @@ -145,11 +145,11 @@
REMOVE_TRAIT(patient, TRAIT_ALLOWED_HONORBOUND_ATTACK, ELEMENT_TRAIT(type))

user.visible_message(
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] закрывает <i>[patient.parse_zone_with_bodypart(selected_zone)]</i> у [patient.declent_ru(GENITIVE)], используя [close_tool.declent_ru(ACCUSATIVE)] и снимая [parent.declent_ru(ACCUSATIVE)]."),
span_notice("Вы закрываете <i>[patient.parse_zone_with_bodypart(selected_zone)]</i> у [patient.declent_ru(GENITIVE)], используя [close_tool.declent_ru(ACCUSATIVE)] и снимая [parent.declent_ru(ACCUSATIVE)]."),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] закрывает [patient.parse_zone_with_bodypart(selected_zone)] у [patient.declent_ru(GENITIVE)], используя [close_tool.declent_ru(ACCUSATIVE)] и снимая [parent.declent_ru(ACCUSATIVE)]."),
span_notice("Вы закрываете [patient.parse_zone_with_bodypart(selected_zone)] у [patient.declent_ru(GENITIVE)], используя [close_tool.declent_ru(ACCUSATIVE)] и снимая [parent.declent_ru(ACCUSATIVE)]."),
)

patient.balloon_alert(user, "закрытие [patient.parse_zone_with_bodypart(selected_zone)]")
patient.balloon_alert(user, "закрытие [patient.parse_zone_with_bodypart(selected_zone, declent = GENITIVE)]")

qdel(the_surgery)

Expand Down Expand Up @@ -281,7 +281,7 @@
var/obj/item/bodypart/affecting_limb = target.get_bodypart(check_zone(selected_zone))

if ((surgery.surgery_flags & SURGERY_REQUIRE_LIMB) && isnull(affecting_limb))
target.balloon_alert(user, "у пациента нет <i>[parse_zone(selected_zone)]</i>!")
target.balloon_alert(user, "у пациента нет [ru_parse_zone(selected_zone, declent = GENITIVE)]!")
return

if (!isnull(affecting_limb))
Expand All @@ -301,7 +301,7 @@
return

if (surgery_needs_exposure(surgery, target))
target.balloon_alert(user, "раскройте у них <i>[target.parse_zone_with_bodypart(selected_zone)]</i>!")
target.balloon_alert(user, "раскройте у них [target.parse_zone_with_bodypart(selected_zone, declent = ACCUSATIVE)]!")
return

ui_close()
Expand All @@ -312,8 +312,8 @@
target.balloon_alert(user, "начинается \"[LOWER_TEXT(procedure.name)]\"")

user.visible_message(
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] накидывает [parent.declent_ru(ACCUSATIVE)] на [target.parse_zone_with_bodypart(selected_zone)] у [target.declent_ru(GENITIVE)] для подготовки к операции."),
span_notice("Вы накидываете [parent.declent_ru(ACCUSATIVE)] на [target.parse_zone_with_bodypart(selected_zone)] у [target.declent_ru(GENITIVE)] для подготовки к [procedure.name]."),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] накидывает [parent.declent_ru(ACCUSATIVE)] на [target.parse_zone_with_bodypart(selected_zone, declent = ACCUSATIVE)] у [target.declent_ru(GENITIVE)] для подготовки к операции."),
span_notice("Вы накидываете [parent.declent_ru(ACCUSATIVE)] на [target.parse_zone_with_bodypart(selected_zone, declent = ACCUSATIVE)] у [target.declent_ru(GENITIVE)] для подготовки к [procedure.name]."),
)

log_combat(user, target, "operated on", null, "(OPERATION TYPE: [procedure.name]) (TARGET AREA: [selected_zone])")
Expand Down
16 changes: 8 additions & 8 deletions code/modules/surgery/amputation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,22 @@
display_results(
user,
target,
span_notice("Вы начинаете отрезать <i>[target.parse_zone_with_bodypart(target_zone)]</i> у [target.declent_ru(GENITIVE)]..."),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] начинает отрезать <i>[target.parse_zone_with_bodypart(target_zone)]</i> у [target.declent_ru(GENITIVE)]!"),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] начинает отрезать <i>[target.parse_zone_with_bodypart(target_zone)]</i> у [target.declent_ru(GENITIVE)]!"),
span_notice("Вы начинаете отрезать [target.parse_zone_with_bodypart(target_zone, declent = ACCUSATIVE)] у [target.declent_ru(GENITIVE)]..."),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] начинает отрезать [target.parse_zone_with_bodypart(target_zone, declent = ACCUSATIVE)] у [target.declent_ru(GENITIVE)]!"),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] начинает отрезать [target.parse_zone_with_bodypart(target_zone, declent = ACCUSATIVE)] у [target.declent_ru(GENITIVE)]!"),
)
display_pain(target, "Вы чувствуете жуткую боль в <i>[parse_zone(target_zone)]</i>!")
display_pain(target, "Вы чувствуете жуткую боль в [ru_parse_zone(target_zone, declent = PREPOSITIONAL)]!")


/datum/surgery_step/sever_limb/success(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool, datum/surgery/surgery, default_display_results = FALSE)
display_results(
user,
target,
span_notice("Вы отрезали <i>[target.parse_zone_with_bodypart(target_zone)]</i> у [target.declent_ru(GENITIVE)]."),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] отрезал <i>[target.parse_zone_with_bodypart(target_zone)]</i> у [target.declent_ru(GENITIVE)]!"),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] отрезал <i>[target.parse_zone_with_bodypart(target_zone)]</i> у [target.declent_ru(GENITIVE)]!"),
span_notice("Вы отрезали [target.parse_zone_with_bodypart(target_zone, declent = ACCUSATIVE)] у [target.declent_ru(GENITIVE)]."),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] отрезал [target.parse_zone_with_bodypart(target_zone, declent = ACCUSATIVE)] у [target.declent_ru(GENITIVE)]!"),
span_notice("[capitalize(user.declent_ru(NOMINATIVE))] отрезал [target.parse_zone_with_bodypart(target_zone, declent = ACCUSATIVE)] у [target.declent_ru(GENITIVE)]!"),
)
display_pain(target, "Вы больше не чувствуете <i>[target.parse_zone_with_bodypart(target_zone)]</i> у себя!")
display_pain(target, "Вы больше не чувствуете [target.parse_zone_with_bodypart(target_zone, declent = ACCUSATIVE)] у себя!")

if(HAS_MIND_TRAIT(user, TRAIT_MORBID) && ishuman(user))
var/mob/living/carbon/human/morbid_weirdo = user
Expand Down
Loading

0 comments on commit 32bc060

Please sign in to comment.