diff --git a/src/components/ItemCard.astro b/src/components/ItemCard.astro
index 1bb5f7f..1278cd8 100644
--- a/src/components/ItemCard.astro
+++ b/src/components/ItemCard.astro
@@ -23,7 +23,9 @@ const lang = await getLocales(Astro.cookies.get('language')?.value ?? await getH
{Astro.props.name} | {Astro.props.level}
{Astro.props.description}
[more]
-
+ {Astro.props.button_name === "nav-researched" ?
+ :
+ }
i
{Astro.props.has_amount_input === "true" && }
diff --git a/src/pages/game/research.astro b/src/pages/game/research.astro
index 1156ea1..ddac587 100644
--- a/src/pages/game/research.astro
+++ b/src/pages/game/research.astro
@@ -59,11 +59,11 @@ for(const research of researchList) {
category="research"
id={research.id}
name={getObj(lang, "research", research.id).name}
- level={user.research.getResearchById(research.id)?.level.toString() ?? "0"}
+ level={research.onetime === true ? user.research.getResearchById(research.id)?.level === 1 ? "Researched" : "Not researched" : user.research.getResearchById(research.id)?.level.toString() ?? "0"}
description={getObj(lang, "research", research.id).description ?? ""}
image={`/images/research/${research.id}.jpeg`}
button_type="general"
- button_name="nav-research" />
+ button_name={research.onetime ? user.research.getResearchById(research.id)?.level === 1 ? "nav-researched" : "nav-research" : "nav-research"} />
>)}
diff --git a/src/types/db/DBResearch.ts b/src/types/db/DBResearch.ts
index 58cde23..83ae4ab 100644
--- a/src/types/db/DBResearch.ts
+++ b/src/types/db/DBResearch.ts
@@ -10,4 +10,5 @@ export default interface DBResearch {
};
time: number;
multiplier: number;
+ onetime?: boolean;
}
\ No newline at end of file