From cc03db2eed50bb57991b7362fa443c6e535a341c Mon Sep 17 00:00:00 2001
From: Chase Manning <chase@manning.dev>
Date: Fri, 13 Oct 2023 16:51:07 +0100
Subject: [PATCH] :sparkle: add support for hidden items

---
 src/components/Item.tsx | 2 +-
 src/maps/map-types.ts   | 1 +
 src/maps/mt-moon-1f.ts  | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

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,