diff --git a/README.md b/README.md index e91b1e25..1ed67b79 100644 --- a/README.md +++ b/README.md @@ -67,15 +67,6 @@ HTML5 canvas制作的魔塔样板,支持全平台游戏! ## 更新说明 -### 2022.7.10 HTML5魔塔魔改板V2.9.2 -* core.status.event.id的真正作用是影响actions.js中的_sys_keyDown_lockControl,_sys_ondown_lockControl等函数 -* 本版本非h5魔塔官方版本,仅为自用魔改版 -* [x] 移除了sample层以及对应的多余怪物数据 -* [x] 修正了runtime.d.ts的错误 -* [x] 添加了清怪检测,败移,追猎,重开杖的默认实现 -* [x] 添加了若干常用插件 -* [x] 美化了设置界面,在设置中添加了上述自动拾取,数据显示等功能的开关 - ### 2022.7.10 HTML5魔塔样板V2.9.1 * [x] 修复更新状态栏延迟到下一动画帧引发的一系列bug,修改为增加一个是否立即更新的参数 diff --git a/mynote.md b/mynote.md index 6340c596..c23c41fc 100644 --- a/mynote.md +++ b/mynote.md @@ -63,4 +63,8 @@ info1.itemNum = itemNum; core.drawItemListbox(ctx, info1.obj); core.drawToolboxRightbar(ctx, info1); -``` \ No newline at end of file +``` + +!mypromt callback疑似需要改回去 + +难绷的bug太多了 自动拾取,自动清怪,追猎等等。 \ No newline at end of file diff --git a/project/plugins.js b/project/plugins.js index ae7bf0c8..9946d2c3 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -1145,11 +1145,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = if (main.replayChecking) __enable = false; if (!__enable) { - core.plugin.animate = { - Ticker: class { - add() { } - } - }; + core.plugin.animate = {}; this.deleteTicker = () => { }; this.deleteAllTickers = () => { }; this.getAllTickers = () => { }; @@ -1922,9 +1918,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = const ctxName = 'globalAnimate'; - if (!core.isReplaying()) { + if (Ticker) { const ticker = new Ticker(); ticker.add(() => { + if (core.isReplaying()) return; const ctx = core.getContextByName(ctxName); if (!has(ctx)) return; core.clearMap(ctx); @@ -2123,7 +2120,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = const item = core.material.items[block.event.id]; if (canGetItem(item, loc, floorId)) { core.getItem(item.id, 1, tx, ty); - if (!core.isReplaying()) { + if (!core.isReplaying() && Transition) { let px = tx * 32 - core.bigmap.offsetX; let py = ty * 32 - core.bigmap.offsetY; const t = new Transition(); @@ -2184,6 +2181,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = "FloatingText": function () { // 本插件定义了一些字符绘制相关效果 + return; + // 有待调试 const { Animation, linear } = core.plugin.animate; const ctx = 'scrollingText'; @@ -4675,19 +4674,5 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = settingMenu.init(); } - - // todolist 自定义设置界面添加键盘支持 √ - // todolist 剧情全skip功能 文字-文字+演出(跳跃) √ - // todolist 批量使用:您当前选定了:xxx。请勿选定不适合批量使用的道具,请勿输入过大的数字。 - // todolist 道具栏分页,可设定隐藏的道具,及自动查看显隐藏 手动hide无用道具 √ - // todolist 内置ATRI 解决连通性问题 - // todolist 血瓶宝石显示数据 解决浏览地图和楼传显示错误 引入自动配置值的块 √ - // todolist 存读档过程保存图块连通性(可选)√ - // todolist 清怪检测,重开杖,吸噬 × 有人需要??不需要 - // todolist 修复已知的插件bug - // todolist 添加鸽窝样板的快速读取撤回 和 优化美工 - // todolist 音效连续播放的优化(与自动清有关) - // todolist 新的临界计算 - // todolist 微调BGM播放 } } \ No newline at end of file