修复黑暗圣子结合后楼传问题以及对称飞显示问题

This commit is contained in:
bdf1 2024-08-25 02:14:26 +08:00
parent 4c459a1c45
commit 490ca7ce46

View File

@ -156,6 +156,24 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
if (callback) callback();
}
core.ui._drawCenterFly = function () {
core.lockControl();
core.status.event.id = 'centerFly';
var fillstyle = 'rgba(255,0,0,0.5)';
if (core.canUseItem('centerFly')) fillstyle = 'rgba(0,255,0,0.5)';
var toX = core.bigmap.width - 1 - core.getHeroLoc('x'),
toY = core.bigmap.height - 1 - core.getHeroLoc('y');
this.clearUI();
core.fillRect('ui', 0, 0, core._PX_, core._PY_, '#000000');
core.drawThumbnail(null, null, { heroLoc: core.status.hero.loc, heroIcon: core.status.hero.image, ctx: 'ui', centerX: toX, centerY: toY, noHD: true });
var offsetX = core.clamp(toX - core._HALF_WIDTH_, 0, core.bigmap.width - core._WIDTH_),
offsetY = core.clamp(toY - core._HALF_HEIGHT_, 0, core.bigmap.height - core._HEIGHT_);
core.fillRect('ui', (toX - offsetX) * 32, (toY - offsetY) * 32, 32, 32, fillstyle);
core.status.event.data = { "x": toX, "y": toY, "posX": toX - offsetX, "posY": toY - offsetY };
core.playSound('打开界面');
core.drawTip("请确认当前" + core.material.items['centerFly'].name + "的位置", 'centerFly');
return;
}
},
"drawLight": function () {
@ -3818,6 +3836,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
};
core.status.hero = new Proxy(hero, handler);
if (core.status.thisMap)
for (var i of (core.material.enemys[block.event.id].beforeBattle[0].true))
if (i.type == 'setValue') {
var value = core.events._updateValueByOperator(core.calValue(i.value), core.calValue(i.name), i.operator);