使用tree-shaking优化

This commit is contained in:
unanmed 2023-04-20 19:49:38 +08:00
parent 1e916be361
commit c3ae675537
13 changed files with 234 additions and 93 deletions

View File

@ -1654,9 +1654,16 @@ control.prototype._updateDamage_extraDamage = function (floorId, onMap) {
}); });
} else { } else {
// 电摇嘲讽 // 电摇嘲讽
if (core.status.checkBlock.mockery[x + ',' + y]) { const mockery = core.status.checkBlock.mockery[x + ',' + y];
if (mockery) {
mockery.sort((a, b) =>
a[0] === b[0] ? a[1] - b[1] : a[0] - b[0]
);
const [tx, ty] = mockery[0];
const dir =
x > tx ? '←' : x < tx ? '→' : y > ty ? '↑' : '↓';
core.status.damage.extraData.push({ core.status.damage.extraData.push({
text: '嘲', text: '嘲' + dir,
px: 32 * x + 16, px: 32 * x + 16,
py: 32 * (y + 1) - 14, py: 32 * (y + 1) - 14,
color: '#fd4', color: '#fd4',

View File

@ -231,8 +231,8 @@ main.prototype.loadScript = async function (src, module) {
main.prototype.init = async function (mode, callback) { main.prototype.init = async function (mode, callback) {
try { try {
var a = {}; const a = {};
var b = {}; const b = {};
new Proxy(a, b); new Proxy(a, b);
new Promise(res => res()); new Promise(res => res());
eval('`${123}`'); eval('`${123}`');

View File

@ -158,7 +158,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"E607": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E607": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E608": {"name":"寒冰护卫","hp":25000,"atk":3500,"def":2250,"money":3,"exp":225,"point":0,"special":[]}, "E608": {"name":"寒冰护卫","hp":25000,"atk":3500,"def":2250,"money":3,"exp":225,"point":0,"special":[]},
"E609": {"name":"具形雪人","hp":7500,"atk":2250,"def":1000,"money":2,"exp":90,"point":0,"special":[25],"melt":15}, "E609": {"name":"具形雪人","hp":7500,"atk":2250,"def":1000,"money":2,"exp":90,"point":0,"special":[25],"melt":15},
"E610": {"name":"高冷雪人","hp":10000,"atk":2750,"def":1500,"money":0,"exp":0,"point":0,"special":[25],"melt":25}, "E610": {"name":"高冷雪人","hp":10000,"atk":2750,"def":1500,"money":2,"exp":150,"point":0,"special":[25],"melt":25},
"E611": {"name":"具形雪人法师","hp":12500,"atk":2750,"def":1750,"money":2,"exp":175,"point":0,"special":[13,25],"melt":30}, "E611": {"name":"具形雪人法师","hp":12500,"atk":2750,"def":1750,"money":2,"exp":175,"point":0,"special":[13,25],"melt":30},
"E612": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E612": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E613": {"name":"寒冰核心","hp":20000,"atk":3000,"def":1500,"money":3,"exp":150,"point":0,"special":[26],"iceCore":20}, "E613": {"name":"寒冰核心","hp":20000,"atk":3000,"def":1500,"money":3,"exp":150,"point":0,"special":[26],"iceCore":20},

View File

@ -59,6 +59,20 @@ main.floors.MT42=
0, 0,
13 13
] ]
},
"9,2": {
"floorId": "MT46",
"loc": [
3,
14
]
},
"2,0": {
"floorId": "MT47",
"loc": [
7,
14
]
} }
}, },
"beforeBattle": {}, "beforeBattle": {},

View File

@ -45,6 +45,13 @@ main.floors.MT44=
0, 0,
5 5
] ]
},
"6,2": {
"floorId": "MT46",
"loc": [
11,
14
]
} }
}, },
"beforeBattle": {}, "beforeBattle": {},
@ -58,7 +65,7 @@ main.floors.MT44=
[ 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,617, 34,403, 34,600, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0,617, 34,403, 34,600, 0, 0],
[ 92, 0,584,584,584, 0,543, 0, 34,604,604,604, 34, 0, 0], [ 92, 0,584,584,584, 0,543, 0, 34,604,604,604, 34, 0, 0],
[584, 0,584,390, 33, 0, 0, 0,378, 0,492, 0,378, 0, 0], [584, 0,584,390, 33,390,403,396,378, 0,492, 0,378, 0, 0],
[584, 0,643, 33,441,381, 32,595, 0,602,604,610,70176,70177,70177], [584, 0,643, 33,441,381, 32,595, 0,602,604,610,70176,70177,70177],
[584,584,584,584,584, 0,584,584,494, 0, 34, 0,608, 0, 94], [584,584,584,584,584, 0,584,584,494, 0, 34, 0,608, 0, 94],
[ 0, 0, 0, 0, 0,274,376, 32,584,614,584,584,70208,70209,70209], [ 0, 0, 0, 0, 0,274,376, 32,584,614,584,584,70208,70209,70209],

View File

@ -11,13 +11,43 @@ main.floors.MT46=
"cannotViewMap": false, "cannotViewMap": false,
"images": [], "images": [],
"ratio": 8, "ratio": 8,
"defaultGround": "T580", "defaultGround": "T331",
"bgm": "winter.mp3", "bgm": "winter.mp3",
"firstArrive": [], "firstArrive": [],
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {
"changeFloor": {}, "7,12": [
"\t[初级智人]\b[up,hero]这里也有水!",
"\t[初级智人]\b[up,hero]看来下面的水的源头是这里吗。",
"\t[初级智人]\b[up,hero]喝一口吧,说不定有什么奇效。",
"攻防增加20点智慧增加1000点",
"\t[初级智人]\b[up,hero]...",
"\t[初级智人]\b[up,hero]果然。",
"\t[初级智人]\b[up,hero]这就是智慧之神给我的引导吗。",
"\t[初级智人]\b[up,hero]前往山顶,走吧。",
{
"type": "hide",
"remove": true
}
]
},
"changeFloor": {
"3,14": {
"floorId": "MT42",
"loc": [
9,
2
]
},
"11,14": {
"floorId": "MT44",
"loc": [
6,
2
]
}
},
"beforeBattle": {}, "beforeBattle": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
@ -33,17 +63,31 @@ main.floors.MT46=
[ 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,376, 33,378, 0,608, 0,494, 0,608, 0,378, 33,376, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0,336,336,336,336, 0,345,494,345, 0,333,333,333,333, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0,617, 34, 0, 0,610, 33,610, 0, 0, 34,600, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0,403,336, 0, 0, 0, 0,643, 0, 0, 0, 0,333,403, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0,378,336,600, 0, 0, 0, 93, 0, 0, 0,617,333,376, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0,336,336, 0, 0, 0, 0,141, 0, 0, 0, 0,333,333, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0,484,492, 0, 0, 0, 0,141, 0, 0, 0, 0,492,484, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [ 0, 0, 0,540, 0, 0, 0,141, 0, 0, 0,540, 0, 0, 0]
], ],
"bgmap": [ "bgmap": [
[20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041],
[20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041],
[20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041],
[20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041,20041],
[20044,20049,20049,20049,20049,20049,20049,20049,20049,20049,20049,20049,20049,20049,20043],
[20042,20057,20057,20057,20057,20057,20057,20057,20057,20057,20057,20057,20057,20057,20040],
[20042,20065,20065,20065,20065,20065,20065,20065,20065,20065,20065,20065,20065,20065,20040],
[20042, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,20040],
[20042, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,20040],
[20042, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,20040],
[20042, 0, 0, 0,20032,20033,20034, 0,20032,20033,20034, 0, 0, 0,20040],
[20042, 0, 0, 0,20040,20041,20042, 0,20040,20041,20042, 0, 0, 0,20040],
[20042, 0, 0, 0,20040,20041,20042, 0,20040,20041,20042, 0, 0, 0,20040],
[20042, 0, 0, 0,20040,20041,20042, 0,20040,20041,20042, 0, 0, 0,20040],
[20036,20033,20034, 0,20040,20041,20042, 0,20040,20041,20042, 0,20032,20033,20035]
], ],
"fgmap": [ "fgmap": [

View File

@ -1,45 +1,100 @@
main.floors.MT47= main.floors.MT47=
{ {
"floorId": "MT47", "floorId": "MT47",
"title": "冰封高原", "title": "冰封高原",
"name": "47", "name": "47",
"width": 15, "width": 15,
"height": 15, "height": 15,
"canFlyTo": true, "canFlyTo": true,
"canFlyFrom": true, "canFlyFrom": true,
"canUseQuickShop": true, "canUseQuickShop": true,
"cannotViewMap": false, "cannotViewMap": false,
"images": [], "images": [],
"ratio": 8, "ratio": 8,
"defaultGround": "T580", "defaultGround": "T580",
"bgm": "winter.mp3", "bgm": "winter.mp3",
"firstArrive": [], "firstArrive": [],
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {},
"changeFloor": {}, "changeFloor": {
"beforeBattle": {}, "7,14": {
"afterBattle": {}, "floorId": "MT42",
"afterGetItem": {}, "loc": [
"afterOpenDoor": {}, 2,
"autoEvent": {}, 0
"cannotMove": {}, ]
"cannotMoveIn": {}, },
"map": [ "7,0": {
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "floorId": "MT48",
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "loc": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 7,
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 14
[ 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], "beforeBattle": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "afterBattle": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "afterGetItem": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "afterOpenDoor": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "autoEvent": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "cannotMove": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "cannotMoveIn": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] "map": [
[ 0, 0,70030, 0, 0, 0,604, 91,604,70029,70029,70029,70029, 0, 0],
[ 0, 0,70030, 0,70031, 0,604, 0,604, 0, 0, 0,70028,70030,70030],
[70030,70030,70030,70031,70031,70031, 0,608, 0,70028,70028,70028,70028, 0, 0],
[ 0, 0, 0,70031, 0, 0, 0,604, 0, 0, 0, 0,70029,70029,70029],
[70031, 0, 0, 0, 0, 0, 0,604, 0, 0,604, 0, 0, 0,604],
[70031,586,586,586,586,586, 0, 0, 0, 0,604, 0,604, 0,604],
[70031, 0, 0, 0, 0,586, 0,604, 0, 0, 0, 0,604, 0,604],
[70031, 0, 0,585, 0, 0, 0,604, 0,587,587,587,587,587,587],
[ 0,585,585,585, 0,586,586,586, 0,587,587, 0, 0, 0,587],
[ 0, 0, 0, 0, 0, 0, 0,586, 0, 0, 0, 0,587, 0,587],
[ 0, 0, 0,584,584, 0,584,584,584, 0,584, 0,585,585,585],
[70029, 0, 0, 0,584, 0, 0,584, 0, 0,584, 0, 0, 0,585],
[70029, 0, 0, 0,584, 0, 0, 0, 0, 0,584, 0, 0, 0,585],
[70029,584,584,584,584,584,584, 0,584,584,584,584,584,584,584],
[70029, 0, 0, 0, 0, 0, 0, 93, 0, 0, 0, 0, 0, 0, 0]
], ],
"bgmap": [
[ 0, 0, 0, 0, 0, 0,70056, 0,70058, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,70056, 0,70058, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,70056, 0,70058, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,70056, 0,70058, 0, 0, 0, 0, 0, 0],
[ 0,70048,70049,70049,70049,70049,70051, 0,70052,70049,70049,70049,70049,70049,70049],
[ 0,70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,70064,70065,70065,70065,70065, 0, 0, 0,70065,70065,70065,70065,70065,70065],
[ 0,70072,70073,70073,70073,70073,70073, 0,70073,70073,70073,70073,70073,70073,70073]
],
"fgmap": [
],
"bg2map": [
[ 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, 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,70112,70113,70114, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,70120,70121,70122, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
]
} }

View File

@ -17,7 +17,15 @@ main.floors.MT48=
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {},
"changeFloor": {}, "changeFloor": {
"7,14": {
"floorId": "MT47",
"loc": [
7,
0
]
}
},
"beforeBattle": {}, "beforeBattle": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
@ -26,38 +34,24 @@ main.floors.MT48=
"cannotMove": {}, "cannotMove": {},
"cannotMoveIn": {}, "cannotMoveIn": {},
"map": [ "map": [
[ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[ 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, 1, 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, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 1, 0, 0, 0, 0, 0, 1, 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, 0, 0, 1, 0, 0, 0, 1, 1, 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, 1, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0] [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 93, 0, 0, 0, 0, 0, 0, 0]
], ],
"bgmap": [ "bgmap": [
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300]
], ],
"fgmap": [ "fgmap": [

View File

@ -0,0 +1,15 @@
///<reference path="../../../src/types/core.d.ts" />
/**
* 计算需要计算伤害的方向
* @param {number} x
* @param {number} y
* @param {FloorIds} floorId
*/
export function getNeedCalculateDir(x, y, floorId) {}
export function getEnemyInfo(enemy, hero, x, y, floorId) {}
export function getDamageInfo(enemy, hero, x, y, floorId) {}
export function checkBlock(floorId) {}

View File

@ -1,7 +1,7 @@
///<reference path="../../../src/types/core.d.ts" /> ///<reference path="../../../src/types/core.d.ts" />
export {}; export {};
(function () { /* @__PURE__ */ (function () {
if (main.mode !== 'play' || main.replayChecking) return; if (main.mode !== 'play' || main.replayChecking) return;
/** /**

View File

@ -31,7 +31,9 @@ const jumpIgnoreFloor = [
'MT42', 'MT42',
'MT43', 'MT43',
'MT44', 'MT44',
'MT45' 'MT45',
'MT46',
'MT47'
]; ];
// 跳跃 // 跳跃
export function jumpSkill() { export function jumpSkill() {

View File

@ -41,6 +41,9 @@ import * as rollup from 'rollup';
); );
await fse.remove('./dist/maps/'); await fse.remove('./dist/maps/');
// 在线查看什么都看不到,这编辑器难道还需要留着吗? // 在线查看什么都看不到,这编辑器难道还需要留着吗?
await fse.remove('./dist/_server');
await fse.remove('./dist/editor.html');
await fse.remove('./dist/server.cjs');
} catch {} } catch {}
// 2. 压缩字体 // 2. 压缩字体

View File

@ -49,7 +49,7 @@
"<br>", "<br>",
"样板版本V2.10.0", "样板版本V2.10.0",
"<br>", "<br>",
"游戏版本V1.0.0", "游戏版本V1.0.0-alpha",
"<br>", "<br>",
"游戏作者:古祠", "游戏作者:古祠",
"<br>", "<br>",
@ -519,7 +519,7 @@
"<span style=\"color: #f66\">1. 电摇嘲讽</span>", "<span style=\"color: #f66\">1. 电摇嘲讽</span>",
"该特技会撞碎路上的所有地形和门,不需要消耗钥匙,拾取路上的所有道具,与路上的怪物战斗,最后与该怪物战斗。", "该特技会撞碎路上的所有地形和门,不需要消耗钥匙,拾取路上的所有道具,与路上的怪物战斗,最后与该怪物战斗。",
"如果怪物所在位置可以被嘲讽,那么勇士会被继续嘲讽。如果在被嘲讽的路上可以被其他怪物嘲讽,则不会触发。", "如果怪物所在位置可以被嘲讽,那么勇士会被继续嘲讽。如果在被嘲讽的路上可以被其他怪物嘲讽,则不会触发。",
"如果一个点可以被多个怪物嘲讽,那么会优先选择最靠左上角的怪物。", "如果一个点可以被多个怪物嘲讽,那么会优先选择最靠左上角的怪物。在地图上会标记出勇士的移动方向。",
"<span style=\"color: gold\">在被嘲讽之前会自动存档。</span>", "<span style=\"color: gold\">在被嘲讽之前会自动存档。</span>",
"<br>", "<br>",
"<br>", "<br>",