From 28deb9979b4d958ca8dc0c61e31984d43a9a0bed Mon Sep 17 00:00:00 2001 From: Patrick Hulin Date: Mon, 26 Aug 2024 15:00:42 -0400 Subject: [PATCH] don't show commerce ghost in std. --- client/src/sections/resources/CommerceGhost.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/sections/resources/CommerceGhost.tsx b/client/src/sections/resources/CommerceGhost.tsx index 66d94c4c..fd9d387b 100644 --- a/client/src/sections/resources/CommerceGhost.tsx +++ b/client/src/sections/resources/CommerceGhost.tsx @@ -1,8 +1,9 @@ import { myFamiliar, myLevel } from "kolmafia"; -import { $familiar, get, have } from "libram"; +import { $familiar, get } from "libram"; import Line from "../../components/Line"; import Tile from "../../components/Tile"; +import { haveUnrestricted } from "../../util/available"; const CommerceGhost = () => { const commerceGhostCombats = get("commerceGhostCombats"); @@ -15,7 +16,10 @@ const CommerceGhost = () => { = 12} + hide={ + !haveUnrestricted($familiar`Ghost of Crimbo Commerce`) || + currentLevel >= 12 + } > {commerceGhostItem !== "" ? (