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

@ -72,8 +72,11 @@ SPDX-License-Identifier: AGPL-3.0-only
<div class="_gaps_s" style="padding: 16px;">
<div><b>Credit</b></div>
<div>
<div>Ai-chan illustration: @poteriri@misskey.io</div>
<div>BGM: @ys@misskey.design</div>
<div>Ai-chan illustration: <MkA href="/@poteriri@misskey.io">@poteriri@misskey.io</MkA></div>
<div>BGM: <MkA href="/@ys@misskey.design">@ys@misskey.design</MkA></div>
<div>Emoji Thanks: <MkA to="/@User2_Moo@prismisskey.space">@User2_Moo@prismisskey.space</MkA></div>
<div>Emoji Thanks: <MkA to="/@z_n_jin@prismisskey.space">@z_n_jin@prismisskey.space</MkA></div>
<div>Emoji Thanks: <MkA to="/@nekomimi@prismisskey.space">@nekomimi@prismisskey.space</MkA></div>
</div>
</div>
</div>

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);