mirror of
				https://github.com/unanmed/HumanBreak.git
				synced 2025-10-31 20:32:58 +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'; | import { has, ofDir } from '@user/data-utils'; | ||||||
| 
 | 
 | ||||||
| export function init() { | export function createCheckBlock() { | ||||||
|     // 伤害弹出
 |     // 伤害弹出
 | ||||||
|     // 复写阻激夹域检测
 |     // 复写阻激夹域检测
 | ||||||
|     control.prototype.checkBlock = function (forceMockery: boolean = false) { |     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: 'forbidSave', forbid: true }); | ||||||
|         action.push({ type: 'changePos', direction: dir }); |         action.push({ type: 'changePos', direction: dir }); | ||||||
|         const blocks = core.getMapBlocksObj(); |         const blocks = core.getMapBlocksObj(); | ||||||
|         while (1) { |         while (true) { | ||||||
|             x += dx; |             x += dx; | ||||||
|             y += dy; |             y += dy; | ||||||
|             const block = blocks[`${x},${y}`]; |             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 './checkblock'; | ||||||
| export * from './remainEnemy'; | export * from './remainEnemy'; | ||||||
|  | |||||||
| @ -4,10 +4,12 @@ import { initFiveLayer } from './fiveLayer'; | |||||||
| import { createHook } from './hook'; | import { createHook } from './hook'; | ||||||
| import { initReplay } from './replay'; | import { initReplay } from './replay'; | ||||||
| import { initUI } from './ui'; | import { initUI } from './ui'; | ||||||
|  | import { createEnemy } from './enemy'; | ||||||
| 
 | 
 | ||||||
| export function createLegacy() { | export function createLegacy() { | ||||||
|     initFallback(); |     initFallback(); | ||||||
|     loading.once('coreInit', () => { |     loading.once('coreInit', () => { | ||||||
|  |         createEnemy(); | ||||||
|         initFiveLayer(); |         initFiveLayer(); | ||||||
|         createHook(); |         createHook(); | ||||||
|         initReplay(); |         initReplay(); | ||||||
| @ -15,6 +17,7 @@ export function createLegacy() { | |||||||
|     }); |     }); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | export * from './enemy'; | ||||||
| export * from './chase'; | export * from './chase'; | ||||||
| export * from './fallback'; | export * from './fallback'; | ||||||
| export * from './fiveLayer'; | export * from './fiveLayer'; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user