From 03a018ddb9b6ec76499e6939865ed0e926776c93 Mon Sep 17 00:00:00 2001 From: Patrick Hulin Date: Mon, 26 Aug 2024 15:00:57 -0400 Subject: [PATCH] prettier. --- client/src/sections/quests/level11/Desert.tsx | 6 +++--- client/src/sections/quests/level11/Palindome.tsx | 6 +++--- client/src/util/text.tsx | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/src/sections/quests/level11/Desert.tsx b/client/src/sections/quests/level11/Desert.tsx index 2f1e19a4..746b369c 100644 --- a/client/src/sections/quests/level11/Desert.tsx +++ b/client/src/sections/quests/level11/Desert.tsx @@ -84,7 +84,7 @@ const DesertQuest = () => { const explorationItems = $items`UV-resistant compass, ornate dowsing rod, survival knife`; const explorationItemsToEquip = explorationItems.filter( - (item) => have(item) && !haveEquipped(item) + (item) => have(item) && !haveEquipped(item), ); const needMoreExploration = currentExploration < possibleExploration; @@ -191,7 +191,7 @@ const DesertQuest = () => { explorationItemsToEquip.map((item) => ( {item.name} )), - explorationItemsToEquip.map((item) => item.name) + explorationItemsToEquip.map((item) => item.name), )}{" "} to speed up exploration {explorationItemsToEquip.includes($item`survival knife`) && @@ -210,7 +210,7 @@ const DesertQuest = () => { Use your{" "} {plural( availableAmount($item`desert sightseeing pamphlet`), - "desert sightseeing pamphlet" + "desert sightseeing pamphlet", )}{" "} for +15% exploration each. diff --git a/client/src/sections/quests/level11/Palindome.tsx b/client/src/sections/quests/level11/Palindome.tsx index 2a637edd..337d279b 100644 --- a/client/src/sections/quests/level11/Palindome.tsx +++ b/client/src/sections/quests/level11/Palindome.tsx @@ -22,7 +22,7 @@ const Level11Palindome: React.FC = () => { const talismanEquipped = haveEquipped($item`Talisman o' Namsilat`); const neededNcPhotos = ["a red nugget", "an ostrich egg", "god"].filter( - (item) => !have($item`photograph of ${item}`) + (item) => !have($item`photograph of ${item}`), ); const needInstantCamera = !have($item`photograph of a dog`) && @@ -77,8 +77,8 @@ const Level11Palindome: React.FC = () => { Find {pluralJustDesc(neededNcPhotos.length, "photograph")} of a{" "} {commaAnd( ["a red nugget", "an ostrich egg", "god"].filter( - (item) => !have($item`photograph of ${item}`) - ) + (item) => !have($item`photograph of ${item}`), + ), )}{" "} from non-combats. diff --git a/client/src/util/text.tsx b/client/src/util/text.tsx index eae491cf..1ffd0af1 100644 --- a/client/src/util/text.tsx +++ b/client/src/util/text.tsx @@ -3,7 +3,7 @@ import { Fragment, ReactNode } from "react"; export function pluralJustDesc( count: number, description: string, - descriptionPlural?: string + descriptionPlural?: string, ) { if (!descriptionPlural) descriptionPlural = `${description}s`; return count === 1 ? description : descriptionPlural; @@ -12,7 +12,7 @@ export function pluralJustDesc( export function plural( count: number, description: string, - descriptionPlural?: string + descriptionPlural?: string, ) { return `${count} ${pluralJustDesc(count, description, descriptionPlural)}`; } @@ -20,7 +20,7 @@ export function plural( export function commaList( values: string[] | ReactNode[], connector: string, - keys?: string[] | number[] + keys?: string[] | number[], ): ReactNode { // Show only truthy values. values = values.filter((x) => x); @@ -62,14 +62,14 @@ export function commaList( export function commaAnd( values: string[] | ReactNode[], - keys?: string[] | number[] + keys?: string[] | number[], ): ReactNode { return commaList(values, "and", keys); } export function commaOr( values: string[] | ReactNode[], - keys?: string[] | number[] + keys?: string[] | number[], ): ReactNode { return commaList(values, "or", keys); }