fix:微调追猎

This commit is contained in:
ShakeFlower 2025-02-14 15:10:24 +08:00
parent d35b586132
commit c74804fc6d
2 changed files with 12 additions and 52 deletions

View File

@ -1168,9 +1168,11 @@ control.prototype.checkBlock = function () {
// 追猎需要等待阻击完成,避免发生碰撞导致怪物消失 先清理四周追猎,追猎移动,再清理一轮四周的追猎 // 追猎需要等待阻击完成,避免发生碰撞导致怪物消失 先清理四周追猎,追猎移动,再清理一轮四周的追猎
const currChase = core.status.checkBlock.chase[loc]; const currChase = core.status.checkBlock.chase[loc];
if (currChase && currChase.length > 0) { if (currChase && currChase.length > 0) {
const adjacentChase = core.checkBlock_adjacentChase(); if (actions.length === 0) {
if (adjacentChase && adjacentChase.length > 0) core.push(actions, adjacentChase); const adjacentChase = core.checkBlock_adjacentChase();
// core.push(actions, { "type": "function", "async": true, "function": "function(){\ncore.checkBlock_adjacentChase();\n}" }); if (adjacentChase && adjacentChase.length > 0) core.push(actions, adjacentChase);
}
else core.push(actions, { "type": "function", "async": true, "function": "function(){\ncore.checkBlock_adjacentChase(true);\n}" });
} }
const chaseAction = this._checkBlock_chase(currChase); const chaseAction = this._checkBlock_chase(currChase);
if (chaseAction.length > 0) core.push(actions, chaseAction); if (chaseAction.length > 0) core.push(actions, chaseAction);

View File

@ -14,12 +14,12 @@ main.floors.MT0=
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 1, 0, 0, 0,201, 0, 0,201, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0,201, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 1, 0, 0, 0, 57, 0, 0,203, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 1, 0, 37, 35, 12, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0,201,202, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
@ -38,56 +38,14 @@ main.floors.MT0=
} }
], ],
"parallelDo": "", "parallelDo": "",
"events": { "events": {},
"6,8": [
{
"type": "setValue",
"name": "item:poisonWine",
"value": "2"
},
{
"type": "setValue",
"name": "item:yellowKey",
"value": "99"
},
{
"type": "setValue",
"name": "item:silverCoin",
"value": "999"
},
{
"type": "comment",
"text": "unlockControl"
}
],
"3,8": [
{
"type": "moveHero",
"steps": [
"up:8"
]
}
]
},
"changeFloor": {}, "changeFloor": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
"afterOpenDoor": {}, "afterOpenDoor": {},
"cannotMove": {}, "cannotMove": {},
"bgmap": [ "bgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[167,167,167,167,167,167,167,167,167,167,167,167,167],
[ 0, 0,167, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,167, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
], ],
"fgmap": [ "fgmap": [