修改插件目录

This commit is contained in:
unanmed 2023-07-30 17:12:46 +08:00
parent fbe81fedd2
commit ef7215a2b0
8 changed files with 10 additions and 23 deletions

View File

@ -2086,17 +2086,7 @@ events.prototype._action_disableShop = function (data, x, y, prefix) {
};
events.prototype._action_battle = function (data, x, y, prefix) {
// todo: 修改battle的参数
if (data.id) {
this.battle(data.id, null, null, true, core.doAction);
} else {
if (data.floorId != core.status.floorId) {
core.doAction();
return;
}
var loc = this.__action_getLoc(data.loc, x, y, prefix);
this.battle(null, loc[0], loc[1], true, core.doAction);
}
// Deprecated. See src/plugin/game/enemy/battle.ts
};
events.prototype._action_trigger = function (data, x, y, prefix) {

View File

@ -1171,12 +1171,10 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
}
core.setFlag('__fromLoad__', true);
// TODO增加自己的一些读档处理
core.plugin.skillTree.loadSkillTree(data.skills);
// 切换到对应的楼层
core.changeFloor(data.floorId, null, data.hero.loc, 0, function () {
// TODO可以在这里设置读档后播放BGM
if (core.hasFlag('__bgm__')) {
// 持续播放
core.playBgm(core.getFlag('__bgm__'));

View File

@ -1,4 +1,4 @@
///<reference path="../../../src/types/core.d.ts" />
///<reference path="../../../../src/types/core.d.ts" />
export {};
/* @__PURE__ */ (function () {

View File

@ -1,5 +1,4 @@
///<reference path="../../../src/types/core.d.ts" />
import { drawHalo } from './halo';
import { drawHalo } from '../fx/halo';
// 伤害弹出
// 复写阻激夹域检测

View File

@ -1,4 +1,4 @@
///<reference path="../../../src/types/core.d.ts" />
///<reference path="../../../../src/types/core.d.ts" />
export {};
['up', 'down', 'left', 'right'].forEach(one => {

View File

@ -1,4 +1,4 @@
import { ensureFloorDamage } from './enemy/damage';
import { ensureFloorDamage } from '../enemy/damage';
core.control.updateDamage = function (floorId = core.status.floorId, ctx) {
if (!floorId || core.status.gameOver || main.mode !== 'play') return;

View File

@ -1,11 +1,11 @@
import './fiveLayer';
import './heroFourFrames';
import './hotReload';
import './itemDetail';
import './popup';
import './fx/heroFourFrames';
import './dev/hotReload';
import './fx/itemDetail';
import './enemy/checkblock';
import './replay';
import './ui';
import * as halo from './halo';
import * as halo from './fx/halo';
import * as hero from './hero';
import * as loopMap from './loopMap';
import * as remainEnemy from './remainEnemy';