mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-03 12:27:09 +12:00
Improve code for handling user pronouns,. (remove copy paste hell)
This commit is contained in:
parent
55c0f29914
commit
3c2b14ecec
4 changed files with 28 additions and 47 deletions
|
@ -582,6 +582,17 @@ namespace HISP.Player
|
|||
|
||||
|
||||
GameServer.Update(LoggedinClient);
|
||||
}
|
||||
|
||||
// Insert LGBT Patch here
|
||||
public string GetPronouns(bool possessive)
|
||||
{
|
||||
if (Gender == "FEMALE")
|
||||
return possessive ? Messages.PronounFemaleHer : Messages.PronounFemaleShe;
|
||||
else if (Gender == "MALE")
|
||||
return possessive ? Messages.PronounMaleHis : Messages.PronounMaleHe;
|
||||
else
|
||||
return possessive ? Messages.PronounNeutralTheir : Messages.PronounNeutralThey;
|
||||
}
|
||||
|
||||
public byte[] GenerateSecCode()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue