diff --git a/libs/events.js b/libs/events.js index 61cf2ecd..dbc24147 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1856,12 +1856,8 @@ events.prototype._action_choices = function (data, x, y, prefix) { if (data.choices.length == 0) return this.doAction(); if (core.isReplaying()) { var action = core.status.replay.toReplay.shift(); - // --- 忽略可能的turn事件 - if (action == 'turn') action = core.status.replay.toReplay.shift(); - if (core.hasFlag('@temp@shop') && action.startsWith('shop:')) action = core.status.replay.toReplay.shift(); if (action.indexOf('choices:') == 0) { var index = action.substring(8); - if (index == "-1") index = data.choices.length - 1; if (index == 'none' || ((index = parseInt(index)) >= 0) && index % 100 < data.choices.length) { if (index != 'none') { var timeout = Math.floor(index / 100) || 0; @@ -1883,6 +1879,9 @@ events.prototype._action_choices = function (data, x, y, prefix) { core.doAction(); }, core.status.replay.speed == 24 ? 1 : 750 / Math.max(1, core.status.replay.speed)); } + } else { + core.control._replay_error(action); + return; } } else { if (data.timeout) { @@ -1911,8 +1910,6 @@ events.prototype._action_confirm = function (data, x, y, prefix) { core.status.event.ui = {"text": core.replaceText(data.text, prefix), "yes": data.yes, "no": data.no}; if (core.isReplaying()) { var action = core.status.replay.toReplay.shift(); - // --- 忽略可能的turn事件 - if (action == 'turn') action = core.status.replay.toReplay.shift(); if (action.indexOf('choices:') == 0) { var index = action.substring(8); if (index == 'none' || ((index = parseInt(index)) >= 0) && index % 100 < 2) { diff --git a/libs/utils.js b/libs/utils.js index c0163326..953af106 100644 --- a/libs/utils.js +++ b/libs/utils.js @@ -634,19 +634,6 @@ utils.prototype._decodeRoute_decodeOne = function (decodeObj, c) { break; case "S": decodeObj.ans.push("shop:" + nxt); - // V266->V2.7商店录像兼容性 - if (core.initStatus.shops[nxt]) { - if (!isNaN(decodeObj.route.charAt(decodeObj.index))) { - var selections = this._decodeRoute_getNumber(decodeObj, true); - // 只接普通商店 - if (!core.initStatus.shops[nxt].item && !core.initStatus.shops[nxt].commonEvent) { - decodeObj.ans = decodeObj.ans.concat(selections.split("").map(function (one) { - return 'choices:' + one; - })); - decodeObj.ans.push("choices:-1"); - } - } - } break; case "T": decodeObj.ans.push("turn"); diff --git a/main.js b/main.js index f620acfb..eda3f63f 100644 --- a/main.js +++ b/main.js @@ -197,13 +197,6 @@ main.prototype.init = function (mode, callback) { main.mode = mode; main.loadJs('project', main.pureData, function(){ - if (items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a.itemEffect - && items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a.itemEffectTip) { - alert('即将跳转到接档工具...'); - window.location = 'migration.html'; - return; - } - var mainData = data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d.main; for(var ii in mainData)main[ii]=mainData[ii]; diff --git a/migration.html b/migration.html deleted file mode 100644 index 7ed14fe6..00000000 --- a/migration.html +++ /dev/null @@ -1,605 +0,0 @@ - - - - - - - - HTML5魔塔样板V2.7接档工具 - - -

HTML5魔塔样板V2.7接档工具

- - - - - - - - - - - - -

请严格按照如下流程,一步步进行接档操作。请勿随意增删接档过程,以免出现编辑器白屏、闪退等情况。

- -

-

    -
  1. 做好备份,做好备份,做好备份!!!接档前请一定先做好备份!
  2. -
  3. 使用RM转H5刻塔器所刻的塔不适用于此接档工具。
  4. -
  5. 将V2.6.6样板中project目录下,除了project/functions.jsproject/plugins.js以外的其他文件和文件夹,直接复制到最新的V2.7样板中,然后打开本接档工具。
  6. -
  7. 点击上述的「点此一键接档」,并看到红字提示接档成功。此时编辑器应该可以正常打开。若此时无法打开编辑器请联系小艾处理。
  8. -
  9. 下拉框切到「全塔属性」,并注意以下内容: - -
  10. -
  11. 素材区的如下图块有所变动: - -
  12. -
  13. 下拉框切到「楼层属性」,并注意以下内容: - -
  14. -
  15. 下拉框切换到「脚本编辑」,并请重新编辑各个自己改过的函数(可以双开一个原版V266项目和当前接档的项目进行处理)。 - -
  16. -
  17. 下拉框切换到「插件编写」,并重新新增自己加过的插件。 - -
  18. -
  19. 请仔细检查每个道具的道具效果、每个怪物的属性、每个楼层属性、以及每个点的事件(建议双开对比)。主要变动如下: - -
  20. -
  21. 其他 - -
  22. -
  23. 接档后请做好充分的测试!最好能跑通录像以确认接档无误!
  24. -
-

- - - - - diff --git a/project/functions.js b/project/functions.js index 8d52dfa4..014690ac 100644 --- a/project/functions.js +++ b/project/functions.js @@ -133,10 +133,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = // ---------- 重绘新地图;这一步将会设置core.status.floorId ---------- // core.drawMap(floorId); - // item_ratio兼容性... - if (core.status.thisMap.ratio == null && core.status.thisMap.item_ratio != null) { - core.status.thisMap.ratio = core.status.thisMap.item_ratio; - } // 切换楼层BGM if (core.status.maps[floorId].bgm) {