Skip to content

Commit

Permalink
don't show commerce ghost in std.
Browse files Browse the repository at this point in the history
  • Loading branch information
phulin committed Aug 26, 2024
1 parent d86baa7 commit 28deb99
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/sections/resources/CommerceGhost.tsx
Original file line number Diff line number Diff line change
@@ -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");
Expand All @@ -15,7 +16,10 @@ const CommerceGhost = () => {
<Tile
header="Ghost of Crimbo Commerce"
imageUrl="/images/itemimages/cghost_commerce.gif"
hide={!have($familiar`Ghost of Crimbo Commerce`) || currentLevel >= 12}
hide={
!haveUnrestricted($familiar`Ghost of Crimbo Commerce`) ||
currentLevel >= 12
}
>
{commerceGhostItem !== "" ? (
<Line
Expand Down

0 comments on commit 28deb99

Please sign in to comment.