feat: tag items depending on region and gold state when bought
All checks were successful
pipeline / lint-and-format (push) Successful in 4m29s
pipeline / build-and-push-images (push) Successful in 1m28s

This commit is contained in:
2026-04-18 21:08:58 +02:00
parent 17024f91a8
commit a5728a147f
7 changed files with 231 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ interface Props {
showPickrate?: boolean
pickrate?: number
class?: string
tags?: ItemTag[]
}
// Expose the icon element for external use (e.g., arrow drawing)
@@ -20,7 +21,8 @@ const props = withDefaults(defineProps<Props>(), {
size: 48,
showPickrate: false,
pickrate: 0,
class: ''
class: '',
tags: () => []
})
// Tooltip state - encapsulated in this component
@@ -100,6 +102,7 @@ const itemIconPath = computed(() => CDRAGON_BASE + mapPath(props.item.iconPath))
:item="tooltipState.item"
:x="tooltipState.x"
:y="tooltipState.y"
:tags="tags"
/>
</div>
</template>