minor
This commit is contained in:
parent
a87907c1db
commit
b3e0f8217d
|
@ -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
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue