Deploying to gh-pages from @ e65b6a57aa 🚀

This commit is contained in:
unanmed 2023-03-01 14:53:02 +00:00
parent 90f37f4f66
commit b18bcdbd0a
14 changed files with 1530 additions and 1497 deletions

View File

@ -6,182 +6,176 @@
*/
var functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
_type: 'object',
_data: {
events: {
_type: 'object',
_data: {
resetGame: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '重置游戏'
},
win: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '游戏获胜'
},
lose: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '游戏失败'
},
changingFloor: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '切换楼层中'
},
afterChangeFloor: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '切换楼层后'
},
flyTo: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '楼层飞行'
},
beforeBattle: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '战前判定'
},
afterBattle: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '战后脚本'
},
afterOpenDoor: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '开门后脚本'
},
afterGetItem: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '道具后脚本'
},
afterPushBox: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '推箱子后'
}
}
},
enemys: {
_type: 'object',
_data: {
getSpecials: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '怪物特殊属性'
},
getEnemyInfo: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '怪物真实属性'
},
getDamageInfo: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '战斗伤害信息'
}
}
},
actions: {
_type: 'object',
_data: {
onKeyUp: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '按键处理'
}
}
},
control: {
_type: 'object',
_data: {
saveData: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '存档操作'
},
loadData: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '读档操作'
},
getStatusLabel: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '状态名定义'
},
triggerDebuff: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '毒衰咒处理'
},
updateStatusBar: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '更新状态栏'
},
updateCheckBlock: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '阻激夹域伤害'
},
moveOneStep: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '每步后操作'
},
moveDirectly: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '瞬间移动'
},
parallelDo: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '并行脚本'
}
}
},
ui: {
_type: 'object',
_data: {
drawStatistics: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '数据统计'
}
}
}
}
};
_type: 'object',
_data: {
events: {
_type: 'object',
_data: {
resetGame: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '重置游戏'
},
win: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '游戏获胜'
},
lose: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '游戏失败'
},
changingFloor: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '切换楼层中'
},
afterChangeFloor: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '切换楼层后'
},
flyTo: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '楼层飞行'
},
beforeBattle: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '战前判定'
},
afterBattle: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '战后脚本'
},
afterOpenDoor: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '开门后脚本'
},
afterGetItem: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '道具后脚本'
},
afterPushBox: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '推箱子后'
}
}
},
enemys: {
_type: 'object',
_data: {
getSpecials: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '怪物特殊属性'
},
getEnemyInfo: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '怪物真实属性'
},
getDamageInfo: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '战斗伤害信息'
}
}
},
actions: {
_type: 'object',
_data: {
onKeyUp: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '按键处理'
}
}
},
control: {
_type: 'object',
_data: {
saveData: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '存档操作'
},
loadData: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '读档操作'
},
getStatusLabel: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '状态名定义'
},
updateStatusBar: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '更新状态栏'
},
updateCheckBlock: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '阻激夹域伤害'
},
moveOneStep: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '每步后操作'
},
moveDirectly: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '瞬间移动'
},
parallelDo: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '并行脚本'
}
}
},
ui: {
_type: 'object',
_data: {
drawStatistics: {
_leaf: true,
_type: 'textarea',
_lint: true,
_data: '数据统计'
}
}
}
}
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -18,10 +18,10 @@
<meta name="x5-fullscreen" content="true">
<meta name="x5-page-mode" content="app">
<link id="mota-css" type='text/css' href='/HumanBreak/styles.css' rel='stylesheet'>
<script type="module" crossorigin src="/HumanBreak/assets/index.696f1967.js"></script>
<script type="module" crossorigin src="/HumanBreak/assets/index.4519c1d7.js"></script>
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/antdv.40889ba9.js">
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/common.2bb356dd.js">
<link rel="stylesheet" href="/HumanBreak/assets/index.c506f722.css">
<link rel="stylesheet" href="/HumanBreak/assets/index.20a8ab24.css">
<script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
@ -205,7 +205,7 @@
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="/HumanBreak/assets/polyfills-legacy.27bbe950.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy.c9b504bd.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy.f6ee00c3.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>

View File

@ -49,12 +49,12 @@ main.floors.MT37=
[147,381,492, 0,604,494,70015,613,586,586,586,614, 32, 0,604],
[147, 0,595, 0, 33, 0,609,482,609,376, 0, 33,595, 21,587],
[147,147,147, 33,587,587,587,590,70022,70023,274,584, 0,587,587],
[147,420,494, 28, 0, 0, 33, 0,492, 0,378,584, 32, 0, 94],
[147,390,494, 28, 0, 0, 33, 0,492, 0,378,584, 32, 0, 94],
[147, 33,147, 0,584,584,602,584,584,584,584,584,584,584,584],
[147,441,147,609, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[147, 22,608, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[147, 33,147, 0, 27, 0,381, 0,590, 0, 33,585,482,390,585],
[147,430,147, 0,147,147,147,147,147,147, 0,600,403,482,585],
[147,396,147, 0,147,147,147,147,147,147, 0,600,403,482,585],
[147,147,147,147,147,147,147,147,147,147,585,585,585,585,585]
],
"bgmap": [

View File

@ -45,6 +45,20 @@ main.floors.MT42=
14,
2
]
},
"14,2": {
"floorId": "MT44",
"loc": [
0,
2
]
},
"14,13": {
"floorId": "MT44",
"loc": [
0,
13
]
}
},
"beforeBattle": {},
@ -104,15 +118,15 @@ main.floors.MT42=
[584,584,617,70022,70023,611,70022,70023, 0,600,492,376,482,378,586],
[584, 28, 34,584,608,482,608,584, 0, 33,587,587,587,614,586],
[584, 34,403,584,584, 85,584,584, 0,602, 0, 27,381, 0,586],
[584,584,584,584,466,484,467,584,602, 0,604,604,604,277,586],
[584,584,584,584,466,484,467,584,602, 0,604,604,604,643,586],
[584, 0, 0,584,584,468,585,585, 0, 28,604,378,604,468,586],
[ 0, 0, 0,584,584,497,585,585, 0, 0,600,403,494, 0, 94],
[ 0, 0, 0,584,584, 93,585,585, 93,584,584,584,584,584,584]
],
"bgmap": [
[70073,70073,70073,70073,70073,70073,70073,70073,70073,70073,70073,70073,70073,70097,70073],
[70049,70049, 0,70049,70073,70073,70073,70097,70073,70073,70073,70073,70073,70073,70073],
[ 0, 0, 0, 0,70058,70105,70081,70081,70081,70081,70105,70049,70049,70049,70049],
[70049,70049, 0,70049,70073,70073,70073,70097,70073, 0,70073,70073,70073,70073,70073],
[ 0, 0, 0, 0,70058,70105,70081,70081,70081, 0,70105,70049,70049,70049,70049],
[ 0, 0, 0, 0,70058, 0, 0, 0, 0, 0,70056, 0, 0, 0, 0],
[70065,70065,70065,70065,70066, 0, 0, 0, 0, 0,70056, 0, 0, 0, 0],
[70073,70073,70073,70073,70074, 0, 0, 0, 0, 0,70064,70083,70084,70065,70065],

View File

@ -49,19 +49,19 @@ main.floors.MT43=
"cannotMoveIn": {},
"map": [
[70031,70031,70031, 0, 0,70029,70029,70029,70029,70029,70029, 0, 0, 0, 0],
[ 0, 0, 0, 0,617, 0,586,586,586, 0, 0, 0,611, 0,604],
[ 0,492,585,585,585,610, 0, 0,274, 0, 0,604,604,595, 94],
[70031, 0,585, 0,585, 0, 0, 0, 0,588,588,592, 0, 0,604],
[70031, 0,595, 0,610, 0, 0, 0, 0,588, 0, 0,588,584,584],
[70031,600,584,584,584,608, 0, 0, 0,617, 0,588,588, 0, 0],
[ 0, 0, 0, 0,584, 0, 0, 0,584,584,584,584,584, 0, 0],
[ 0,586,586,614,584, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94],
[70030, 0, 0, 0,584, 0,602,584, 0, 0, 0, 0, 0, 34,584],
[70030,584,584,584,584,584, 0,584,584, 0,608, 0,614, 0,584],
[70030, 0, 0, 0, 0, 0, 0, 0, 0, 0,584,584,584, 0,584],
[70030, 0, 0, 0, 0, 0,643,604,604,602, 0, 0, 0,600,584],
[584,584,584,584,584,584, 0, 0,604, 0,584,584,584,584,584],
[ 0, 0, 0, 0, 0,584, 0, 0,604, 0, 0, 0, 0, 0, 0],
[ 0, 0,378, 0,617, 33,586,586,586, 27, 0, 0,611, 32,604],
[ 0,492,585,585,585,610, 0, 0,274, 0,381,604,604,595, 94],
[70031, 0,585,403,585, 0, 21, 0,602,588,492,592, 0, 32,604],
[70031, 32,595,378,610,376, 0, 31, 0,588,376, 33,588,584,584],
[70031,600,584,584,584,608, 0, 0, 32,617, 21,378,588, 0, 0],
[ 0, 34,381, 27,584,390, 29, 0,584,584,584,584,584, 0, 0],
[ 0,586,586,614,584,441, 0, 0, 0, 0, 0, 0, 0, 0, 94],
[70030,378, 34,381,494,396,602,584, 0, 0, 0, 0, 0, 34,584],
[70030,584,584,584,584,584, 0,584,584, 0,608,403,614, 0,584],
[70030, 0, 0, 0, 0, 0,484,376,403,378,584,584,584, 0,584],
[70030, 0, 0, 0, 0, 0,643,604,604,494,602,376, 0,600,584],
[584,584,584,584,584,584,390, 0,604, 32,584,584,584,584,584],
[ 0, 0, 0, 0, 0,584, 33,403,492, 32, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,604,604, 93,604,604, 0, 0, 0, 0, 0]
],
"bgmap": [

View File

@ -17,7 +17,29 @@ main.floors.MT44=
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"changeFloor": {
"0,13": {
"floorId": "MT42",
"loc": [
14,
13
]
},
"0,2": {
"floorId": "MT42",
"loc": [
14,
2
]
},
"7,14": {
"floorId": "snowTown",
"loc": [
7,
0
]
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
@ -27,11 +49,45 @@ main.floors.MT44=
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0,617, 0, 0, 0,600, 0, 0],
[ 92, 0,584,584,584, 0,543, 0, 0,604,604,604, 0, 0, 0],
[584, 0,584, 0, 0, 0, 0, 0, 0, 0,492, 0, 0, 0, 0],
[584, 0,643, 0, 0, 0, 0,595, 0,602,604,610,70176,70177,70177],
[584,584,584,584,584, 0,584,584,494, 0, 0, 0,608, 0, 94],
[ 0, 0, 0, 0, 0,613, 0, 0,584,614,584,584,70208,70209,70209],
[586, 0, 0, 0, 0,588, 0, 0,584, 0, 0,584,584, 0, 0],
[586, 0,588,588,588,588,602,584,584,584, 0,584,584, 0, 0],
[586, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[586,586,586, 0,587,587, 0, 0, 0, 0, 0,585,585, 0, 0],
[586, 0, 0, 0, 0,587, 0,617,585,585,492, 33, 33, 0, 0],
[586, 0,586, 0,587,587,587, 0,584,584,584,584,584, 0, 0],
[ 92, 0,586, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[584,584,584,584,584,584,584, 93, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
[70073,70073,70073,70073,70073,70073,70073,70074,70067,70067,70067,70067,70067,70067,70067],
[70073,70073,70073,70073,70073,70073,70126,70074,70067,70049,70049,70049,70067,70067,70067],
[70049,70049,70049,70049,70081,70081,70134,70082,70056, 0, 0, 0,70058,70067,70067],
[ 0, 0, 0, 0,70058, 0, 0, 0,70056, 0, 0, 0,70058,70067,70067],
[ 0, 0, 0, 0,70058,70049,70049,70049,70051, 0, 0, 0,70058,70067,70067],
[70065,70065,70065,70065,70066, 0, 0, 0, 0, 0, 0, 0, 0,70067,70067],
[70081,70081,70081,70081,70082, 0, 0, 0, 0, 0, 0, 0,70058,70067,70067],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70058,70067,70067],
[ 0, 0, 0, 0, 0, 0,70060,70065,70065,70065,70116,70065,70066,70067,70067],
[ 0, 0, 0, 0, 0, 0,70058,70081,70081,70081,70124,70081,70082,70067,70067],
[ 0, 0, 0, 0, 0, 0,70058, 0, 0, 0,70132, 0,70058,70067,70067],
[ 0, 0, 0, 0, 0, 0,70058, 0, 0, 0, 0, 0,70058,70067,70067],
[ 0, 0, 0, 0, 0, 0,70058,70060,70065,70065,70065,70065,70066,70067,70067],
[ 0, 0, 0, 0, 0, 0,70058,70058,70070,70070,70070,70070,70071,70067,70067],
[70065,70065,70065,70065,70065,70065,70066,70058,70078,70078,70078,70078,70079,70067,70067]
],
"fgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70200,70201,70201],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
@ -41,15 +97,23 @@ 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, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"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,70048, 0, 0, 0,70050, 0, 0],
[ 0, 0, 0, 0,70050, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70184,70185,70185],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70192,70193,70193],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [

View File

@ -116,6 +116,13 @@ main.floors.snowTown=
7,
13
]
},
"7,0": {
"floorId": "MT44",
"loc": [
7,
14
]
}
},
"beforeBattle": {},

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
"use strict";(function(){if(main.replayChecking)return core.plugin.gameUi={};function openItemShop(itemShopId){if(!main.replayChecking){core.plugin.openedShopId=itemShopId;core.plugin.shopOpened.value=true}}function updateVueStatusBar(){if(main.replayChecking)return;core.plugin.statusBarStatus.value=!core.plugin.statusBarStatus.value;core.checkMarkedEnemy()}ui.prototype.drawBook=function(){if(!core.isReplaying())return core.plugin.bookOpened.value=true};ui.prototype._drawToolbox=function(){if(!core.isReplaying())return core.plugin.toolOpened.value=true};ui.prototype._drawEquipbox=function(){if(!core.isReplaying())return core.plugin.equipOpened.value=true};ui.prototype.drawFly=function(){if(!core.isReplaying())return core.plugin.flyOpened.value=true};control.prototype.updateStatusBar_update=function(){core.control.updateNextFrame=false;if(!core.isPlaying()||core.hasFlag("__statistics__"))return;core.control.controldata.updateStatusBar();if(!core.control.noAutoEvents)core.checkAutoEvents();core.control._updateStatusBar_setToolboxIcon();core.clearRouteFolding();core.control.noAutoEvents=true;updateVueStatusBar()};control.prototype.showStatusBar=function(){if(main.mode=="editor")return;core.removeFlag("hideStatusBar");core.plugin.showStatusBar.value=true;core.dom.tools.hard.style.display="block";core.dom.toolBar.style.display="block"};control.prototype.hideStatusBar=function(showToolbox){if(main.mode=="editor")return;if(!core.domStyle.showStatusBar)this.showStatusBar();if(core.isReplaying())showToolbox=true;core.plugin.showStatusBar.value=false;var toolItems=core.dom.tools;core.setFlag("hideStatusBar",true);core.setFlag("showToolbox",showToolbox||null);if(!core.domStyle.isVertical&&!core.flags.extendToolbar||!showToolbox){for(var i=0;i<toolItems.length;++i)toolItems[i].style.display="none"}if(!core.domStyle.isVertical&&!core.flags.extendToolbar){core.dom.toolBar.style.display="none"}};function showChapter(chapter){if(core.isReplaying())return;core.plugin.chapterContent.value=chapter;core.plugin.chapterShowed.value=true}function openSkill(){if(core.isReplaying())return;core.plugin.skillOpened.value=true}core.plugin.gameUi={openItemShop:openItemShop,openSkill:openSkill,showChapter:showChapter}})();
"use strict";(function(){var openItemShop=core.plugin.gameUi.openItemShop;function openShop(shopId,noRoute){var shop=core.status.shops[shopId];if(!this.canOpenShop(shopId)){core.drawTip("\u8BE5\u5546\u5E97\u5C1A\u672A\u5F00\u542F");return false}if(shop.item){if(openItemShop)openItemShop(shopId);return}return true}function isShopVisited(id){var _flags,_flags$__shops__;(_flags$__shops__=(_flags=flags).__shops__)!==null&&_flags$__shops__!==void 0?_flags$__shops__:_flags.__shops__={};var shops=core.getFlag("__shops__");if(!shops[id])shops[id]={};return shops[id].visited}function listShopIds(){return Object.keys(core.status.shops).filter(function(id){return core.plugin.shop.isShopVisited(id)||!core.status.shops[id].mustEnable})}function canOpenShop(id){if(this.isShopVisited(id))return true;var shop=core.status.shops[id];if(shop.item||shop.commonEvent||shop.mustEnable)return false;return true}function setShopVisited(id,visited){if(!core.hasFlag("__shops__"))core.setFlag("__shops__",{});var shops=core.getFlag("__shops__");if(!shops[id])shops[id]={};if(visited)shops[id].visited=true;else delete shops[id].visited}function canUseQuickShop(){if(core.status.thisMap.canUseQuickShop===false)return"\u5F53\u524D\u697C\u5C42\u4E0D\u80FD\u4F7F\u7528\u5FEB\u6377\u5546\u5E97\u3002";return null}core.plugin.shop={openShop:openShop,isShopVisited:isShopVisited,listShopIds:listShopIds,canOpenShop:canOpenShop,setShopVisited:setShopVisited,canUseQuickShop:canUseQuickShop}})();
"use strict";function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();normalCompletion=step.done;return step},e:function e(_e2){didErr=true;err=_e2},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}(function(){var values={1:["crit"],6:["n"],7:["hungry"],8:["together"],10:["courage"],11:["charge"]};var cannotStudy=[9,12,14,15,24];function canStudySkill(number){var _core$status$hero,_core$status$hero$spe;var s=(_core$status$hero$spe=(_core$status$hero=core.status.hero).special)!==null&&_core$status$hero$spe!==void 0?_core$status$hero$spe:_core$status$hero.special={num:[],last:[]};if(core.plugin.skillTree.getSkillLevel(11)===0)return false;if(s.num.length>=1)return false;if(s.num.includes(number))return false;if(cannotStudy.includes(number))return false;return true}function studySkill(enemy,number){var _core$status$hero2,_core$status$hero2$sp,_values$number;(_core$status$hero2$sp=(_core$status$hero2=core.status.hero).special)!==null&&_core$status$hero2$sp!==void 0?_core$status$hero2$sp:_core$status$hero2.special={num:[],last:[]};var s=core.status.hero.special;var specials=core.getSpecials();var special=specials[number-1][1];if(special instanceof Function)special=special(enemy);if(!canStudySkill(number)){if(!main.replayChecking){core.tip("error","\u65E0\u6CD5\u5B66\u4E60".concat(special))}return}s.num.push(number);s.last.push(core.plugin.skillTree.getSkillLevel(11)*3+2);var value=(_values$number=values[number])!==null&&_values$number!==void 0?_values$number:[];var _iterator=_createForOfIteratorHelper(value),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var key=_step.value;s[key]=enemy[key]}}catch(err){_iterator.e(err)}finally{_iterator.f()}}function forgetStudiedSkill(num,i){var _values$number2;var s=core.status.hero.special;var index=i!==void 0&&i!==null?i:s.num.indexOf(num);if(index===-1)return;s.num.splice(index,1);s.last.splice(index,1);var value=(_values$number2=values[number])!==null&&_values$number2!==void 0?_values$number2:[];var _iterator2=_createForOfIteratorHelper(value),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var key=_step2.value;delete s[key]}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}function declineStudiedSkill(){var _core$status$hero3,_core$status$hero3$sp;var s=(_core$status$hero3$sp=(_core$status$hero3=core.status.hero).special)!==null&&_core$status$hero3$sp!==void 0?_core$status$hero3$sp:_core$status$hero3.special={num:[],last:[]};s.last=s.last.map(function(v){return v-1})}function checkStudiedSkill(){var s=core.status.hero.special;for(var i=0;i<s.last.length;i++){if(s.last[i]<=0){this.forgetStudiedSkill(void 0,i);i--}}}core.plugin.study={canStudySkill:canStudySkill,studySkill:studySkill,forgetStudiedSkill:forgetStudiedSkill,declineStudiedSkill:declineStudiedSkill,checkStudiedSkill:checkStudiedSkill}})();
"use strict";(function(){function getHeroStatusOn(name,x,y,floorId){return this.getRealStatusOf(core.status.hero,name,x,y,floorId)}function getHeroStatusOf(status,name,x,y,floorId){return getRealStatus(status,name,x,y,floorId)}function getRealStatus(status,name,x,y,floorId){var _status$name,_x,_y,_floorId;if(name instanceof Array){return Object.fromEntries(name.map(function(v){return[v,v!=="all"&&getRealStatus(status,v,x,y,floorId)]}))}if(name==="all"){return Object.fromEntries(Object.keys(core.status.hero).map(function(v){return[v,v!=="all"&&getRealStatus(status,v,x,y,floorId)]}))}var s=(_status$name=status===null||status===void 0?void 0:status[name])!==null&&_status$name!==void 0?_status$name:core.status.hero[name];if(s===null||s===void 0){throw new ReferenceError("Wrong hero status property name is delivered: ".concat(name))}(_x=x)!==null&&_x!==void 0?_x:x=core.status.hero.loc.x;(_y=y)!==null&&_y!==void 0?_y:y=core.status.hero.loc.y;(_floorId=floorId)!==null&&_floorId!==void 0?_floorId:floorId=core.status.floorId;if(name==="atk"||name==="def"){var _window$flags,_window$flags2;s+=(_window$flags=(_window$flags2=window.flags)===null||_window$flags2===void 0?void 0:_window$flags2["night_".concat(floorId)])!==null&&_window$flags!==void 0?_window$flags:0}if(flags.bladeOn&&flags.blade){var level=core.plugin.skillTree.getSkillLevel(2);if(name==="atk"){s*=1+0.1*level}if(name==="def"){s*=1-0.1*level}}if(flags.shield&&flags.shieldOn){var _level=core.plugin.skillTree.getSkillLevel(10);if(name==="atk"){s*=1-0.1*_level}if(name==="def"){s*=1+0.1*_level}}if(typeof s==="number")s*=core.getBuff(name);if(typeof s==="number")s=Math.floor(s);return s}core.plugin.hero={getHeroStatusOf:getHeroStatusOf,getHeroStatusOn:getHeroStatusOn}})();
"use strict";(function(){function getHeroStatusOn(name,x,y,floorId){return getRealStatusOf(core.status.hero,name,x,y,floorId)}function getHeroStatusOf(status,name,x,y,floorId){return getRealStatus(status,name,x,y,floorId)}function getRealStatus(status,name,x,y,floorId){var _status$name,_x,_y,_floorId;if(name instanceof Array){return Object.fromEntries(name.map(function(v){return[v,v!=="all"&&getRealStatus(status,v,x,y,floorId)]}))}if(name==="all"){return Object.fromEntries(Object.keys(core.status.hero).map(function(v){return[v,v!=="all"&&getRealStatus(status,v,x,y,floorId)]}))}var s=(_status$name=status===null||status===void 0?void 0:status[name])!==null&&_status$name!==void 0?_status$name:core.status.hero[name];if(s===null||s===void 0){throw new ReferenceError("Wrong hero status property name is delivered: ".concat(name))}(_x=x)!==null&&_x!==void 0?_x:x=core.status.hero.loc.x;(_y=y)!==null&&_y!==void 0?_y:y=core.status.hero.loc.y;(_floorId=floorId)!==null&&_floorId!==void 0?_floorId:floorId=core.status.floorId;if(name==="atk"||name==="def"){var _window$flags,_window$flags2;s+=(_window$flags=(_window$flags2=window.flags)===null||_window$flags2===void 0?void 0:_window$flags2["night_".concat(floorId)])!==null&&_window$flags!==void 0?_window$flags:0}if(flags.bladeOn&&flags.blade){var level=core.plugin.skillTree.getSkillLevel(2);if(name==="atk"){s*=1+0.1*level}if(name==="def"){s*=1-0.1*level}}if(flags.shield&&flags.shieldOn){var _level=core.plugin.skillTree.getSkillLevel(10);if(name==="atk"){s*=1-0.1*_level}if(name==="def"){s*=1+0.1*_level}}if(typeof s==="number")s*=core.getBuff(name);if(typeof s==="number")s=Math.floor(s);return s}core.plugin.hero={getHeroStatusOf:getHeroStatusOf,getHeroStatusOn:getHeroStatusOn}})();
"use strict";(function(){function createCanvas(name,zIndex){if(!name)return;var canvas=document.createElement("canvas");canvas.id=name;canvas.className="gameCanvas";if(main.mode!="editor")canvas.style.zIndex=zIndex||0;document.getElementById("gameDraw").appendChild(canvas);var ctx=canvas.getContext("2d");core.canvas[name]=ctx;return canvas}var bg2Canvas=createCanvas("bg2",20);var fg2Canvas=createCanvas("fg2",63);core.bigmap.canvas=["bg2","fg2","bg","event","event2","fg","damage"];core.initStatus.bg2maps={};core.initStatus.fg2maps={};if(main.mode=="editor"){document.getElementById("mapEdit").insertBefore(bg2Canvas,document.getElementById("event"));document.getElementById("mapEdit").insertBefore(fg2Canvas,document.getElementById("ebm"));var num=4;editor.dom.bg2c=core.canvas.bg2.canvas;editor.dom.bg2Ctx=core.canvas.bg2;editor.dom.fg2c=core.canvas.fg2.canvas;editor.dom.fg2Ctx=core.canvas.fg2;editor.dom.maps.push("bg2map","fg2map");editor.dom.canvas.push("bg2","fg2");var createCanvasBtn=function createCanvasBtn(name){var input=document.createElement("input");var id="layerMod"+num++;var value=name+"map";input.type="radio";input.name="layerMod";input.id=id;input.value=value;editor.dom[id]=input;input.onchange=function(){editor.uifunctions.setLayerMod(value)};return input};var createCanvasBtn_mobile=function createCanvasBtn_mobile(name){var input=document.createElement("option");var id="layerMod"+num++;var value=name+"map";input.name="layerMod";input.value=value;editor.dom[id]=input;return input};if(!editor.isMobile){var input=createCanvasBtn("bg2");var input2=createCanvasBtn("fg2");var child=document.getElementById("layerMod"),parent=child.parentNode;parent.insertBefore(input,child);var txt=document.createTextNode("\u80CC2");parent.insertBefore(txt,child);parent.appendChild(input2);var txt2=document.createTextNode("\u524D2");parent.appendChild(txt2)}else{var input=createCanvasBtn_mobile("bg2");var input2=createCanvasBtn_mobile("fg2");input.innerText="\u80CC\u666F2";input2.innerText="\u524D\u666F2";var parent=document.getElementById("layerMod");parent.insertBefore(input,parent.children[1]);parent.appendChild(input2)}}core.maps._loadFloor_doNotCopy=function(){return["firstArrive","eachArrive","blocks","parallelDo","map","bgmap","fgmap","bg2map","fg2map","events","changeFloor","afterBattle","afterGetItem","afterOpenDoor","cannotMove"]};core.maps._drawBg_draw=function(floorId,toDrawCtx,cacheCtx,config){config.ctx=cacheCtx;core.maps._drawBg_drawBackground(floorId,config);core.maps._drawFloorImages(floorId,config.ctx,"bg",null,null,config.onMap);core.maps._drawBgFgMap(floorId,"bg",config);if(config.onMap){core.drawImage(toDrawCtx,cacheCtx.canvas,core.bigmap.v2?-32:0,core.bigmap.v2?-32:0);core.clearMap("bg2");core.clearMap(cacheCtx)}core.maps._drawBgFgMap(floorId,"bg2",config);if(config.onMap)core.drawImage("bg2",cacheCtx.canvas,core.bigmap.v2?-32:0,core.bigmap.v2?-32:0);config.ctx=toDrawCtx};core.maps._drawFg_draw=function(floorId,toDrawCtx,cacheCtx,config){config.ctx=cacheCtx;core.maps._drawFloorImages(floorId,config.ctx,"fg",null,null,config.onMap);core.maps._drawBgFgMap(floorId,"fg",config);if(config.onMap){core.drawImage(toDrawCtx,cacheCtx.canvas,core.bigmap.v2?-32:0,core.bigmap.v2?-32:0);core.clearMap("fg2");core.clearMap(cacheCtx)}core.maps._drawBgFgMap(floorId,"fg2",config);if(config.onMap)core.drawImage("fg2",cacheCtx.canvas,core.bigmap.v2?-32:0,core.bigmap.v2?-32:0);config.ctx=toDrawCtx};core.maps._generateMovableArray_arrays=function(floorId){return{bgArray:this.getBgMapArray(floorId),fgArray:this.getFgMapArray(floorId),eventArray:this.getMapArray(floorId),bg2Array:this._getBgFgMapArray("bg2",floorId),fg2Array:this._getBgFgMapArray("fg2",floorId)}}})();
"use strict";(function(){var slide=core.plugin.utils.slide;var list=["tower6"];function setLoopMap(offset,floorId){var floor=core.status.maps[floorId];if(offset<9){moveMap(floor.width-17,floorId)}if(offset>floor.width-9){moveMap(17-floor.width,floorId)}}function autoSetLoopMap(floorId){setLoopMap(core.status.hero.loc.x,floorId)}function checkLoopMap(){if(isLoopMap(core.status.floorId)){autoSetLoopMap(core.status.floorId)}}function moveMap(delta,floorId){core.extractBlocks(floorId);var floor=core.status.maps[floorId];core.setHeroLoc("x",core.status.hero.loc.x+delta);flags["loop_".concat(floorId)]+=delta;flags["loop_".concat(floorId)]%=floor.width;var origin=floor.blocks.slice();for(var i=0;i<origin.length;i++){core.removeBlockByIndex(0,floorId);core.removeGlobalAnimate(origin[i].x,origin[i].y)}origin.forEach(function(v){var to=v.x+delta;if(to>=floor.width)to-=floor.width;if(to<0)to+=floor.width;core.setBlock(v.id,to,v.y,floorId,true);core.setMapBlockDisabled(floorId,to,v.y,false)});core.drawMap();core.drawHero()}function isLoopMap(floorId){return list.includes(floorId)}events.prototype._sys_changeFloor=function(data,callback){data=data.event.data;var heroLoc={};if(isLoopMap(data.floorId)){var _flags,_ref,_flags$_ref;var floor=core.status.maps[data.floorId];(_flags$_ref=(_flags=flags)[_ref="loop_".concat(data.floorId)])!==null&&_flags$_ref!==void 0?_flags$_ref:_flags[_ref]=0;var tx=data.loc[0]+flags["loop_".concat(data.floorId)];tx%=floor.width;if(tx<0)tx+=floor.width;heroLoc={x:tx,y:data.loc[1]}}else if(data.loc)heroLoc={x:data.loc[0],y:data.loc[1]};if(data.direction)heroLoc.direction=data.direction;if(core.status.event.id!="action")core.status.event.id=null;core.changeFloor(data.floorId,data.stair,heroLoc,data.time,function(){core.replay();if(callback)callback()})};events.prototype.trigger=function(x,y,callback){var _executeCallback=function _executeCallback(){if(callback){setTimeout(callback,1)}return};if(core.status.gameOver)return _executeCallback();if(core.status.event.id=="action"){core.insertAction({type:"function","function":"function () { core.events._trigger_inAction("+x+","+y+"); }",async:true},null,null,null,true);return _executeCallback()}if(core.status.event.id)return _executeCallback();var block=core.getBlock(x,y);var id=core.status.floorId;var loop=isLoopMap(id);if(loop&&flags["loop_".concat(id)]!==0){if(block&&block.event.trigger==="changeFloor"){delete block.event.trigger;core.maps._addInfo(block)}else{var floor=core.status.maps[id];var tx=x-flags["loop_".concat(id)];tx%=floor.width;if(tx<0)tx+=floor.width;var c=core.floors[id].changeFloor["".concat(tx,",").concat(y)];if(c){var b={event:{},x:tx,y:y};b.event.data=c;b.event.trigger="changeFloor";block=b}}}if(block==null)return _executeCallback();if(block.event.script){core.clearRouteFolding();try{eval(block.event.script)}catch(ee){console.error(ee)}}if(block.event.event){core.clearRouteFolding();core.insertAction(block.event.event,block.x,block.y);return _executeCallback()}if(block.event.trigger&&block.event.trigger!="null"){var noPass=block.event.noPass,trigger=block.event.trigger;if(noPass)core.clearAutomaticRouteNode(x,y);if(trigger=="changeFloor"&&!noPass&&this._trigger_ignoreChangeFloor(block)&&!loop)return _executeCallback();core.status.automaticRoute.moveDirectly=false;this.doSystemEvent(trigger,block)}return _executeCallback()};maps.prototype._getBgFgMapArray=function(name,floorId,noCache){floorId=floorId||core.status.floorId;if(!floorId)return[];var width=core.floors[floorId].width;var height=core.floors[floorId].height;if(!noCache&&core.status[name+"maps"][floorId])return core.status[name+"maps"][floorId];var arr=main.mode=="editor"&&!(window.editor&&editor.uievent&&editor.uievent.isOpen)?core.cloneArray(editor[name+"map"]):null;if(arr==null)arr=core.cloneArray(core.floors[floorId][name+"map"]||[]);if(isLoopMap(floorId)&&window.flags){var _flags2,_ref2,_flags2$_ref;(_flags2$_ref=(_flags2=flags)[_ref2="loop_".concat(floorId)])!==null&&_flags2$_ref!==void 0?_flags2$_ref:_flags2[_ref2]=0;arr.forEach(function(v){slide(v,flags["loop_".concat(floorId)]%width)})}for(var y=0;y<height;++y){if(arr[y]==null)arr[y]=Array(width).fill(0)}(core.getFlag("__"+name+"v__",{})[floorId]||[]).forEach(function(one){arr[one[1]][one[0]]=one[2]||0});(core.getFlag("__"+name+"d__",{})[floorId]||[]).forEach(function(one){arr[one[1]][one[0]]=0});if(main.mode=="editor"){for(var x=0;x<width;x++){for(var y=0;y<height;y++){arr[y][x]=arr[y][x].idnum||arr[y][x]||0}}}if(core.status[name+"maps"])core.status[name+"maps"][floorId]=arr;return arr};core.plugin.loopMap={checkLoopMap:checkLoopMap}})();
"use strict";(function(){function removeMaps(fromId,toId,force){var _flags,_flags$__forceDelete_;toId=toId||fromId;var fromIndex=core.floorIds.indexOf(fromId),toIndex=core.floorIds.indexOf(toId);if(toIndex<0)toIndex=core.floorIds.length-1;flags.__visited__=flags.__visited__||{};flags.__removed__=flags.__removed__||[];flags.__disabled__=flags.__disabled__||{};flags.__leaveLoc__=flags.__leaveLoc__||{};(_flags$__forceDelete_=(_flags=flags).__forceDelete__)!==null&&_flags$__forceDelete_!==void 0?_flags$__forceDelete_:_flags.__forceDelete__={};var deleted=false;for(var i=fromIndex;i<=toIndex;++i){var floorId=core.floorIds[i];if(core.status.maps[floorId].deleted)continue;delete flags.__visited__[floorId];flags.__removed__.push(floorId);delete flags.__disabled__[floorId];delete flags.__leaveLoc__[floorId];(core.status.autoEvents||[]).forEach(function(event){if(event.floorId==floorId&&event.currentFloor){core.autoEventExecuting(event.symbol,false);core.autoEventExecuted(event.symbol,false)}});core.status.maps[floorId].deleted=true;core.status.maps[floorId].canFlyTo=false;core.status.maps[floorId].canFlyFrom=false;core.status.maps[floorId].cannotViewMap=true;if(force){core.status.maps[floorId].forceDelete=true;flags.__forceDelete__[floorId]=true}deleteFlags(floorId);deleted=true}if(deleted&&!main.replayChecking){core.splitArea()}}function deleteFlags(floorId){delete flags["jump_".concat(floorId)];delete flags["inte_".concat(floorId)];delete flags["loop_".concat(floorId)];delete flags["melt_".concat(floorId)];delete flags["night_".concat(floorId)]}function resumeMaps(fromId,toId){toId=toId||fromId;var fromIndex=core.floorIds.indexOf(fromId),toIndex=core.floorIds.indexOf(toId);if(toIndex<0)toIndex=core.floorIds.length-1;flags.__removed__=flags.__removed__||[];for(var i=fromIndex;i<=toIndex;++i){var floorId=core.floorIds[i];if(!core.status.maps[floorId].deleted)continue;if(core.status.maps[floorId].forceDelete||flags.__forceDelete__[floorId])continue;flags.__removed__=flags.__removed__.filter(function(f){return f!=floorId});core.status.maps[floorId]=core.loadFloor(floorId)}}var inAnyPartition=function inAnyPartition(floorId){var inPartition=false;(core.floorPartitions||[]).forEach(function(floor){var fromIndex=core.floorIds.indexOf(floor[0]);var toIndex=core.floorIds.indexOf(floor[1]);var index=core.floorIds.indexOf(floorId);if(fromIndex<0||index<0)return;if(toIndex<0)toIndex=core.floorIds.length-1;if(index>=fromIndex&&index<=toIndex)inPartition=true});return inPartition};function autoRemoveMaps(floorId){if(main.mode!="play"||!inAnyPartition(floorId))return;(core.floorPartitions||[]).forEach(function(floor){var fromIndex=core.floorIds.indexOf(floor[0]);var toIndex=core.floorIds.indexOf(floor[1]);var index=core.floorIds.indexOf(floorId);if(fromIndex<0||index<0)return;if(toIndex<0)toIndex=core.floorIds.length-1;if(index>=fromIndex&&index<=toIndex){core.plugin.removeMap.resumeMaps(core.floorIds[fromIndex],core.floorIds[toIndex])}else{removeMaps(core.floorIds[fromIndex],core.floorIds[toIndex])}})}core.plugin.removeMap={removeMaps:removeMaps,deleteFlags:deleteFlags,resumeMaps:resumeMaps,autoRemoveMaps:autoRemoveMaps}})();