Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits) (+1)

Due to limited script space, I used ChantGPT to condense the corresponding code into a single line and replaced it.

Array.from({length: 3}, () => (index => (rewardPicks.push(cardPoolIDs[index]), cardPoolIDs.splice(index, 1)[0]))(Math.randomInt(cardPoolIDs.length)));
After testing, the card misalignment bug no longer occurred. Thank you very much.