mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-09-06 08:11:46 +08:00
fix: getRemainEnemyString 没有 extern
This commit is contained in:
parent
ee87e34380
commit
4ff3035993
@ -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}`];
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user