Skip to content

Commit

Permalink
Update Libram to 0.9.26 (#2183)
Browse files Browse the repository at this point in the history
* Update Libram to 0.9.26

* Change MayamSymbol to Glyph
  • Loading branch information
pstalcup authored Dec 19, 2024
1 parent f204c3c commit c1ca816
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/garbo-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"eslint": "^9.9.0",
"eslint-config-garbo": "^0.0.1",
"kolmafia": "^5.28067.0",
"libram": "^0.9.12",
"libram": "^0.9.26",
"lint-staged": "^15.2.9",
"madge": "^8.0.0",
"prettier": "^3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/garbo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"garbo-lib": "*",
"grimoire-kolmafia": "^0.3.26",
"kolmafia": "^5.28067.0",
"libram": "^0.9.12"
"libram": "^0.9.26"
},
"devDependencies": {
"@babel/cli": "^7.24.8",
Expand Down
8 changes: 4 additions & 4 deletions packages/garbo/src/resources/mayam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]();
}

Expand All @@ -75,7 +75,7 @@ function valueCombination(
}

function getAvailableResonances(
forbiddenSymbols: MayamCalendar.MayamSymbol[],
forbiddenSymbols: MayamCalendar.Glyph[],
): MayamCalendar.CombinationString[] {
return MayamCalendar.RESONANCE_KEYS.filter(
(combination) =>
Expand All @@ -87,7 +87,7 @@ function getAvailableResonances(

function getBestAvailableSymbolFromRing<R extends Range<0, 4>>(
ring: R,
forbiddenSymbols: MayamCalendar.MayamSymbol[],
forbiddenSymbols: MayamCalendar.Glyph[],
): (typeof MayamCalendar.RINGS)[R][number] {
return maxBy(
MayamCalendar.RINGS[ring].filter((sym) => !forbiddenSymbols.includes(sym)),
Expand All @@ -96,7 +96,7 @@ function getBestAvailableSymbolFromRing<R extends Range<0, 4>>(
}

function getBestGreedyCombination(
forbiddenSymbols: MayamCalendar.MayamSymbol[],
forbiddenSymbols: MayamCalendar.Glyph[],
): MayamCalendar.CombinationString {
return MayamCalendar.toCombinationString([
getBestAvailableSymbolFromRing(0, forbiddenSymbols),
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4335,7 +4335,7 @@ __metadata:
eslint: ^9.9.0
eslint-config-garbo: ^0.0.1
kolmafia: ^5.28067.0
libram: ^0.9.12
libram: ^0.9.26
lint-staged: ^15.2.9
madge: ^8.0.0
prettier: ^3.3.3
Expand Down Expand Up @@ -4390,7 +4390,7 @@ __metadata:
garbo-lib: "*"
grimoire-kolmafia: ^0.3.26
kolmafia: ^5.28067.0
libram: ^0.9.12
libram: ^0.9.26
lint-staged: ^15.2.9
madge: ^8.0.0
prettier: ^3.3.3
Expand Down Expand Up @@ -5054,14 +5054,14 @@ __metadata:
languageName: node
linkType: hard

"libram@npm:^0.9.12":
version: 0.9.12
resolution: "libram@npm:0.9.12"
"libram@npm:^0.9.26":
version: 0.9.26
resolution: "libram@npm:0.9.26"
dependencies:
html-entities: ^2.5.2
peerDependencies:
kolmafia: ^5.27668.0
checksum: 0d023ac40dccf9f23c080d1a83a0e1513fb17710ab89460bdb944d40b46b2bea7530386dbc0164cf2d4c4a1e23a48a740a2ed0426c21ab503746380d31297d1a
kolmafia: ^5.28100.0
checksum: 9ae167cfc046af03d0e4314a6086fec6118104dae15067e7204b5e1c8bf19b32e9b901f5456623b1a6d8e52159731c9a3ff2762442b29fa8291e959d8d4bff9a
languageName: node
linkType: hard

Expand Down

0 comments on commit c1ca816

Please sign in to comment.