Skip to content

Commit 68ae6e5

Browse files
committed
Fix Mona/Ayaka sprint talent cost
1 parent ce73692 commit 68ae6e5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/commands/characters/character.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Note: this command supports fuzzy search.`,
248248
}
249249

250250
const upgradeLines: string[] = []
251-
if (char.ascensionCosts ) {
251+
if (char.ascensionCosts) {
252252
const ascensionCosts = [
253253
char.ascensionCosts.mapping.Gem4,
254254
char.ascensionCosts.mapping.BossMat,
@@ -265,20 +265,20 @@ Note: this command supports fuzzy search.`,
265265

266266
const books = talents
267267
.flatMap(s => [
268-
s?.costs?.mapping.Book,
269-
s?.costs?.mapping.Book1,
270-
s?.costs?.mapping.Book2,
271-
s?.costs?.mapping.Book3,
268+
s?.costs?.mapping?.Book,
269+
s?.costs?.mapping?.Book1,
270+
s?.costs?.mapping?.Book2,
271+
s?.costs?.mapping?.Book3,
272272
])
273273
.filter((x, i, a) => x && a.indexOf(x) == i)
274274
.map(x => `Guide to ${x}`)
275275

276276
const mats = talents
277-
.map(s => s?.costs?.mapping.BossMat)
277+
.map(s => s?.costs?.mapping?.BossMat)
278278
.filter((x, i, a) => x && a.indexOf(x) == i)
279279

280280
const drops = talents
281-
.map(s => s?.costs?.mapping.EnemyDropTier3)
281+
.map(s => s?.costs?.mapping?.EnemyDropTier3)
282282
.filter((x, i, a) => x && a.indexOf(x) == i)
283283

284284
const all = [...books, ...mats, ...drops]

0 commit comments

Comments
 (0)