This commit is contained in:
unanmed 2023-01-02 23:30:30 +08:00
parent e275669489
commit 64a4fa05a8
7 changed files with 14 additions and 19 deletions

View File

@ -371,14 +371,7 @@ main.floors.MT16=
"这里是漏怪检测,将会检测\r[gold]洞穴、山路、山脚、平原\r[white]地区的怪物是否清完",
{
"type": "function",
"function": "function(){\ncore.checkEnemy([0, \"MT0\", \"MT1\", \"MT2\", \"MT3\", \"MT4\", \"MT5\", \"MT6\", \"MT7\", \"MT8\", \"MT9\", \"MT10\", \"MT11\", \"MT12\", \"MT13\", \"MT14\", \"MT15\"]);\n}"
},
{
"type": "if",
"condition": "(flag:enemyNumber===0)",
"true": [
"请搜刮地上物资,之后此区域无法返回"
]
"function": "function(){\nconst enemy = core.getRemainEnemyString(core.floorIds.slice(5, 17));\nif (enemy.length === 0) {\n\tcore.insertAction(['当前无剩余怪物!', { \"type\": \"hide\", \"remove\": true }, ]);\n} else {\n\tcore.insertAction(enemy);\n}\n}"
}
],
"3,23": [

View File

@ -52,7 +52,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
// 隐藏右下角的音乐按钮
core.dom.musicBtn.style.display = 'none';
core.dom.enlargeBtn.style.display = 'none';
core.splitArea();
if (main.mode === 'play' && !main.replayChecking) core.splitArea();
},
win: function (reason, norank, noexit) {
// 游戏获胜事件

View File

@ -4344,7 +4344,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
core.extractBlocks(v);
const blocks = core.status.maps[v].blocks;
blocks.forEach(block => {
if (!block.event.cls.startsWith('enemy')) return;
if (!block.event.cls.startsWith('enemy') || block.disable)
return;
/**
* @type {EnemyIds}
*/

View File

@ -264,6 +264,7 @@ span#hard {
color: #fff;
background-color: #000;
z-index: 230;
user-select: none;
}
#logoLabel {

View File

@ -133,6 +133,9 @@ function generateChart(ele: HTMLCanvasElement, data: [number, number][]) {
point: {
radius: 5,
hoverRadius: 7
},
line: {
borderJoinStyle: 'round'
}
},
scales: {

View File

@ -78,10 +78,6 @@ export function getDefDamage(
res.push([ratio * i + addDef, dam.damage]);
}
if ((res.at(-1)?.[1] ?? 1) <= 0) {
res.push([res.at(-1)![0] + 1, 0]);
}
return res;
}
@ -122,9 +118,5 @@ export function getCriticalDamage(
res.push([ratio * i + addAtk, dam.damage]);
}
if ((res.at(-1)?.[1] ?? 1) <= 0) {
res.push([res.at(-1)![0] + 1, 0]);
}
return res;
}

View File

@ -33,10 +33,14 @@
<span id="skill-level">当前等级{{ level }}</span>
<a-divider dashed class="upgrade-divider"></a-divider>
<span
v-if="level < skill.max"
id="skill-consume"
:style="{ color: consume <= mdef ? '#fff' : '#f44' }"
>升级花费{{ consume }}</span
>
<span v-else id="skill-consume" style="color: gold"
>已满级</span
>
<a-divider dashed class="upgrade-divider"></a-divider>
<Scroll id="front-scroll" :no-scroll="true"
><div id="skill-front">
@ -246,7 +250,8 @@ function upgrade(index: number) {
function key(e: KeyboardEvent) {
const c = keycode(e.keyCode);
if (c === KeyCode.Escape || c === KeyCode.KeyX) exit();
if (c === KeyCode.Escape || c === KeyCode.KeyX || c === KeyCode.KeyJ)
exit();
if (c === KeyCode.Space || c === KeyCode.Enter || c === KeyCode.KeyC) {
upgrade(selected.value);
}