fix: getRemainEnemyString 没有 extern

This commit is contained in:
unanmed 2025-09-04 14:07:37 +08:00
parent ee87e34380
commit 4ff3035993
3 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import { has, ofDir } from '@user/data-utils';
export function init() {
export function createCheckBlock() {
// 伤害弹出
// 复写阻激夹域检测
control.prototype.checkBlock = function (forceMockery: boolean = false) {
@ -52,7 +52,7 @@ function checkMockery(loc: string, force: boolean = false) {
action.push({ type: 'forbidSave', forbid: true });
action.push({ type: 'changePos', direction: dir });
const blocks = core.getMapBlocksObj();
while (1) {
while (true) {
x += dx;
y += dy;
const block = blocks[`${x},${y}`];

View File

@ -1,6 +1,8 @@
import { init as initCheckBlock } from './checkblock';
import { createCheckBlock } from './checkblock';
initCheckBlock();
export function createEnemy() {
createCheckBlock();
}
export * from './checkblock';
export * from './remainEnemy';

View File

@ -4,10 +4,12 @@ import { initFiveLayer } from './fiveLayer';
import { createHook } from './hook';
import { initReplay } from './replay';
import { initUI } from './ui';
import { createEnemy } from './enemy';
export function createLegacy() {
initFallback();
loading.once('coreInit', () => {
createEnemy();
initFiveLayer();
createHook();
initReplay();
@ -15,6 +17,7 @@ export function createLegacy() {
});
}
export * from './enemy';
export * from './chase';
export * from './fallback';
export * from './fiveLayer';