From e129e5682c186f0ceb235e25eaaa54e9cc86b04e Mon Sep 17 00:00:00 2001 From: InspectorCaracal <51038201+InspectorCaracal@users.noreply.github.com> Date: Mon, 10 Oct 2022 12:24:30 -0600 Subject: [PATCH] Update pronouns.py --- evennia/utils/verb_conjugation/pronouns.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/evennia/utils/verb_conjugation/pronouns.py b/evennia/utils/verb_conjugation/pronouns.py index 6e7244bc07..c9058221bf 100644 --- a/evennia/utils/verb_conjugation/pronouns.py +++ b/evennia/utils/verb_conjugation/pronouns.py @@ -407,15 +407,8 @@ def pronoun_to_viewpoints( # step down into the mapping viewpoint_map = PRONOUN_MAPPING[viewpoint] - - if pronoun_type in viewpoint_map: - pronouns = viewpoint_map[pronoun_type] - else: - pronouns = viewpoint_map[DEFAULT_PRONOUN_TYPE] - if gender in pronouns: - mapped_pronoun = pronouns[gender] - else: - mapped_pronoun = pronouns[DEFAULT_GENDER] + pronouns = viewpoint_map.get(pronoun_type) or viewpoint_map.get(DEFAULT_PRONOUN_TYPE) + mapped_pronoun = pronouns.get(gender) or pronouns.get(DEFAULT_GENDER) # keep the same capitalization as the original if pronoun != "I":