Skip to content

Commit

Permalink
Merge pull request #712 from the-hideout/tweak-map-links
Browse files Browse the repository at this point in the history
tweak map links
  • Loading branch information
Shebuka authored Oct 23, 2023
2 parents 1bb7a89 + 9e87da9 commit eee0e47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function Item() {
if (item) {
let extraProps = {};
if (item.types.includes('keys')) {
extraProps.usedOnMaps = maps.filter(map => map.locks.some(l => l.key.id === item.id));
extraProps.usedOnMaps = maps.filter(map => map.locks.some(l => l.key.id === item.id)).sort((a, b) => a.name.localeCompare(b.name));
}
return {
...item,
Expand Down
5 changes: 3 additions & 2 deletions src/pages/quest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ function Quest() {
imageViewer={true}
/>
);
mapQuery = objective.questItem.id;
if (objective.type.includes('find')) {
mapQuery = objective.questItem.id;
}
}
if (objective.type === 'buildWeapon') {
let baseItem = items.find((i) => i.id === objective.item.id);
Expand Down Expand Up @@ -803,7 +805,6 @@ function Quest() {
objectiveDescription = <h3>{`✔️ ${objective.description} ${objective.optional ? `(${t('optional')})` : ''}`}</h3>;
}
if (objective.zones?.length > 0) {
console.log(objective.zones)
mapQuery = objective.zones.reduce((ids, z) => {
if (!ids.includes(z.id)) {
ids.push(z.id);
Expand Down

0 comments on commit eee0e47

Please sign in to comment.