mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 15:09:26 +08:00
fix: 追逐战困难难度成就
This commit is contained in:
parent
b720c9e032
commit
4b8cb729e2
@ -1,4 +1,3 @@
|
||||
import { logger } from '@/core/common/logger';
|
||||
import { MotaOffscreenCanvas2D } from '@/core/fx/canvas2d';
|
||||
import { CameraAnimation } from '@/core/render/camera';
|
||||
import { LayerGroup } from '@/core/render/preset/layer';
|
||||
|
@ -5,7 +5,6 @@ import { Camera, CameraAnimation, CameraScale } from '@/core/render/camera';
|
||||
import { LayerGroup } from '@/core/render/preset/layer';
|
||||
import { MotaRenderer } from '@/core/render/render';
|
||||
import { Sprite } from '@/core/render/sprite';
|
||||
import { AudioPlayer } from '@/core/audio/audio';
|
||||
import { bgm } from '@/core/audio/bgm';
|
||||
|
||||
const path: Partial<Record<FloorIds, LocArr[]>> = {
|
||||
@ -177,7 +176,7 @@ export function initChase(): IChaseController {
|
||||
animation14.translate(translate, 36, 0, 3320, 21580, linear());
|
||||
animation14.translate(translate, 0, 0, 9960, 24900, linear());
|
||||
|
||||
chase.on('end', () => {
|
||||
chase.on('end', success => {
|
||||
camera.transform.reset();
|
||||
camera.transform.translate(
|
||||
-translate.x * 32 - 7 * 32,
|
||||
@ -191,6 +190,10 @@ export function initChase(): IChaseController {
|
||||
back = void 0;
|
||||
core.removeFlag('onChase');
|
||||
core.removeFlag('chaseId');
|
||||
|
||||
if (success) {
|
||||
completeAchievement('challenge', 0);
|
||||
}
|
||||
});
|
||||
|
||||
judgeFail1(chase, ani, camera);
|
||||
|
Loading…
Reference in New Issue
Block a user