This commit is contained in:
Mr. Stallion 2024-07-05 18:03:36 -07:00
parent a87907c1db
commit b3e0f8217d
2 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,10 @@
# Changelog
## Canary
* 'Non-binary' kink is now respected in gender matching (credit: [@FatCatClient](https://github.com/FatCatClient))
* OpenMoji is now treated as a fallback font (credit: [@FatCatClient](https://github.com/FatCatClient))
*
* Add high-quality portraits to Profile Helper
* FBot should always be a UNICORN match
* FBot should have extra buttons to help one-handed

View File

@ -746,8 +746,12 @@ export class Matcher {
Orientation.BiFemalePreference,
Orientation.BiMalePreference
].includes(yourOrientation)) {
let nonBinaryPref:KinkPreference|null = Matcher.getKinkPreference(you, Kink.Nonbinary);
if(nonBinaryPref != null) return Matcher.formatKinkScore(nonBinaryPref, 'non-binary genders');
const nonBinaryPref = Matcher.getKinkPreference(you, Kink.Nonbinary);
if(nonBinaryPref) {
return Matcher.formatKinkScore(nonBinaryPref, 'non-binary genders');
}
return new Score(Scoring.MISMATCH, 'No <span>non-binary</span> genders');
}
}
@ -1093,8 +1097,9 @@ export class Matcher {
}
static getKinkGenderPreference(c: Character, gender: Gender): KinkPreference | null {
if (!(gender in genderKinkMapping))
if (!(gender in genderKinkMapping)) {
return null;
}
return Matcher.getKinkPreference(c, genderKinkMapping[gender]);
}