Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds "у него" helper procs #557

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions modular_bandastation/translations/code/pronouns.dm
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
/datum/proc/ru_p_themselves(capitalized, temp_gender)
. = "само"

/// Применяет одно из "них", "него", "него", или "нее" в зависимости от пола. Установите TRUE для заглавной буквы.
/datum/proc/ru_p_theirs(capitalized, temp_gender)
. = "него"

/// Применяет "имеет" для единственного числа и "имеют" для множественного ("она имеет" / "они имеют").
/datum/proc/ru_p_have(temp_gender)
. = "имеет"
Expand Down Expand Up @@ -181,6 +185,21 @@
if(capitalized)
. = capitalize(.)

/client/ru_p_theirs(capitalized, temp_gender)
if(!temp_gender)
temp_gender = gender
switch(temp_gender)
if(MALE)
. = "него"
if(FEMALE)
. = "нее"
if(NEUTER)
. = "него"
if(PLURAL)
. = "них"
if(capitalized)
. = capitalize(.)

/client/ru_p_have(temp_gender)
if(!temp_gender)
temp_gender = gender
Expand Down Expand Up @@ -252,6 +271,21 @@
if(capitalized)
. = capitalize(.)

/mob/ru_p_theirs(capitalized, temp_gender)
if(!temp_gender)
temp_gender = gender
switch(temp_gender)
if(MALE)
. = "него"
if(FEMALE)
. = "нее"
if(NEUTER)
. = "него"
if(PLURAL)
. = "них"
if(capitalized)
. = capitalize(.)

/mob/ru_p_have(temp_gender)
if(!temp_gender)
temp_gender = gender
Expand Down Expand Up @@ -303,6 +337,13 @@
temp_gender = PLURAL
return ..()

/mob/living/carbon/human/ru_p_theirs(temp_gender)
var/obscured = check_obscured_slots()
var/skipface = (wear_mask && (wear_mask.flags_inv & HIDEFACE)) || (head && (head.flags_inv & HIDEFACE))
if((obscured & ITEM_SLOT_ICLOTHING) && skipface)
temp_gender = PLURAL
return ..()

/mob/living/carbon/human/ru_p_have(temp_gender)
var/obscured = check_obscured_slots()
var/skipface = (wear_mask && (wear_mask.flags_inv & HIDEFACE)) || (head && (head.flags_inv & HIDEFACE))
Expand Down
Loading