Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Libram to 0.9.26 #2183

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading