From c9fe2f6177640e77eb31ae7f36fe56bb6714d5ef Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 4 Dec 2018 13:23:02 +0800 Subject: [PATCH] Remove starttime --- libs/actions.js | 6 ------ libs/events.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/actions.js b/libs/actions.js index 5b8a3ede..d4f024a3 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -780,12 +780,6 @@ actions.prototype.clickAction = function (x,y) { ////// 自定义事件时,按下某个键的操作 ////// actions.prototype.keyDownAction = function (keycode) { - // 视为无效 - var startTime = core.status.event.data.startTime||0; - if (startTime>0 && new Date().getTime()-startTime<250) - return; - core.status.event.data.startTime = 0; - if (core.status.event.data.type=='choices') { var data = core.status.event.data.current; var choices = data.choices; diff --git a/libs/events.js b/libs/events.js index a1a3184a..6bdecb9a 100644 --- a/libs/events.js +++ b/libs/events.js @@ -344,7 +344,7 @@ events.prototype.doEvents = function (list, x, y, callback) { core.status.event = {'id': 'action', 'data': { 'list': [ {"todo": core.clone(list), "total": core.clone(list), "condition": "false"} - ], 'x': x, 'y': y, 'callback': callback, 'startTime': new Date().getTime() + ], 'x': x, 'y': y, 'callback': callback }} // 停止勇士