Skip to content

Commit 26a7599

Browse files
committed
Fix chat command text parsing
1 parent 6b4e36b commit 26a7599

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/misc/gachacalc.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Example with 70 pulls and 10 pity: \`${config.prefix}gachacalc 70 10\`
9191
Example with 70 pulls, 10 pity and guaranteed: \`${config.prefix}gachacalc 70 10 y\`
9292
Example with 70 pulls, 10 pity and guaranteed for 5 star weapon banner: \`${config.prefix}gachacalc weapon 70 10 y\`
9393
`,
94-
usage: "gachacalc [gacha] <pulls> [pity] [guaranteed]",
94+
usage: "gachacalc [gacha] <pulls> [pity] [guaranteed] [current const/refinement] [Epitomized Path progress]",
9595
aliases: ["gc", "gachasim", "gcalc", "gsim", "gs"],
9696
options: [{
9797
name: "pulls",
@@ -159,8 +159,8 @@ Example with 70 pulls, 10 pity and guaranteed for 5 star weapon banner: \`${conf
159159

160160
const pulls = parseInt(args[0] ?? "75")
161161
const pity = parseInt(args[1] ?? "0")
162-
const current = parseInt(args[2] ?? "-1")
163-
const guaranteedPity = parseInt(args[1] ?? "0")
162+
const current = parseInt(args[3] ?? "-1")
163+
const guaranteedPity = parseInt(args[4] ?? "0")
164164

165165
let guaranteed = false
166166
if (args[2]?.match(/y(es)?|t(rue)?|g(uaranteed)?/))

0 commit comments

Comments
 (0)