Remove starttime

This commit is contained in:
ckcz123 2018-12-04 13:23:02 +08:00
parent 5b34fbe47e
commit c9fe2f6177
2 changed files with 1 additions and 7 deletions

View File

@ -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;

View File

@ -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
}}
// 停止勇士