mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 15:09:26 +08:00
完善ui
This commit is contained in:
parent
e275669489
commit
64a4fa05a8
@ -371,14 +371,7 @@ main.floors.MT16=
|
|||||||
"这里是漏怪检测,将会检测\r[gold]洞穴、山路、山脚、平原\r[white]地区的怪物是否清完",
|
"这里是漏怪检测,将会检测\r[gold]洞穴、山路、山脚、平原\r[white]地区的怪物是否清完",
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\ncore.checkEnemy([0, \"MT0\", \"MT1\", \"MT2\", \"MT3\", \"MT4\", \"MT5\", \"MT6\", \"MT7\", \"MT8\", \"MT9\", \"MT10\", \"MT11\", \"MT12\", \"MT13\", \"MT14\", \"MT15\"]);\n}"
|
"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}"
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "if",
|
|
||||||
"condition": "(flag:enemyNumber===0)",
|
|
||||||
"true": [
|
|
||||||
"请搜刮地上物资,之后此区域无法返回"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"3,23": [
|
"3,23": [
|
||||||
|
@ -52,7 +52,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
|
|||||||
// 隐藏右下角的音乐按钮
|
// 隐藏右下角的音乐按钮
|
||||||
core.dom.musicBtn.style.display = 'none';
|
core.dom.musicBtn.style.display = 'none';
|
||||||
core.dom.enlargeBtn.style.display = 'none';
|
core.dom.enlargeBtn.style.display = 'none';
|
||||||
core.splitArea();
|
if (main.mode === 'play' && !main.replayChecking) core.splitArea();
|
||||||
},
|
},
|
||||||
win: function (reason, norank, noexit) {
|
win: function (reason, norank, noexit) {
|
||||||
// 游戏获胜事件
|
// 游戏获胜事件
|
||||||
|
@ -4344,7 +4344,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
|
|||||||
core.extractBlocks(v);
|
core.extractBlocks(v);
|
||||||
const blocks = core.status.maps[v].blocks;
|
const blocks = core.status.maps[v].blocks;
|
||||||
blocks.forEach(block => {
|
blocks.forEach(block => {
|
||||||
if (!block.event.cls.startsWith('enemy')) return;
|
if (!block.event.cls.startsWith('enemy') || block.disable)
|
||||||
|
return;
|
||||||
/**
|
/**
|
||||||
* @type {EnemyIds}
|
* @type {EnemyIds}
|
||||||
*/
|
*/
|
||||||
|
@ -264,6 +264,7 @@ span#hard {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
z-index: 230;
|
z-index: 230;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#logoLabel {
|
#logoLabel {
|
||||||
|
@ -133,6 +133,9 @@ function generateChart(ele: HTMLCanvasElement, data: [number, number][]) {
|
|||||||
point: {
|
point: {
|
||||||
radius: 5,
|
radius: 5,
|
||||||
hoverRadius: 7
|
hoverRadius: 7
|
||||||
|
},
|
||||||
|
line: {
|
||||||
|
borderJoinStyle: 'round'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
scales: {
|
scales: {
|
||||||
|
@ -78,10 +78,6 @@ export function getDefDamage(
|
|||||||
res.push([ratio * i + addDef, dam.damage]);
|
res.push([ratio * i + addDef, dam.damage]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((res.at(-1)?.[1] ?? 1) <= 0) {
|
|
||||||
res.push([res.at(-1)![0] + 1, 0]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,9 +118,5 @@ export function getCriticalDamage(
|
|||||||
res.push([ratio * i + addAtk, dam.damage]);
|
res.push([ratio * i + addAtk, dam.damage]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((res.at(-1)?.[1] ?? 1) <= 0) {
|
|
||||||
res.push([res.at(-1)![0] + 1, 0]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,14 @@
|
|||||||
<span id="skill-level">当前等级:{{ level }}</span>
|
<span id="skill-level">当前等级:{{ level }}</span>
|
||||||
<a-divider dashed class="upgrade-divider"></a-divider>
|
<a-divider dashed class="upgrade-divider"></a-divider>
|
||||||
<span
|
<span
|
||||||
|
v-if="level < skill.max"
|
||||||
id="skill-consume"
|
id="skill-consume"
|
||||||
:style="{ color: consume <= mdef ? '#fff' : '#f44' }"
|
:style="{ color: consume <= mdef ? '#fff' : '#f44' }"
|
||||||
>升级花费:{{ consume }}</span
|
>升级花费:{{ consume }}</span
|
||||||
>
|
>
|
||||||
|
<span v-else id="skill-consume" style="color: gold"
|
||||||
|
>已满级</span
|
||||||
|
>
|
||||||
<a-divider dashed class="upgrade-divider"></a-divider>
|
<a-divider dashed class="upgrade-divider"></a-divider>
|
||||||
<Scroll id="front-scroll" :no-scroll="true"
|
<Scroll id="front-scroll" :no-scroll="true"
|
||||||
><div id="skill-front">
|
><div id="skill-front">
|
||||||
@ -246,7 +250,8 @@ function upgrade(index: number) {
|
|||||||
|
|
||||||
function key(e: KeyboardEvent) {
|
function key(e: KeyboardEvent) {
|
||||||
const c = keycode(e.keyCode);
|
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) {
|
if (c === KeyCode.Space || c === KeyCode.Enter || c === KeyCode.KeyC) {
|
||||||
upgrade(selected.value);
|
upgrade(selected.value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user