v2.x bigmap
This commit is contained in:
parent
f13e20a992
commit
bb5ebdf452
@ -1167,7 +1167,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
type = {}, // 每个点的伤害类型
|
type = {}, // 每个点的伤害类型
|
||||||
repulse = {}, // 每个点的阻击怪信息
|
repulse = {}, // 每个点的阻击怪信息
|
||||||
ambush = {}; // 每个点的捕捉信息
|
ambush = {}; // 每个点的捕捉信息
|
||||||
var betweenAttackLocs = {}; // 所有带夹击的怪物
|
var betweenAttackLocs = {}; // 所有可能的夹击点
|
||||||
var needCache = false;
|
var needCache = false;
|
||||||
var canGoDeadZone = core.flags.canGoDeadZone;
|
var canGoDeadZone = core.flags.canGoDeadZone;
|
||||||
core.flags.canGoDeadZone = true;
|
core.flags.canGoDeadZone = true;
|
||||||
@ -1294,8 +1294,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
if ((core.status.event.id == 'book' || core.status.event.id == 'bool-detail') && core.status.event.ui) needCache = true;
|
if ((core.status.event.id == 'book' || core.status.event.id == 'bool-detail') && core.status.event.ui) needCache = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新夹击伤害
|
// 对每个可能的夹击点计算夹击伤害
|
||||||
// 如果要防止夹击伤害,可以简单的将 flag:no_betweenAttack 设为true
|
|
||||||
for (var loc in betweenAttackLocs) {
|
for (var loc in betweenAttackLocs) {
|
||||||
var xy = loc.split(","),
|
var xy = loc.split(","),
|
||||||
x = parseInt(xy[0]),
|
x = parseInt(xy[0]),
|
||||||
|
|||||||
@ -426,7 +426,6 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
"events", "changeFloor", "afterBattle", "afterGetItem", "afterOpenDoor", "cannotMove"
|
"events", "changeFloor", "afterBattle", "afterGetItem", "afterOpenDoor", "cannotMove"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
////// 绘制背景和前景层 //////
|
////// 绘制背景和前景层 //////
|
||||||
core.maps._drawBg_draw = function (floorId, toDrawCtx, cacheCtx, config) {
|
core.maps._drawBg_draw = function (floorId, toDrawCtx, cacheCtx, config) {
|
||||||
config.ctx = cacheCtx;
|
config.ctx = cacheCtx;
|
||||||
@ -457,8 +456,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
if (config.onMap) core.drawImage('fg2', cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
|
if (config.onMap) core.drawImage('fg2', cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
|
||||||
config.ctx = toDrawCtx;
|
config.ctx = toDrawCtx;
|
||||||
}
|
}
|
||||||
|
////// 移动判定 //////
|
||||||
/* cannotIn/cannotOut适配 start*/
|
|
||||||
core.maps._generateMovableArray_arrays = function (floorId) {
|
core.maps._generateMovableArray_arrays = function (floorId) {
|
||||||
return {
|
return {
|
||||||
bgArray: this.getBgMapArray(floorId),
|
bgArray: this.getBgMapArray(floorId),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user