Add gamelog item type friend check

This commit is contained in:
Natsumi
2021-04-09 05:36:04 +12:00
parent 700c0b2322
commit 1ef466bf45
+4
View File
@@ -3897,6 +3897,9 @@ speechSynthesis.getVoices();
}
var isFriend = false;
var isFavorite = false;
if ((ctx.type === 'OnPlayerJoined') ||
(ctx.type === 'OnPlayerLeft') ||
(ctx.type === 'PortalSpawn')) {
for (var ref of API.cachedUsers.values()) {
if (ref.displayName === ctx.data) {
isFriend = this.friends.has(ref.id);
@@ -3904,6 +3907,7 @@ speechSynthesis.getVoices();
break;
}
}
}
if ((w < 20) && (wristFilter[ctx.type]) &&
((wristFilter[ctx.type] === 'On') ||
(wristFilter[ctx.type] === 'Everyone') ||