修复竖大地图bug

This commit is contained in:
ckcz123 2020-08-15 18:29:45 +08:00
parent 974122a202
commit dcc5a4aafa
2 changed files with 2 additions and 1 deletions

View File

@ -243,6 +243,7 @@ enemys.prototype._nextCriticals_useBinarySearch = function (enemy, info, number,
while (start < end) {
var mid = Math.floor((start + end) / 2);
if (mid - start > end - mid) mid--;
var nextInfo = core.enemys.getDamageInfo(enemy, {"atk": mid}, x, y, floorId);
if (nextInfo == null || (typeof nextInfo == 'number')) return null;
if (pre > nextInfo.damage) end = mid;

View File

@ -406,7 +406,7 @@ maps.prototype.resizeMap = function (floorId) {
core.bigmap.v2 = core.bigmap.width * core.bigmap.height > core.bigmap.threshold;
var width = core.bigmap.v2 ? core.__PIXELS__ + 64 : core.bigmap.width * 32;
var height = core.bigmap.v2 ? core.__PIXELS__ + 64 : core.bigmap.width * 32;
var height = core.bigmap.v2 ? core.__PIXELS__ + 64 : core.bigmap.height * 32;
core.bigmap.canvas.forEach(function (cn) {
core.canvas[cn].canvas.setAttribute("width", width);