Fix ClickMove & RM animate export custom ratio

This commit is contained in:
oc committed 2018-08-02 00:45:33 +08:00
1 parent 1432e5d979
commit ccdc613afd
5 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -286,7 +286,7 @@ control.prototype.resetStatus = function(hero, hard, floorId, route, maps, value
// 保存的Index
core.status.saveIndex = core.getLocalStorage('saveIndex2', 1);
core.status.automaticRoute.clickMoveDirectly = core.getLocalStorage('clickMoveDirectly', false);
core.status.automaticRoute.clickMoveDirectly = core.getLocalStorage('clickMoveDirectly', true);
if (core.isset(values))
core.values = core.clone(values);
+1 -1
View File
@@ -104,7 +104,7 @@ function core() {
'cursorX': null,
'cursorY': null,
"moveDirectly": false,
'clickMoveDirectly': false,
'clickMoveDirectly': true,
},
// 按下键的时间:为了判定双击
+4 -2
View File
@@ -266,8 +266,10 @@ maps.prototype.canMoveDirectly = function (destX,destY) {
if (fromX==destX&&fromY==destY) return 0;
// 可以无视起点事件
// if (core.getBlock(fromX,fromY)!=null||core.status.checkBlock.damage[13*fromX+fromY]>0)
// return -1;
var nowBlockId = core.getBlockId(fromX, fromY);
if ((nowBlockId!=null&&nowBlockId!='upFloor'&&nowBlockId!='downFloor')
||core.status.checkBlock.damage[13*fromX+fromY]>0)
return -1;
// BFS
var visited=[], queue=[];