Skip to content

Commit

Permalink
adds "у него" helper procs (#557)
Browse files Browse the repository at this point in the history
## About The Pull Request
У него окравленные руки
  • Loading branch information
larentoun authored Oct 12, 2024
1 parent 62eb14d commit 323b5b7
Showing 1 changed file with 41 additions and 0 deletions.
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

0 comments on commit 323b5b7

Please sign in to comment.