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 @@ - - -
- - - - --
project/functions.js和project/plugins.js以外的其他文件和文件夹,直接复制到最新的V2.7样板中,然后打开本接档工具。noPass:false都改成canPass:true;请仔细检查可通行性。${}计算,ratio需写明全称(参见宝石血瓶写法),请自行处理。null改回为4;如需静止状态请手动改成1。item_ratio被重命名为ratio,请自行修改。core.status.thisMap.ratio改成core.status.thisMap.item_ratio。)experience替换成简写的exp;写伤害计算等时请尤其注意。snipe改名repulse,shoes改名amulet等等,请自行处理。setInitData已被删除,请将需要的额外初始化代码写入startText中。afterChangeLight, afterUseBomb, afterPassNet已被删除,请去对应图块属性内修改。materials目录下的icons_old.png替换掉icons.png以使用原版图标。