renamed map object

This commit is contained in:
Polaris
2024-08-19 19:14:47 -04:00
parent b303fbcc9a
commit 552f737650
5 changed files with 14 additions and 11 deletions

View File

@ -111,9 +111,9 @@ export async function getAllAvatarParts(category: number) {
matchingAvatarParts.avatarAccessoryId, matchingAvatarParts.avatarAccessoryId,
), ),
) )
.map((unlockedAvatarPart) => [ .map((unlockedAvatarPartIds) => [
unlockedAvatarPart.avatarAccessoryId, unlockedAvatarPartIds.avatarAccessoryId,
unlockedAvatarPart, unlockedAvatarPartIds,
]), ]),
).values(), ).values(),
); );

View File

@ -89,7 +89,10 @@ export async function getMapIcons() {
new Map( new Map(
AllMapIcons.filter((matchingMapIconIds) => AllMapIcons.filter((matchingMapIconIds) =>
unlockedMapIcons.includes(matchingMapIconIds.id), unlockedMapIcons.includes(matchingMapIconIds.id),
).map((unlockedMapIcons) => [unlockedMapIcons.id, unlockedMapIcons]), ).map((unlockedMapIconIds) => [
unlockedMapIconIds.id,
unlockedMapIconIds,
]),
).values(), ).values(),
); );

View File

@ -93,9 +93,9 @@ export async function getNamePlates() {
new Map( new Map(
AllNameplates.filter((matchingNamePlateIds) => AllNameplates.filter((matchingNamePlateIds) =>
unlockedNamePlates.includes(matchingNamePlateIds.id), unlockedNamePlates.includes(matchingNamePlateIds.id),
).map((unlockedNamePlates) => [ ).map((unlockedNamePlateIds) => [
unlockedNamePlates.id, unlockedNamePlateIds.id,
unlockedNamePlates, unlockedNamePlateIds,
]), ]),
).values(), ).values(),
); );

View File

@ -108,9 +108,9 @@ export async function getSystemVoices() {
new Map( new Map(
AllSystemVoices.filter((matchingsystemVoiceIds) => AllSystemVoices.filter((matchingsystemVoiceIds) =>
unlockedSystemVoices.includes(matchingsystemVoiceIds.id), unlockedSystemVoices.includes(matchingsystemVoiceIds.id),
).map((unlockedSystemVoice) => [ ).map((unlockedSystemVoiceIds) => [
unlockedSystemVoice.id, unlockedSystemVoiceIds.id,
unlockedSystemVoice, unlockedSystemVoiceIds,
]), ]),
).values(), ).values(),
); );

View File

@ -91,7 +91,7 @@ export async function getTrophies() {
new Map( new Map(
AllTrophies.filter((matchingTrophyId) => AllTrophies.filter((matchingTrophyId) =>
unlockedTrophies.includes(matchingTrophyId.id), unlockedTrophies.includes(matchingTrophyId.id),
).map((unlockedTrophy) => [unlockedTrophy.id, unlockedTrophy]), ).map((unlockedTrophyIds) => [unlockedTrophyIds.id, unlockedTrophyIds]),
).values(), ).values(),
); );