feat: 几个新楼层

This commit is contained in:
unanmed 2024-09-27 22:04:47 +08:00
parent ac8a61558e
commit c7f7cf280b
15 changed files with 373 additions and 303 deletions

View File

@ -1833,6 +1833,8 @@ events.prototype._action_jumpHero = function (data, x, y, prefix) {
} else { } else {
loc = this.__action_getHeroLoc(data.loc, prefix); loc = this.__action_getHeroLoc(data.loc, prefix);
} }
console.log(1);
this.__action_doAsyncFunc( this.__action_doAsyncFunc(
data.async, data.async,
core.jumpHero, core.jumpHero,

View File

@ -168,7 +168,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"E617": {"name":"冰封雕像","hp":12500,"atk":2750,"def":2000,"money":2,"exp":150,"point":0,"special":[]}, "E617": {"name":"冰封雕像","hp":12500,"atk":2750,"def":2000,"money":2,"exp":150,"point":0,"special":[]},
"E618": {"name":"圣殿守卫","hp":30000,"atk":12500,"def":7500,"money":10,"exp":1000,"point":0,"special":[]}, "E618": {"name":"圣殿守卫","hp":30000,"atk":12500,"def":7500,"money":10,"exp":1000,"point":0,"special":[]},
"E643": {"name":"苍蓝史莱姆","hp":17500,"atk":2800,"def":2000,"money":3,"exp":175,"point":0,"special":[28],"paleShield":30}, "E643": {"name":"苍蓝史莱姆","hp":17500,"atk":2800,"def":2000,"money":3,"exp":175,"point":0,"special":[28],"paleShield":30},
"E644": {"name":"苍蓝融合怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[32],"assimilateRange":2}, "E644": {"name":"苍蓝融合怪","hp":40000,"atk":7500,"def":5000,"money":8,"exp":1000,"point":0,"special":[32],"assimilateRange":2},
"E645": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E645": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E646": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E646": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E647": {"name":"苍蓝之灵-虚","hp":30000,"atk":5000,"def":3000,"money":10,"exp":2500,"point":0,"special":[28],"paleShield":10}, "E647": {"name":"苍蓝之灵-虚","hp":30000,"atk":5000,"def":3000,"money":10,"exp":2500,"point":0,"special":[28],"paleShield":10},
@ -186,7 +186,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"E673": {"name":"苍蓝之灵-域","hp":250000,"atk":12000,"def":3000,"money":10,"exp":2500,"point":0,"special":[]}, "E673": {"name":"苍蓝之灵-域","hp":250000,"atk":12000,"def":3000,"money":10,"exp":2500,"point":0,"special":[]},
"E674": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E674": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E675": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E675": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E676": {"name":"冲锋骷髅","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[12]}, "E676": {"name":"冲锋骷髅","hp":50000,"atk":8000,"def":4000,"money":6,"exp":500,"point":0,"special":[12]},
"E677": {"name":"骷髅巫师","hp":150000,"atk":2000,"def":5000,"money":5,"exp":600,"point":0,"special":[13],"crit":null}, "E677": {"name":"骷髅巫师","hp":150000,"atk":2000,"def":5000,"money":5,"exp":600,"point":0,"special":[13],"crit":null},
"E678": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E678": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E679": {"name":"剑盾之卫","hp":30000,"atk":10000,"def":6000,"money":7,"exp":700,"point":0,"special":[1],"crit":600}, "E679": {"name":"剑盾之卫","hp":30000,"atk":10000,"def":6000,"money":7,"exp":700,"point":0,"special":[1],"crit":600},

View File

@ -43,6 +43,13 @@ main.floors.MT73=
14, 14,
7 7
] ]
},
"14,7": {
"floorId": "MT88",
"loc": [
0,
7
]
} }
}, },
"beforeBattle": {}, "beforeBattle": {},

View File

@ -38,6 +38,13 @@ main.floors.MT74=
14, 14,
7 7
] ]
},
"14,7": {
"floorId": "MT87",
"loc": [
0,
7
]
} }
}, },
"beforeBattle": {}, "beforeBattle": {},

View File

@ -31,6 +31,13 @@ main.floors.MT75=
14, 14,
7 7
] ]
},
"14,7": {
"floorId": "MT85",
"loc": [
0,
7
]
} }
}, },
"beforeBattle": {}, "beforeBattle": {},
@ -42,14 +49,14 @@ main.floors.MT75=
"cannotMoveIn": {}, "cannotMoveIn": {},
"map": [ "map": [
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648], [648,648,648,648,648,648,648,648,648,648,648,648,648,648,648],
[648,491,491,494,491,494, 0, 0, 0,494,491,494,491,491,648], [648,491,491,494,491,494,657,676, 0,494,491,494,491,491,648],
[648,648,648,648,648,648,644,682,659,648,648,648,648,648,648], [648,648,648,648,648,648,644,682,659,648,648,648,648,648,648],
[648,484,484,492,484,492,578,677,679,492,484,492,484,484,648], [648,484,484,492,484,492,578,677,679,492,484,492,484,484,648],
[648,648,648,648,648,648,618,249,513,648,648,648,648,648,648], [648,648,648,648,648,648,618,249,513,648,648,648,648,648,648],
[648, 0, 0, 0, 0,103,232,658,671,103, 0, 0, 0, 0,648], [648, 0, 0, 0, 0,103,232,658,671,103, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0,676, 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,672, 0, 0, 0, 0, 0, 0, 0,599, 0, 0, 94], [ 92, 0, 0,672, 0, 0, 0, 0, 0, 0, 0,599, 0, 0, 94],
[648, 0, 0, 0, 0, 0, 0,657, 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,103, 0, 0, 0,103, 0, 0, 0, 0,648], [648, 0, 0, 0, 0,103, 0, 0, 0,103, 0, 0, 0, 0,648],
[648,648,648,648,648,648, 0, 0, 0,648,648,648,648,648,648], [648,648,648,648,648,648, 0, 0, 0,648,648,648,648,648,648],
[648,484,484,492,484,492, 0, 0, 0,492,484,492,484,484,648], [648,484,484,492,484,492, 0, 0, 0,492,484,492,484,484,648],

View File

@ -17,7 +17,29 @@ main.floors.MT85=
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {},
"changeFloor": {}, "changeFloor": {
"0,7": {
"floorId": "MT75",
"loc": [
14,
7
]
},
"14,3": {
"floorId": "MT86",
"loc": [
0,
4
]
},
"10,14": {
"floorId": "MT87",
"loc": [
10,
0
]
}
},
"beforeBattle": {}, "beforeBattle": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
@ -26,21 +48,21 @@ main.floors.MT85=
"cannotMove": {}, "cannotMove": {},
"cannotMoveIn": {}, "cannotMoveIn": {},
"map": [ "map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [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, 0, 0], [648, 0, 0, 0, 0,484, 0, 0, 0, 0,676,648, 0, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,679,648,648,513,648,648,648,648,648, 0,648, 0,484,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,491, 0,648, 27,484,648, 0, 28,648, 0,648,484, 0, 94],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,378,648,381, 28,492,491, 0,492, 0,578, 0, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,648,648,648,648,659,648, 0,648,648,513,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,484,648, 0,578, 0,648, 0,648, 0,648, 28, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 92, 0, 0,249,482,648, 29, 0,484,648, 0,648, 0, 27,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,484,648, 0,648,648,648,648,648,484,648,648,618,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648, 27, 0,492, 21,376,677, 0, 0,648,381,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,484, 0,682, 0, 0,648,648,648,648,648,658,648,491,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,658,648,648,648,682,648,378, 0,578, 29, 0,648,376,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,491,648, 0, 28,648, 0, 0,648, 0, 0,648, 22,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 27, 0,492,484, 0,682, 0,484,648, 0, 29,494,378,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [648,648,648,648,648,648,648,648,648,648, 93,648,648,648,648]
], ],
"bgmap": [ "bgmap": [

View File

@ -16,8 +16,28 @@ main.floors.MT86=
"firstArrive": [], "firstArrive": [],
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {
"changeFloor": {}, "3,4": [
"同化怪加上追猎属性后,如果其移动一步后与勇士战斗,那么其特殊属性会继承自移动后的位置,而非移动前",
"例如本地图右边的同化怪,当其向下移动一步后,将不再会受到蓝骑士的二连击属性加成,战斗伤害会变低"
]
},
"changeFloor": {
"0,4": {
"floorId": "MT85",
"loc": [
14,
3
]
},
"7,14": {
"floorId": "MT89",
"loc": [
7,
0
]
}
},
"beforeBattle": {}, "beforeBattle": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
@ -26,20 +46,32 @@ main.floors.MT86=
"cannotMove": {}, "cannotMove": {},
"cannotMoveIn": {}, "cannotMoveIn": {},
"map": [ "map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [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, 0, 0], [648,491,376,491, 0,648, 0, 0,482, 0, 0,482, 0, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,671,648,676,648,648,648,648,677,648,492,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0, 0,648, 0,648, 0, 0,232,487,648, 0, 27, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 92, 0, 0,129,484, 0,378, 0,648,487,492,484, 0,484,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,249,648,648,648,494,648,648,648,644,648,648,648,249,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,484,648,376, 21,378,648, 29, 0,648,484, 0,484,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0, 0,648,484,403,484,648, 0,484,578, 0, 28, 0, 94],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 29, 0,648,648,618,648,648,657,648,648,648,648,494,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,657,648,682, 0, 0, 0,103,658, 28, 0,648,378,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0, 0,491, 0,648,648,682,648,648, 0,491,648, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,513, 0,648,484,484,648, 27, 0,648,376,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,484,381,648,648, 0,648,648,538,648,648,648,648, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,376,484,679, 0,491,492, 0, 0,484, 0, 0,232,491,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
], ],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
} }

View File

@ -16,8 +16,42 @@ main.floors.MT87=
"firstArrive": [], "firstArrive": [],
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {
"changeFloor": {}, "1,9": [
"对于连击属性如果一个同化怪同时拥有了“2连击”“3连击”或“n连击”那么即使该同化怪的特殊属性是加算不同连击属性之间依然会视为乘算而“n连击”之间则为加算",
"例如一个怪同时拥有3连击与6连击那么怪物实际表现就是18连击"
]
},
"changeFloor": {
"0,7": {
"floorId": "MT74",
"loc": [
14,
7
]
},
"10,0": {
"floorId": "MT85",
"loc": [
10,
14
]
},
"7,14": {
"floorId": "MT88",
"loc": [
7,
0
]
},
"14,7": {
"floorId": "MT89",
"loc": [
0,
7
]
}
},
"beforeBattle": {}, "beforeBattle": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
@ -26,20 +60,32 @@ main.floors.MT87=
"cannotMove": {}, "cannotMove": {},
"cannotMoveIn": {}, "cannotMoveIn": {},
"map": [ "map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,648,648,648,648,648,648, 91,648,648,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,484,376,484, 0,648, 0,249, 0,484, 0,513, 0,381,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,679,648,491,648, 28,103, 28,648,484, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,482,648, 0,648,494,648,648,644,648,648,648,492,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 29, 0,578, 0,648,491,648, 27,103, 27,648,484, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,249,648, 0,657, 0,578, 0,484, 0,657, 0, 29,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,484,648,648,648,648,648,648,648,648,648,682,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 92, 0, 0,492, 0,491, 0,682, 0,484,658,484, 0, 0, 94],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,484,648,648,648,648,648, 28, 0,648, 0, 27, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,129,648,648, 27, 0, 29,648,648,648,648,648,648,677,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,378,487,232, 0,484, 0,648, 21, 0,484,648, 29, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,648,648,677,648,648,648,682,648, 0,484,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,491, 27,671,491,648,482, 0,482,659, 0,648,657,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 28,491,648, 0,513, 0, 0, 0,648, 0,682, 0, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
], ],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
} }

View File

@ -17,7 +17,22 @@ main.floors.MT88=
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {},
"changeFloor": {}, "changeFloor": {
"0,7": {
"floorId": "MT73",
"loc": [
14,
7
]
},
"7,0": {
"floorId": "MT87",
"loc": [
7,
14
]
}
},
"beforeBattle": {}, "beforeBattle": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
@ -26,20 +41,32 @@ main.floors.MT88=
"cannotMove": {}, "cannotMove": {},
"cannotMoveIn": {}, "cannotMoveIn": {},
"map": [ "map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,648,648,648, 91,648,648,648,648,648,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,677, 0,491,657, 0, 0, 0, 0,492, 0, 0,491,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,484,648,648,648,648,484, 0,484, 0,648,648,648, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,648, 0,484,648,492,648,648,243,648,482,648,682,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 27,648, 29, 0,648, 0,682, 0,484,648, 0,682, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,492,648,648,658,648,491,648, 29, 0,648, 0,648,491,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,484,648, 0,657, 0,648,648,492,648,482,648,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 92, 0, 0,578, 0,648, 0,682, 0,381,578, 0,679,487,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,484,648,491,648,538,648,648, 0,648, 0,648,487,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648, 0,648, 0,491,648,249,648, 0,648,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 28,682, 0,682,648, 27, 0,648, 27,648, 0,648,482,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,648,648,648,648,648,492,648, 0,648, 0,648, 0, 94],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,648,484, 27,679, 28,491,648, 0,648, 0,648, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,484,513, 27,484,648,491, 28,232,491,492,676, 0,482,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [648,648,648,648,648,648,648,648,648,648,648,648,648,648,648]
], ],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
} }

View File

@ -17,7 +17,22 @@ main.floors.MT89=
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {},
"changeFloor": {}, "changeFloor": {
"0,7": {
"floorId": "MT87",
"loc": [
14,
7
]
},
"7,0": {
"floorId": "MT86",
"loc": [
7,
14
]
}
},
"beforeBattle": {}, "beforeBattle": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
@ -26,20 +41,32 @@ main.floors.MT89=
"cannotMove": {}, "cannotMove": {},
"cannotMoveIn": {}, "cannotMoveIn": {},
"map": [ "map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,648,648,648, 91,648,648,648,648,648,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,249, 29, 0,491,578, 0, 0,658, 0,381,648,484,484,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 29,648,648,648,648, 0,648,648,648,648,648,492,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,648,487,378,648,484,648, 0, 0,676,648,378,484,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,491,648,378, 21,618, 0,648, 0,648, 0,679,484, 27,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,578,648,648,648,648,679,648, 0,648,491,648,648,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0, 0, 0,484, 0, 0,648, 0,648, 0,513, 0, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 92, 0,648,492,648,648, 0,648,494,648,648,648, 0, 0, 94],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,682, 0,491,648, 0,644,420,249,482,648,648,682,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,682,648, 29, 0,648,648,648,578,648,482,648, 0,484,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,648,648,657,648, 0,648,494,648,492,648,657,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,648,484, 0,538, 0,676, 0,648,487,677,491, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,677,648,648, 0,648,648,648,648,657,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 27,484, 28, 0,648,491, 0, 0,232, 0,378, 0,484,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
], ],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
} }

View File

@ -231,122 +231,6 @@ export class EnemyCollection
v.preProvideHalo(); v.preProvideHalo();
}); });
} }
// render(onMap: boolean = false, cal: boolean = false) {
// if (cal) {
// this.calMapDamage();
// }
// core.status.damage.data = [];
// core.status.damage.extraData = [];
// core.status.damage.dir = [];
// // 怪物伤害
// this.list.forEach(v => {
// if (onMap && !checkV2(v.x, v.y)) return;
// const { damage } = v.calDamage();
// // 伤害全部相等,绘制在怪物本身所在位置
// const { damage: dam, color } = formatDamage(damage);
// const critical = v.calCritical(1)[0];
// core.status.damage.data.push({
// text: dam,
// px: 32 * v.x! + 1,
// py: 32 * (v.y! + 1) - 1,
// color: color
// });
// const setting = Mota.require('var', 'mainSetting');
// const criGem = setting.getValue('screen.criticalGem', false);
// const n = critical?.atkDelta ?? Infinity;
// const ratio = core.status.maps[this.floorId].ratio;
// const cri = criGem ? Math.ceil(n / ratio) : n;
// core.status.damage.data.push({
// text: isFinite(cri) ? cri.toString() : '?',
// px: 32 * v.x! + 1,
// py: 32 * (v.y! + 1) - 11,
// color: '#fff'
// });
// });
// // 地图伤害
// const floor = core.status.maps[this.floorId];
// const width = floor.width;
// const height = floor.height;
// const objs = core.getMapBlocksObj(this.floorId);
// const startX =
// onMap && core.bigmap.v2
// ? Math.max(0, core.bigmap.posX - core.bigmap.extend)
// : 0;
// const endX =
// onMap && core.bigmap.v2
// ? Math.min(
// width,
// core.bigmap.posX + core._WIDTH_ + core.bigmap.extend + 1
// )
// : width;
// const startY =
// onMap && core.bigmap.v2
// ? Math.max(0, core.bigmap.posY - core.bigmap.extend)
// : 0;
// const endY =
// onMap && core.bigmap.v2
// ? Math.min(
// height,
// core.bigmap.posY + core._HEIGHT_ + core.bigmap.extend + 1
// )
// : height;
// for (let x = startX; x < endX; x++) {
// for (let y = startY; y < endY; y++) {
// const id = `${x},${y}` as LocString;
// const dam = this.mapDamage[id];
// if (!dam || objs[id]?.event.noPass) continue;
// // 地图伤害
// if (dam.damage !== 0) {
// const damage = core.formatBigNumber(dam.damage, true);
// const color = dam.damage < 0 ? '#6eff6a' : '#fa3';
// core.status.damage.extraData.push({
// text: damage,
// px: 32 * x + 16,
// py: 32 * y + 16,
// color,
// alpha: 1
// });
// }
// // 电摇嘲讽
// if (dam.mockery) {
// dam.mockery.sort((a, b) =>
// a[0] === b[0] ? a[1] - b[1] : a[0] - b[0]
// );
// const [tx, ty] = dam.mockery[0];
// const dir =
// x > tx ? '←' : x < tx ? '→' : y > ty ? '↑' : '↓';
// core.status.damage.extraData.push({
// text: '嘲' + dir,
// px: 32 * x + 16,
// py: 32 * (y + 1) - 14,
// color: '#fd4',
// alpha: 1
// });
// }
// // 追猎
// if (dam.hunt) {
// core.status.damage.extraData.push({
// text: '猎',
// px: 32 * x + 16,
// py: 32 * (y + 1) - 14,
// color: '#fd4',
// alpha: 1
// });
// }
// }
// }
// }
} }
export class DamageEnemy<T extends EnemyIds = EnemyIds> { export class DamageEnemy<T extends EnemyIds = EnemyIds> {

View File

@ -44,6 +44,7 @@ export {};
delete core.status.mapBlockObjs[data]; delete core.status.mapBlockObjs[data];
core.extractBlocks(data); core.extractBlocks(data);
if (data === core.status.floorId) { if (data === core.status.floorId) {
core.status.thisMap = core.status.maps[data];
let weather = core.getFlag('__weather__', null); let weather = core.getFlag('__weather__', null);
if (!weather && core.status.thisMap.weather) if (!weather && core.status.thisMap.weather)
weather = core.status.thisMap.weather; weather = core.status.thisMap.weather;

View File

@ -110,8 +110,13 @@ function checkHunt(loc: string) {
const { x: hx, y: hy } = core.status.hero.loc; const { x: hx, y: hy } = core.status.hero.loc;
const action: any = []; const action: any = [];
hunt.sort((a, b) => {
return a[0] === b[0] ? a[1] - b[1] : a[0] - b[0];
});
for (const [x, y, dir] of hunt) { for (const [x, y, dir] of hunt) {
const [tx, ty] = ofDir(x, y, dir);
if (core.noPass(tx, ty)) continue;
action.push( action.push(
{ {
type: 'move', type: 'move',
@ -124,8 +129,6 @@ function checkHunt(loc: string) {
type: 'update' type: 'update'
} }
); );
const [tx, ty] = ofDir(x, y, dir);
if (core.noPass(tx, ty)) return;
if (has(hy) && x === hx) { if (has(hy) && x === hx) {
if (Math.abs(y - hy) <= 2) { if (Math.abs(y - hy) <= 2) {

View File

@ -514,7 +514,10 @@ export function init() {
time: number = 500, time: number = 500,
callback?: () => void callback?: () => void
) { ) {
console.log(heroMover.moving);
if (heroMover.moving) return; if (heroMover.moving) return;
const sx = core.getHeroLoc('x'); const sx = core.getHeroLoc('x');
const sy = core.getHeroLoc('y'); const sy = core.getHeroLoc('y');
adapters.viewport?.all('mutateTo', ex, ey); adapters.viewport?.all('mutateTo', ex, ey);
@ -539,6 +542,7 @@ export function init() {
); );
}) })
); );
console.log(ex, ey);
if (!locked) core.unlockControl(); if (!locked) core.unlockControl();
core.setHeroLoc('x', ex); core.setHeroLoc('x', ex);

View File

@ -105,6 +105,7 @@ export function jumpSkill() {
(bgId.startsWith('X') && !ignoreInJump.bg.includes(bgId)) (bgId.startsWith('X') && !ignoreInJump.bg.includes(bgId))
) )
return core.drawTip('当前无法使用技能'); return core.drawTip('当前无法使用技能');
// debugger;
// 不是怪物且不可以通行 // 不是怪物且不可以通行
if (noPass && !(cls == 'enemys' || cls == 'enemy48')) { if (noPass && !(cls == 'enemys' || cls == 'enemy48')) {
var toLoc = checkNoPass(direction, checkLoc.x, checkLoc.y, true); var toLoc = checkNoPass(direction, checkLoc.x, checkLoc.y, true);