From b4d7424762c479b7c1206c8e5d2808170aadac57 Mon Sep 17 00:00:00 2001 From: oc Date: Fri, 25 May 2018 23:03:51 +0800 Subject: [PATCH] statistics --- libs/events.js | 2 +- libs/ui.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/events.js b/libs/events.js index 78681b6f..3ec0262c 100644 --- a/libs/events.js +++ b/libs/events.js @@ -187,7 +187,7 @@ events.prototype.gameOver = function (ending, fromReplay) { formData.append('experience', core.status.hero.experience); formData.append('steps', core.status.hero.steps); formData.append('seed', core.getFlag('seed')); - formData.append('totalTime', Math.floor(core.status.hero.statistics.totalTime)); + formData.append('totalTime', Math.floor(core.status.hero.statistics.totalTime/1000)); formData.append('route', core.encodeRoute(core.status.route)); if (main.isCompetition) diff --git a/libs/ui.js b/libs/ui.js index 87118e65..b231ccb0 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -1895,7 +1895,8 @@ ui.prototype.drawStatistics = function () { core.drawText([ getText("全塔", total), getText("当前", current), - "当前总步数:"+core.status.hero.steps+",游戏时长:"+formatTime(statistics.totalTime) + "当前总步数:"+core.status.hero.steps+",当前游戏时长:"+formatTime(statistics.currTime) + +",总游戏时长"+formatTime(statistics.totalTime) +"。\n瞬间移动次数:"+statistics.moveDirectly+",共计少走"+statistics.ignoreSteps+"步。" +"\n\n总计通过血瓶恢复生命值为"+core.formatBigNumber(statistics.hp)+"点。\n\n" +"总计受到的伤害为"+core.formatBigNumber(statistics.battleDamage+statistics.poisonDamage+statistics.extraDamage)