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,
),
)
.map((unlockedAvatarPart) => [
unlockedAvatarPart.avatarAccessoryId,
unlockedAvatarPart,
.map((unlockedAvatarPartIds) => [
unlockedAvatarPartIds.avatarAccessoryId,
unlockedAvatarPartIds,
]),
).values(),
);

View File

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

View File

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

View File

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

View File

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