From 290f2ddb1aa11395f0d7552630d6f1a20dc63434 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 16 Jan 2018 19:55:14 +0800 Subject: [PATCH] Replay --- libs/core.js | 2 +- libs/data.js | 2 +- libs/events.js | 3 +++ main.js | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/core.js b/libs/core.js index bcf766b3..0acf5b6f 100644 --- a/libs/core.js +++ b/libs/core.js @@ -3441,7 +3441,7 @@ core.prototype.replay = function (list) { return; } var selection = parseInt(selections.shift()); - if (isNaN(core.status.event.selection=selection) || selection<0 || selection>=choices.length || !core.events.clickShop(6, topIndex+selection)) { + if (isNaN(selection) || selection<0 || selection>=choices.length || !core.events.clickShop(6, topIndex+selection)) { clearInterval(shopInterval); core.status.replay.replaying=false; core.drawTip("录像文件出错"); diff --git a/libs/data.js b/libs/data.js index eae23c89..82fd515c 100644 --- a/libs/data.js +++ b/libs/data.js @@ -6,7 +6,7 @@ data.prototype.init = function() { this.firstData = { "title": "魔塔样板", // 游戏名,将显示在标题页面以及切换楼层的界面中 "name": "template", // 游戏的唯一英文标识符。由英文、数字、下划线组成,不能超过20个字符。 - "version": "Ver 1.0.0 (Beta)", // 当前游戏版本;版本不一致的存档不能通用。 + "version": "Ver 1.3.2.0", // 当前游戏版本;版本不一致的存档不能通用。 "floorId": "sample0", // 初始楼层ID "hero": { // 勇士初始数据 "name": "阳光", // 勇士名;可以改成喜欢的 diff --git a/libs/events.js b/libs/events.js index 43b8fbe4..75b872d6 100644 --- a/libs/events.js +++ b/libs/events.js @@ -968,6 +968,9 @@ events.prototype.clickShop = function(x,y) { if (x >= 5 && x <= 7) { var topIndex = 6 - parseInt(choices.length / 2); if (y>=topIndex && y