1
0
forked from mirror/misskey

Update drop-and-fusion-engine.ts

This commit is contained in:
syuilo 2024-01-09 16:34:01 +09:00
parent 17f368e228
commit c0d28358d6

View File

@ -239,7 +239,7 @@ export class DropAndFusionGame extends EventEmitter<{
// 連鎖してfusionした場合の分かりやすさのため少し間を置いてからfusion対象になるようにする
this.tickCallbackQueue.push({
frame: this.frame + 100,
frame: this.frame + 6,
callback: () => {
this.activeBodyIds.push(body.id);
},
@ -347,7 +347,7 @@ export class DropAndFusionGame extends EventEmitter<{
} else {
fusionReservedPairs.push({ bodyA, bodyB });
this.tickCallbackQueue.push({
frame: this.frame + 100,
frame: this.frame + 6,
callback: () => {
fusionReservedPairs = fusionReservedPairs.filter(x => x.bodyA.id !== bodyA.id && x.bodyB.id !== bodyB.id);
this.fusion(bodyA, bodyB);