Skip to content

Commit

Permalink
fix: remove showcase on kecleon
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 10, 2024
1 parent 454d5e0 commit c42c9f4
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions src/components/markers/usePokestopMarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export default function usePokestopMarker({
event.showcase_pokemon_id,
event.showcase_pokemon_form_id,
),
decoration: true,
})
showcaseSizes.unshift(
Icons.getSize(
Expand Down Expand Up @@ -347,18 +348,24 @@ export default function usePokestopMarker({
transform: translateX(-50%);
"
/>
<img
src="${Icons.getMisc('showcase')}"
style="
width: ${showcaseSizes[i] * 0.66}px;
height: ${showcaseSizes[i] * 0.66}px;
bottom: ${
baseSize * 0.3 * eventMod.offsetY + showcaseSizes[i] * i
}px;
left: ${eventMod.offsetX * 50}%;
transform: translateX(-50%);
"
/>
${
icon.decoration
? `
<img
src="${Icons.getMisc('showcase')}"
style="
width: ${showcaseSizes[i] * 0.66}px;
height: ${showcaseSizes[i] * 0.66}px;
bottom: ${
baseSize * 0.3 * eventMod.offsetY + showcaseSizes[i] * i
}px;
left: ${eventMod.offsetX * 50}%;
transform: translateX(-50%);
"
/>
`
: ''
}
`,
)
.join('')}
Expand Down

0 comments on commit c42c9f4

Please sign in to comment.