From bacb98a1c18bf3902e379dfd88bf6a01bc2556b5 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Wed, 17 Jan 2024 20:20:41 +0900 Subject: [PATCH] Feat: drop-and-fusion update --- packages/frontend/src/pages/drop-and-fusion.vue | 11 +++++++---- .../frontend/src/scripts/drop-and-fusion-engine.ts | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/pages/drop-and-fusion.vue b/packages/frontend/src/pages/drop-and-fusion.vue index 00a2dfe292..39313bd8c6 100644 --- a/packages/frontend/src/pages/drop-and-fusion.vue +++ b/packages/frontend/src/pages/drop-and-fusion.vue @@ -28,7 +28,7 @@ SPDX-License-Identifier: AGPL-3.0-only - + {{ i18n.ts.start }} @@ -72,8 +72,11 @@ SPDX-License-Identifier: AGPL-3.0-only
Credit
-
Ai-chan illustration: @poteriri@misskey.io
-
BGM: @ys@misskey.design
+
Ai-chan illustration: @poteriri@misskey.io
+
BGM: @ys@misskey.design
+
Emoji Thanks: @User2_Moo@prismisskey.space
+
Emoji Thanks: @z_n_jin@prismisskey.space
+
Emoji Thanks: @nekomimi@prismisskey.space
@@ -109,7 +112,7 @@ function getScoreUnit(gameMode: string) { gameMode === 'square' ? 'pt' : gameMode === 'yen' ? '円' : gameMode === 'sweets' ? 'kcal' : - gameMode === 'prismisskey' ? 'pt' : + gameMode === 'prismisskey' ? 'pt' : '' as never; } diff --git a/packages/frontend/src/scripts/drop-and-fusion-engine.ts b/packages/frontend/src/scripts/drop-and-fusion-engine.ts index 4378bef5e4..1d55ea62d8 100644 --- a/packages/frontend/src/scripts/drop-and-fusion-engine.ts +++ b/packages/frontend/src/scripts/drop-and-fusion-engine.ts @@ -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);