fix: 追猎自动存档

This commit is contained in:
unanmed 2024-09-28 15:52:17 +08:00
parent c6e0573496
commit 22c1ff5a4d
2 changed files with 14 additions and 15 deletions

View File

@ -35,19 +35,19 @@ main.floors.MT91=
"cannotMoveIn": {},
"map": [
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[ 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0,648, 0, 0, 0, 0, 0, 0, 0,648, 0,648],
[648, 0, 0, 0, 0, 0, 0,648,648,648, 0, 0,648, 0,648],
[648,648,648,648,648,648,648,648, 0,648, 0,648,648, 0,648],
[648, 0,648, 0, 0, 0, 0, 0, 0,648, 0, 0, 0, 0,648],
[648, 0, 0, 0,648, 0,648,648,648,648, 0,648,648,648,648],
[648,648,648,648,648, 0, 0, 0, 0, 0, 0,648, 0, 0,648],
[ 92, 0, 0, 0,648, 0,648,648, 0,648, 0,648, 0, 0, 94],
[648, 0, 0, 0, 0, 0, 0,648, 0,648,648,648, 0,648,648],
[648,648,648,648,648,648, 0,648, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0,648, 0, 0,648, 0,648, 0,648],
[648, 0,648,648, 0,648,648,648,648,648,648, 0,648, 0,648],
[648, 0, 0,648, 0,648, 0, 0, 0,648, 0, 0,648, 0,648],
[648, 0, 0,648, 0,648, 0, 0, 0, 0, 0, 0,648, 0,648],
[648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
],
"bgmap": [

View File

@ -425,8 +425,7 @@ export class HeroMover extends ObjectMoverBase {
const map = core.status.thisMap.enemy.mapDamage;
const dam = map[index];
const nextDam = map[nIndex];
if (!dam) return false;
if (nextDam.mockery || (!dam.hunt && nextDam.hunt)) {
if (nextDam?.mockery || (!dam?.hunt && nextDam?.hunt)) {
core.autosave();
return true;
}