diff --git a/src/components/Item.tsx b/src/components/Item.tsx index 2ec8a6c..61f6331 100644 --- a/src/components/Item.tsx +++ b/src/components/Item.tsx @@ -72,7 +72,7 @@ const Item = ({ item }: Props) => { } }); - if (isCollected) return null; + if (isCollected || item.hidden) return null; return ( <StyledItem x={item.pos.x} y={item.pos.y}> diff --git a/src/maps/map-types.ts b/src/maps/map-types.ts index 04bdcc5..8f4233d 100644 --- a/src/maps/map-types.ts +++ b/src/maps/map-types.ts @@ -94,6 +94,7 @@ export interface TrainerType { export interface MapItemType { pos: PosType; item: ItemType; + hidden?: boolean; } export interface MapWithPos { diff --git a/src/maps/mt-moon-1f.ts b/src/maps/mt-moon-1f.ts index 76eadae..d2f3893 100644 --- a/src/maps/mt-moon-1f.ts +++ b/src/maps/mt-moon-1f.ts @@ -301,6 +301,7 @@ const mtMoon1f: MapType = { }, { item: ItemType.PokeBall, // TODO: should be MoonStone + hidden: true, pos: { x: 2, y: 2,