Fix snake draft Discord pick numbering and small UX tweaks #2
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ export async function getTopAvailableParticipant(
|
||||||
export function calculatePickInfo(
|
export function calculatePickInfo(
|
||||||
pickNumber: number,
|
pickNumber: number,
|
||||||
teamCount: number
|
teamCount: number
|
||||||
): { round: number; pickInRound: number; teamIndex: number } {
|
): { round: number; pickInRound: number; teamIndex: number; rawPickInRound: number } {
|
||||||
const round = Math.ceil(pickNumber / teamCount);
|
const round = Math.ceil(pickNumber / teamCount);
|
||||||
const rawPickInRound = ((pickNumber - 1) % teamCount) + 1;
|
const rawPickInRound = ((pickNumber - 1) % teamCount) + 1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue