From a3429aed27b4e45c9d4ff2ddc1c94c9e303ff436 Mon Sep 17 00:00:00 2001 From: Patrick Stalcup Date: Thu, 19 Dec 2024 10:41:26 -0500 Subject: [PATCH] Change MayamSymbol to Glyph --- packages/garbo/src/resources/mayam.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/garbo/src/resources/mayam.ts b/packages/garbo/src/resources/mayam.ts index 4e8d23b9c..ec6a79f97 100644 --- a/packages/garbo/src/resources/mayam.ts +++ b/packages/garbo/src/resources/mayam.ts @@ -49,7 +49,7 @@ const MAYAM_RING_VALUES = { clock: () => 5 * get("valueOfAdventure"), }; -function valueSymbol(symbol: MayamCalendar.MayamSymbol): number { +function valueSymbol(symbol: MayamCalendar.Glyph): number { return MAYAM_RING_VALUES[symbol](); } @@ -75,7 +75,7 @@ function valueCombination( } function getAvailableResonances( - forbiddenSymbols: MayamCalendar.MayamSymbol[], + forbiddenSymbols: MayamCalendar.Glyph[], ): MayamCalendar.CombinationString[] { return MayamCalendar.RESONANCE_KEYS.filter( (combination) => @@ -87,7 +87,7 @@ function getAvailableResonances( function getBestAvailableSymbolFromRing>( ring: R, - forbiddenSymbols: MayamCalendar.MayamSymbol[], + forbiddenSymbols: MayamCalendar.Glyph[], ): (typeof MayamCalendar.RINGS)[R][number] { return maxBy( MayamCalendar.RINGS[ring].filter((sym) => !forbiddenSymbols.includes(sym)), @@ -96,7 +96,7 @@ function getBestAvailableSymbolFromRing>( } function getBestGreedyCombination( - forbiddenSymbols: MayamCalendar.MayamSymbol[], + forbiddenSymbols: MayamCalendar.Glyph[], ): MayamCalendar.CombinationString { return MayamCalendar.toCombinationString([ getBestAvailableSymbolFromRing(0, forbiddenSymbols),