完善回合动画(缺主角控制及录像)

This commit is contained in:
草莓 2025-02-15 23:47:00 +08:00
parent 5b853dc5a8
commit 973b546a43

View File

@ -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,