This commit is contained in:
ckcz123 2018-04-24 13:06:41 +08:00
parent dd5f1edcc2
commit 725bae87eb
4 changed files with 18 additions and 3 deletions

View File

@ -878,6 +878,11 @@ core.prototype.debug = function() {
core.control.debug();
}
////// 重置当前地图 //////
core.prototype.resetMap = function() {
core.maps.resetMap();
}
////// 开始播放 //////
core.prototype.startReplay = function (list) {
core.control.startReplay(list);

View File

@ -887,4 +887,13 @@ maps.prototype.drawAnimate = function (name, x, y, callback) {
}
draw(index++);
}, 50);
}
maps.prototype.resetMap = function() {
var floorId = core.status.floorId;
core.status.maps[floorId] = this.loadFloor(floorId);
this.drawMap(floorId, function() {
core.drawHero(core.getHeroLoc('direction'), core.getHeroLoc('x'), core.getHeroLoc('y'), 'stop');
core.updateStatusBar();
})
}

View File

@ -177,7 +177,7 @@ utils.prototype.formatBigNumber = function (x) {
for (var i=0;i<all.length;i++) {
var one = all[i];
if (x>=10*one.val) {
if (x>=100*one.val) {
var v = x/one.val;
return v.toFixed(Math.max(0, Math.floor(4-Math.log10(v+1)))) + one.c;
}

View File

@ -120,7 +120,8 @@ comment_c456ea59_6018_45ef_8bcc_211a24c627dc =
},
"zoneSquare": {
"_leaf": true,
"_type": "textarea",
"_type": "checkbox",
"_bool": "bool",
"_data": "领域怪zoneSquare代表是否九宫格伤害"
},
"range": {
@ -286,7 +287,7 @@ comment_c456ea59_6018_45ef_8bcc_211a24c627dc =
"item_ratio": {
"_leaf": true,
"_type": "textarea",
"_range": "(thiseval==~~thiseval && thiseval>0)||thiseval==null",
"_range": "(thiseval==~~thiseval && thiseval>=0)||thiseval==null",
"_data": "每一层的宝石/血瓶效果,即获得宝石和血瓶时框内\"ratio\"的值。"
},
"firstArrive": {