Feat: drop-and-fusion update

This commit is contained in:
mattyatea 2024-01-17 20:20:41 +09:00
parent 5cfa86e85e
commit bacb98a1c1
2 changed files with 8 additions and 5 deletions

View file

@ -1563,7 +1563,7 @@ export class DropAndFusionGame extends EventEmitter<{
for (let i = 0; i < this.STOCK_MAX; i++) {
this.stock.push({
id: this.rng().toString(),
mono: this.monoDefinitions[7],
mono: this.monoDefinitions.filter(x => x.dropCandidate)[Math.floor(this.rng() * this.monoDefinitions.filter(x => x.dropCandidate).length)],
});
}
this.emit('changeStock', this.stock);