refactor: src 除入口外全部移入 monorepo

This commit is contained in:
AncTe committed 2025-03-09 16:43:59 +08:00
1 parent cca10a429c
commit 0679bbb1a5
103 files changed
+340 -252

No files matched your search

+2 -2
View File
@@ -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 {
+5
View File
@@ -0,0 +1,5 @@
import { patchBattle } from './battle';
export function patchAll() {
patchBattle();
}