diff --git a/src/sections/Timeline.tsx b/src/sections/Timeline.tsx index bf862b8a..a9c48ce0 100644 --- a/src/sections/Timeline.tsx +++ b/src/sections/Timeline.tsx @@ -16,6 +16,7 @@ import { import { FC, forwardRef } from "react"; import { haveUnrestricted } from "../util/available"; +import { inDevMode } from "../util/env"; import { plural } from "../util/text"; const Pill: FC = forwardRef(({ children, ...props }, ref) => ( @@ -64,6 +65,13 @@ const Timeline: FC = (props) => { color: "yellow.600", label: (turns) => `${plural(turns, "turn")} of Everything Looks Yellow.`, }, + { + name: "ELRWB", + turns: haveEffect($effect`Everything Looks Red, White and Blue`), + color: "purple.600", + label: (turns) => + `${plural(turns, "turn")} of Everything Looks Red, White and Blue.`, + }, ]; if (returnCombats > 0) { @@ -100,7 +108,7 @@ const Timeline: FC = (props) => { }); } - const elementsFiltered = elements; // .filter(([, turns]) => turns > 0); + const elementsFiltered = elements.filter(({ turns }) => turns > 0); elementsFiltered.sort( ({ turns: turnsA }, { turns: turnsB }) => turnsA - turnsB, ); @@ -108,7 +116,16 @@ const Timeline: FC = (props) => { if (elementsFiltered.length === 0) return null; return ( - + {elementsFiltered.map(({ name, turns, color, label }) => (