mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-26 11:34:30 +08:00
refactor: src 除入口外全部移入 monorepo
This commit is contained in:
1 parent
cca10a429c
commit
0679bbb1a5
103 files changed
+340
-252
No files matched your search
@@ -16,7 +16,7 @@ export interface CurrentEnemy {
|
||||
onMapEnemy: DamageEnemy[];
|
||||
}
|
||||
|
||||
function init() {
|
||||
export function patchBattle() {
|
||||
const patch = new Patch(PatchClass.Enemys);
|
||||
|
||||
patch.add('canBattle', function (x, y, floorId) {
|
||||
@@ -252,7 +252,7 @@ function init() {
|
||||
hook.emit('afterBattle', enemy, x, y);
|
||||
};
|
||||
}
|
||||
loading.once('coreInit', init);
|
||||
loading.once('coreInit', patchBattle);
|
||||
|
||||
declare global {
|
||||
interface Enemys {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { patchBattle } from './battle';
|
||||
|
||||
export function patchAll() {
|
||||
patchBattle();
|
||||
}
|
||||
Reference in new issue
Block a user