Improve code for handling user pronouns,. (remove copy paste hell)

This commit is contained in:
Li 2022-05-07 13:24:09 +12:00
parent 55c0f29914
commit 3c2b14ecec
4 changed files with 28 additions and 47 deletions

View file

@ -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()