From 973b546a43ccbb54eac8b8269948d93858483ea1 Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Sat, 15 Feb 2025 23:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=9E=E5=90=88=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=EF=BC=88=E7=BC=BA=E4=B8=BB=E8=A7=92=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=8A=E5=BD=95=E5=83=8F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 55 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 4 deletions(-) diff --git a/project/plugins.js b/project/plugins.js index b9bca3d..7a03171 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -16664,7 +16664,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = if (this.boss.hp > 0) { this.selection = "boss" this.update() - + await sleep(200) //等待200ms switch (this.boss.skill[this.boss.index]) { //这里写boss技能的效果 case "普通攻击": damage = Math.max(this.boss.atk - this.hero.def, 0) //基础伤害 @@ -16685,6 +16685,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = if (enemy.hp > 0) { this.selection = v[0] this.update() + await sleep(200) //等待200ms switch (enemy.skill[enemy.index]) { //这里写boss召唤物(小怪)的技能效果 case "普通攻击": @@ -16719,13 +16720,17 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = await sleep(200) //等待200ms break; } - if (enemy.index >= enemy.length) enemy.index = 0 + enemy.index++ + if (enemy.index >= enemy.skill.length) enemy.index = 0 } break; } + await sleep(200) + this.selection = "" this.update() + } let end = true; if (this.boss.hp > 0) end = false; @@ -16866,7 +16871,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = 96, 96 ); - if (this.selection == i) core.strokeRect(ctx5, posx, posy, 100, 100, "yellow", 6) + if (this.selection === i) core.strokeRect(ctx5, posx, posy, 100, 100, "yellow", 6) } else { core.drawImage( ctx5, @@ -16880,7 +16885,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = 96, 144 ); - if (this.selection == i) core.strokeRect(ctx5, posx, posy, 100, 150, "yellow", 6) + if (this.selection === i) core.strokeRect(ctx5, posx, posy, 100, 150, "yellow", 6) } posx += 100 @@ -17285,6 +17290,27 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = 6, core.ui._buildFont(44, true) ); + core.fillBoldText1( + ctx4, + "当前技能", + 1400, + 120, + "#FFFFFF", + "#000000", + 6, + core.ui._buildFont(44, true) + ); + const bosstext = this.boss.skill[this.boss.index] + core.fillBoldText1( + ctx4, + bosstext, + 1600, + 120, + "#FFFFFF", + "#000000", + 6, + core.ui._buildFont(44, true) + ); core.fillBoldText1( ctx4, "生命 " + this.boss.hp, @@ -17378,6 +17404,27 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = 6, core.ui._buildFont(44, true) ); + core.fillBoldText1( + ctx4, + "当前技能", + 1400, + 120, + "#FFFFFF", + "#000000", + 6, + core.ui._buildFont(44, true) + ); + const enemytext = this.enemy[this.selection].skill[this.enemy[this.selection].index] + core.fillBoldText1( + ctx4, + enemytext, + 1600, + 120, + "#FFFFFF", + "#000000", + 6, + core.ui._buildFont(44, true) + ); core.fillBoldText1( ctx4, "生命 " + this.enemy[this.selection].hp,