From f6af2f5c22e82105181b37cf51f13f1f4343d3f9 Mon Sep 17 00:00:00 2001 From: strawberry <2806566736@.qq.com> Date: Wed, 27 Aug 2025 11:39:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=8C=E5=AD=90=E4=B8=8A=E7=9A=84=E8=A1=80?= =?UTF-8?q?=E7=93=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/floors/yiqu2.js | 38 +++++- project/floors/yiqu3.js | 42 ++++++- project/floors/yiqu5.js | 73 +++++++++++- project/plugins.js | 252 ++++++++++++++++++++-------------------- 4 files changed, 275 insertions(+), 130 deletions(-) diff --git a/project/floors/yiqu2.js b/project/floors/yiqu2.js index 96dfdd2..eaa6c56 100644 --- a/project/floors/yiqu2.js +++ b/project/floors/yiqu2.js @@ -14,7 +14,43 @@ main.floors.yiqu2= "firstArrive": [], "eachArrive": [], "parallelDo": "", - "events": {}, + "events": { + "3,3": { + "trigger": "action", + "enable": true, + "noPass": true, + "displayDamage": true, + "opacity": 1, + "filter": { + "blur": 0, + "hue": 0, + "grayscale": 0, + "invert": false, + "shadow": 0 + }, + "data": [ + { + "type": "if", + "condition": "(!switch:A)", + "true": [ + { + "type": "function", + "function": "function(){\ncore.getItem(\"blueKey\", null, 3,3)\n}" + }, + { + "type": "setBlock", + "number": "X130061" + }, + { + "type": "setValue", + "name": "switch:A", + "value": "true" + } + ] + } + ] + } + }, "changeFloor": { "12,7": { "floorId": "yiqu3", diff --git a/project/floors/yiqu3.js b/project/floors/yiqu3.js index c82462a..edd9b2b 100644 --- a/project/floors/yiqu3.js +++ b/project/floors/yiqu3.js @@ -14,7 +14,43 @@ main.floors.yiqu3= "firstArrive": [], "eachArrive": [], "parallelDo": "", - "events": {}, + "events": { + "12,8": { + "trigger": "action", + "enable": true, + "noPass": true, + "displayDamage": true, + "opacity": 1, + "filter": { + "blur": 0, + "hue": 0, + "grayscale": 0, + "invert": false, + "shadow": 0 + }, + "data": [ + { + "type": "if", + "condition": "(!switch:A)", + "true": [ + { + "type": "function", + "function": "function(){\ncore.getItem(\"redPotion\", null, 8, 12)\n}" + }, + { + "type": "setBlock", + "number": "X60150" + }, + { + "type": "setValue", + "name": "switch:A", + "value": "true" + } + ] + } + ] + } + }, "changeFloor": { "5,1": { "floorId": "yiqu4", @@ -37,7 +73,9 @@ main.floors.yiqu3= "afterOpenDoor": {}, "autoEvent": {}, "cannotMove": {}, - "cannotMoveIn": {}, + "cannotMoveIn": { + "12,8": [] + }, "map": [ [140,140,140204,140206,140206, 0,140206,140206,140203,140,110204,110206,110206], [140,140,140199,170255,170252, 91,170254,170255,140197,140,140199,130192,130193], diff --git a/project/floors/yiqu5.js b/project/floors/yiqu5.js index baa70b7..e1260f1 100644 --- a/project/floors/yiqu5.js +++ b/project/floors/yiqu5.js @@ -14,7 +14,78 @@ main.floors.yiqu5= "firstArrive": [], "eachArrive": [], "parallelDo": "", - "events": {}, + "events": { + "9,3": { + "trigger": "action", + "enable": true, + "noPass": true, + "displayDamage": true, + "opacity": 1, + "filter": { + "blur": 0, + "hue": 0, + "grayscale": 0, + "invert": false, + "shadow": 0 + }, + "data": [ + { + "type": "if", + "condition": "(!switch:A)", + "true": [ + { + "type": "function", + "function": "function(){\ncore.getItem(\"redPotion\", null, 3, 9)\n}" + }, + { + "type": "setBlock", + "number": "X60150" + }, + { + "type": "setValue", + "name": "switch:A", + "value": "true" + } + ] + } + ] + }, + "3,2": { + "trigger": "action", + "enable": true, + "noPass": true, + "displayDamage": true, + "opacity": 1, + "filter": { + "blur": 0, + "hue": 0, + "grayscale": 0, + "invert": false, + "shadow": 0 + }, + "data": [ + { + "type": "if", + "condition": "(!switch:A)", + "true": [ + { + "type": "function", + "function": "function(){\ncore.getItem(\"bluePotion\", null, 2, 3)\n}" + }, + { + "type": "setBlock", + "number": "X60150" + }, + { + "type": "setValue", + "name": "switch:A", + "value": "true" + } + ] + } + ] + } + }, "changeFloor": { "0,11": { "floorId": "yiqu4", diff --git a/project/plugins.js b/project/plugins.js index 2dc9cab..2ed62de 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -22065,8 +22065,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.clearMap(this.right) core.setTextAlign(this.left, 'center'); core.setTextAlign(this.right, 'center'); - core.fillText(this.left, "无恶意目标", 150, 214, '#999999', core.ui._buildFont(34, true)); - core.fillText(this.right, "合上书本", 254, 380, '#000000', core.ui._buildFont(16, true)); + core.fillText(this.left, "无恶意目标", 150, 214, '#644324', core.ui._buildFont(34, true)); + core.fillText(this.right, "合上书本", 254, 380, '#644324', core.ui._buildFont(16, true)); } drawBoxAnimate(ctx, page, x, y) { const blockInfo = core.getBlockInfo(this.enemys[page].id) @@ -22142,19 +22142,19 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.clearMap(this.tempLeft) const enemy = this.enemys[page] core.setTextAlign(this.tempLeft, 'center') - core.fillText(this.tempLeft, enemy.name, 150, 120, "#000000", core.ui._buildFont(20, true)) - core.fillText(this.tempLeft, "基础属性", 150, 150, "#000000", core.ui._buildFont(14, true)) + core.fillText(this.tempLeft, enemy.name, 150, 120, "#644324", core.ui._buildFont(20, true)) + core.fillText(this.tempLeft, "基础属性", 150, 150, "#644324", core.ui._buildFont(14, true)) core.setTextAlign(this.tempLeft, 'left') - core.fillText(this.tempLeft, "生命 " + enemy.hp, 30, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempLeft, "攻击 " + enemy.atk, 120, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempLeft, "防御 " + enemy.def, 210, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempLeft, "法强 " + enemy.spell, 30, 190, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempLeft, "法抗 " + enemy.mdef + '%', 120, 190, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempLeft, "速度 " + enemy.speed, 210, 190, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempLeft, "金币 " + enemy.money, 30, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempLeft, "经验 " + enemy.exp, 120, 210, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.tempLeft, "生命 " + enemy.hp, 30, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempLeft, "攻击 " + enemy.atk, 120, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempLeft, "防御 " + enemy.def, 210, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempLeft, "法强 " + enemy.spell, 30, 190, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempLeft, "法抗 " + enemy.mdef + '%', 120, 190, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempLeft, "速度 " + enemy.speed, 210, 190, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempLeft, "金币 " + enemy.money, 30, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempLeft, "经验 " + enemy.exp, 120, 210, "#644324", core.ui._buildFont(12, true)) core.setTextAlign(this.tempLeft, 'center') - core.fillText(this.tempLeft, "特殊属性", 150, 230, "#000000", core.ui._buildFont(14, true)) + core.fillText(this.tempLeft, "特殊属性", 150, 230, "#644324", core.ui._buildFont(14, true)) const specials = core.getSpecials() core.enemys._calSpecialContent(enemy.id) const hints = []; @@ -22170,7 +22170,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = maxWidth: 220, fontSize: 14, lineHeight: 20, - color: "#000000" + color: "#644324" }); if (this.enemys.length <= 8) { for (let i = 0; i < this.enemys.length; i++) { @@ -22183,14 +22183,14 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = this.tempLeft.lineTo(29, 370) this.tempLeft.lineTo(63, 386) this.tempLeft.closePath() - this.tempLeft.fillStyle = page < 3 ? "#999999" : "#000000" + this.tempLeft.fillStyle = page < 3 ? "#999999" : "#644324" this.tempLeft.fill() this.tempLeft.beginPath() this.tempLeft.moveTo(237, 353) this.tempLeft.lineTo(271, 370) this.tempLeft.lineTo(237, 386) this.tempLeft.closePath() - this.tempLeft.fillStyle = page > this.enemys.length - 4 ? "#999999" : "#000000" + this.tempLeft.fillStyle = page > this.enemys.length - 4 ? "#644324" : "#000000" this.tempLeft.fill() this.drawBoxAnimate(this.tempLeft, core.clamp(page - 2, 0, this.enemys.length - 5), 80, 370) this.drawBoxAnimate(this.tempLeft, core.clamp(page - 1, 1, this.enemys.length - 4), 114, 370) @@ -22218,8 +22218,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = }) core.setTextAlign(this.tempRight, 'left') let getDamageInfo = core.getDamageInfo(enemy, null) - core.fillText(this.tempRight, "出手次数 " + (getDamageInfo ? getDamageInfo.hero_turn : '???'), 30, 50, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "受击次数 " + (getDamageInfo ? getDamageInfo.mon_turn : '???'), 130, 50, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "出手次数 " + (getDamageInfo ? getDamageInfo.hero_turn : '???'), 30, 50, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "受击次数 " + (getDamageInfo ? getDamageInfo.mon_turn : '???'), 130, 50, "#644324", core.ui._buildFont(12, true)) let color = "#FFFF00", damage = enemy.damage @@ -22236,22 +22236,22 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.setTextAlign(this.tempRight, 'center'); core.fillText(this.tempRight, damage, 240, 50, color, core.ui._buildFont(12, true)) core.setTextAlign(this.tempRight, 'left'); - core.fillText(this.tempRight, "攻击临界 " + enemy.criticalAtk[0], 30, 70, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "速度临界 " + enemy.criticalSpeed[0], 120, 70, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, '法强临界 ' + enemy.criticalSpell[0], 210, 70, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "减伤 " + enemy.criticalAtk[1], 30, 90, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "减伤 " + enemy.criticalSpeed[1], 120, 90, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, '减伤 ' + enemy.criticalSpell[1], 210, 90, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "攻击临界 " + enemy.criticalAtk[0], 30, 70, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "速度临界 " + enemy.criticalSpeed[0], 120, 70, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, '法强临界 ' + enemy.criticalSpell[0], 210, 70, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "减伤 " + enemy.criticalAtk[1], 30, 90, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "减伤 " + enemy.criticalSpeed[1], 120, 90, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, '减伤 ' + enemy.criticalSpell[1], 210, 90, "#644324", core.ui._buildFont(12, true)) if (this.atk > 0 || this.def > 0 || this.speed > 0 || this.spell > 0) { core.setTextAlign(this.tempRight, 'center'); - core.fillText(this.tempRight, "增幅战斗情况", 150, 110, "#000000", core.ui._buildFont(16, true)) + core.fillText(this.tempRight, "增幅战斗情况", 150, 110, "#644324", core.ui._buildFont(16, true)) core.setTextAlign(this.tempRight, 'left'); const config = { atk: core.getRealStatus("atk") + this.atk, def: core.getRealStatus("def") + this.def, spell: core.getRealStatus("spell") + this.spell, speed: core.getRealStatus("speed") + this.speed } getDamageInfo = core.getDamageInfo(enemy, config) - core.fillText(this.tempRight, "出手次数 " + (getDamageInfo ? getDamageInfo.hero_turn : '???'), 30, 130, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "受击次数 " + (getDamageInfo ? getDamageInfo.mon_turn : '???'), 130, 130, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "出手次数 " + (getDamageInfo ? getDamageInfo.hero_turn : '???'), 30, 130, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "受击次数 " + (getDamageInfo ? getDamageInfo.mon_turn : '???'), 130, 130, "#644324", core.ui._buildFont(12, true)) color = "#FFFF00" damage = getDamageInfo?.damage if (damage == '???' || !getDamageInfo) { @@ -22270,15 +22270,15 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = let atk = core.nextCriticals(enemy, null, null, null, null, config) let speed = core.nextCriticals_speed(enemy, null, null, null, null, config) let spell = core.nextCriticals_spell(enemy, null, null, null, null, config) - core.fillText(this.tempRight, "攻击临界 " + atk[0][0], 30, 150, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "速度临界 " + speed[0][0], 120, 150, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, '法强临界 ' + spell[0][0], 210, 150, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "减伤 " + atk[0][1], 30, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "减伤 " + speed[0][1], 120, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, '减伤 ' + spell[0][1], 210, 170, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "攻击临界 " + atk[0][0], 30, 150, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "速度临界 " + speed[0][0], 120, 150, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, '法强临界 ' + spell[0][0], 210, 150, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "减伤 " + atk[0][1], 30, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "减伤 " + speed[0][1], 120, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, '减伤 ' + spell[0][1], 210, 170, "#644324", core.ui._buildFont(12, true)) } else { core.setTextAlign(this.tempRight, 'center'); - core.fillText(this.tempRight, "临界表", 150, 110, "#000000", core.ui._buildFont(16, true)) + core.fillText(this.tempRight, "临界表", 150, 110, "#644324", core.ui._buildFont(16, true)) let texts = [] core.ui._drawBookDetail_turnAndCriticals(enemy, this.floorId, texts) core.drawTextContent(this.tempRight, texts.join('\n'), { @@ -22287,62 +22287,62 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = maxWidth: 240, fontSize: 10, lineHeight: 12, - color: "#000000" + color: "#644324" }); } core.setTextAlign(this.tempRight, 'left') - core.fillText(this.tempRight, "攻 " + core.formatBigNumber(this.atk), 30, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "防 " + core.formatBigNumber(this.def), 90, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "法 " + core.formatBigNumber(this.spell), 150, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "速 " + core.formatBigNumber(this.speed), 210, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "攻", 180, 260, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "防", 180, 290, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "法", 180, 320, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "速", 180, 350, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, "-", 200, 262, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "-", 200, 292, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "-", 200, 322, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "-", 200, 352, "#000000", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "攻 " + core.formatBigNumber(this.atk), 30, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "防 " + core.formatBigNumber(this.def), 90, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "法 " + core.formatBigNumber(this.spell), 150, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "速 " + core.formatBigNumber(this.speed), 210, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "攻", 180, 260, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "防", 180, 290, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "法", 180, 320, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "速", 180, 350, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, "-", 200, 262, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "-", 200, 292, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "-", 200, 322, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "-", 200, 352, "#644324", core.ui._buildFont(24, true)) core.setTextAlign(this.tempRight, 'center'); - core.fillText(this.tempRight, core.formatBigNumber(this.atkStep), 230, 260, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, core.formatBigNumber(this.defStep), 230, 290, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, core.formatBigNumber(this.spellStep), 230, 320, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.tempRight, core.formatBigNumber(this.speedStep), 230, 350, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, core.formatBigNumber(this.atkStep), 230, 260, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, core.formatBigNumber(this.defStep), 230, 290, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, core.formatBigNumber(this.spellStep), 230, 320, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.tempRight, core.formatBigNumber(this.speedStep), 230, 350, "#644324", core.ui._buildFont(12, true)) core.setTextAlign(this.tempRight, 'left'); - core.fillText(this.tempRight, "+", 250, 263, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "+", 250, 293, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "+", 250, 323, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "+", 250, 353, "#000000", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "+", 250, 263, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "+", 250, 293, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "+", 250, 323, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "+", 250, 353, "#644324", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "↑", 265, 265, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "↑", 265, 295, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "↑", 265, 325, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "↑", 265, 355, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.tempRight, "清零", 180, 380, '#000000', core.ui._buildFont(16, true)); + core.fillText(this.tempRight, "↑", 265, 265, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "↑", 265, 295, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "↑", 265, 325, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "↑", 265, 355, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.tempRight, "清零", 180, 380, '#644324', core.ui._buildFont(16, true)); core.setTextAlign(this.tempRight, 'center'); - core.fillText(this.tempRight, "当前战斗情况", 150, 30, "#000000", core.ui._buildFont(16, true)) - core.fillText(this.tempRight, "模拟属性提升", 150, 190, "#000000", core.ui._buildFont(16, true)) - core.fillText(this.tempRight, "模拟属性调整", 230, 233, "#000000", core.ui._buildFont(16, true)) - core.fillText(this.tempRight, "合上书本", 254, 380, '#000000', core.ui._buildFont(16, true)); + core.fillText(this.tempRight, "当前战斗情况", 150, 30, "#644324", core.ui._buildFont(16, true)) + core.fillText(this.tempRight, "模拟属性提升", 150, 190, "#644324", core.ui._buildFont(16, true)) + core.fillText(this.tempRight, "模拟属性调整", 230, 233, "#644324", core.ui._buildFont(16, true)) + core.fillText(this.tempRight, "合上书本", 254, 380, '#644324', core.ui._buildFont(16, true)); } drawLeft() { core.clearMap(this.left) const enemy = this.enemys[this.page] core.setTextAlign(this.left, 'center') - core.fillText(this.left, enemy.name, 150, 120, "#000000", core.ui._buildFont(20, true)) - core.fillText(this.left, "基础属性", 150, 150, "#000000", core.ui._buildFont(14, true)) + core.fillText(this.left, enemy.name, 150, 120, "#644324", core.ui._buildFont(20, true)) + core.fillText(this.left, "基础属性", 150, 150, "#644324", core.ui._buildFont(14, true)) core.setTextAlign(this.left, 'left') - core.fillText(this.left, "生命 " + enemy.hp, 30, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.left, "攻击 " + enemy.atk, 120, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.left, "防御 " + enemy.def, 210, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.left, "法强 " + enemy.spell, 30, 190, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.left, "法抗 " + enemy.mdef + '%', 120, 190, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.left, "速度 " + enemy.speed, 210, 190, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.left, "金币 " + enemy.money, 30, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.left, "经验 " + enemy.exp, 120, 210, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.left, "生命 " + enemy.hp, 30, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.left, "攻击 " + enemy.atk, 120, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.left, "防御 " + enemy.def, 210, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.left, "法强 " + enemy.spell, 30, 190, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.left, "法抗 " + enemy.mdef + '%', 120, 190, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.left, "速度 " + enemy.speed, 210, 190, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.left, "金币 " + enemy.money, 30, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.left, "经验 " + enemy.exp, 120, 210, "#644324", core.ui._buildFont(12, true)) core.setTextAlign(this.left, 'center') - core.fillText(this.left, "特殊属性", 150, 230, "#000000", core.ui._buildFont(14, true)) + core.fillText(this.left, "特殊属性", 150, 230, "#644324", core.ui._buildFont(14, true)) const specials = core.getSpecials() core.enemys._calSpecialContent(enemy.id) const hints = []; @@ -22358,7 +22358,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = maxWidth: 240, fontSize: 12, lineHeight: 16, - color: "#000000" + color: "#644324" }); if (this.enemys.length <= 8) { for (let i = 0; i < this.enemys.length; i++) { @@ -22371,14 +22371,14 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = this.left.lineTo(29, 370) this.left.lineTo(63, 386) this.left.closePath() - this.left.fillStyle = this.page < 3 ? "#999999" : "#000000" + this.left.fillStyle = this.page < 3 ? "#999999" : "#644324" this.left.fill() this.left.beginPath() this.left.moveTo(237, 354) this.left.lineTo(271, 370) this.left.lineTo(237, 386) this.left.closePath() - this.left.fillStyle = this.page > this.enemys.length - 4 ? "#999999" : "#000000" + this.left.fillStyle = this.page > this.enemys.length - 4 ? "#999999" : "#644324" this.left.fill() this.drawBoxAnimate(this.left, core.clamp(this.page - 2, 0, this.enemys.length - 5), 80, 370) this.drawBoxAnimate(this.left, core.clamp(this.page - 1, 1, this.enemys.length - 4), 114, 370) @@ -22407,8 +22407,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = }) core.setTextAlign(this.right, 'left') let getDamageInfo = core.getDamageInfo(enemy, null) - core.fillText(this.right, "出手次数 " + (getDamageInfo ? getDamageInfo.hero_turn : '???'), 30, 50, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "受击次数 " + (getDamageInfo ? getDamageInfo.mon_turn : '???'), 130, 50, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.right, "出手次数 " + (getDamageInfo ? getDamageInfo.hero_turn : '???'), 30, 50, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "受击次数 " + (getDamageInfo ? getDamageInfo.mon_turn : '???'), 130, 50, "#644324", core.ui._buildFont(12, true)) let color = "#FFFF00", damage = enemy.damage if (damage == '???' || damage == null) { @@ -22424,22 +22424,22 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.setTextAlign(this.left, 'center') core.fillText(this.right, damage, 240, 50, color, core.ui._buildFont(12, true)) core.setTextAlign(this.left, 'left') - core.fillText(this.right, "攻击临界 " + enemy.criticalAtk[0], 30, 70, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "速度临界 " + enemy.criticalSpeed[0], 120, 70, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, '法强临界 ' + enemy.criticalSpell[0], 210, 70, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "减伤 " + enemy.criticalAtk[1], 30, 90, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "减伤 " + enemy.criticalSpeed[1], 120, 90, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, '减伤 ' + enemy.criticalSpell[1], 210, 90, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.right, "攻击临界 " + enemy.criticalAtk[0], 30, 70, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "速度临界 " + enemy.criticalSpeed[0], 120, 70, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, '法强临界 ' + enemy.criticalSpell[0], 210, 70, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "减伤 " + enemy.criticalAtk[1], 30, 90, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "减伤 " + enemy.criticalSpeed[1], 120, 90, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, '减伤 ' + enemy.criticalSpell[1], 210, 90, "#644324", core.ui._buildFont(12, true)) if (this.atk > 0 || this.def > 0 || this.speed > 0 || this.spell > 0) { core.setTextAlign(this.right, 'center'); - core.fillText(this.right, "增幅战斗情况", 150, 110, "#000000", core.ui._buildFont(16, true)) + core.fillText(this.right, "增幅战斗情况", 150, 110, "#644324", core.ui._buildFont(16, true)) core.setTextAlign(this.right, 'left'); const config = { atk: core.getRealStatus("atk") + this.atk, def: core.getRealStatus("def") + this.def, spell: core.getRealStatus("spell") + this.spell, speed: core.getRealStatus("speed") + this.speed } getDamageInfo = core.getDamageInfo(enemy, config) - core.fillText(this.right, "出手次数 " + (getDamageInfo ? getDamageInfo.hero_turn : '???'), 30, 130, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "受击次数 " + (getDamageInfo ? getDamageInfo.mon_turn : '???'), 130, 130, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.right, "出手次数 " + (getDamageInfo ? getDamageInfo.hero_turn : '???'), 30, 130, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "受击次数 " + (getDamageInfo ? getDamageInfo.mon_turn : '???'), 130, 130, "#644324", core.ui._buildFont(12, true)) color = "#FFFF00" damage = getDamageInfo?.damage if (damage == '???' || !getDamageInfo) { @@ -22458,15 +22458,15 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = let atk = core.nextCriticals(enemy, null, null, null, null, config) let speed = core.nextCriticals_speed(enemy, null, null, null, null, config) let spell = core.nextCriticals_spell(enemy, null, null, null, null, config) - core.fillText(this.right, "攻击临界 " + atk[0][0], 30, 150, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "速度临界 " + speed[0][0], 120, 150, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, '法强临界 ' + spell[0][0], 210, 150, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "减伤 " + atk[0][1], 30, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "减伤 " + speed[0][1], 120, 170, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, '减伤 ' + spell[0][1], 210, 170, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.right, "攻击临界 " + atk[0][0], 30, 150, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "速度临界 " + speed[0][0], 120, 150, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, '法强临界 ' + spell[0][0], 210, 150, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "减伤 " + atk[0][1], 30, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "减伤 " + speed[0][1], 120, 170, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, '减伤 ' + spell[0][1], 210, 170, "#644324", core.ui._buildFont(12, true)) } else { core.setTextAlign(this.right, 'center'); - core.fillText(this.right, "临界表", 150, 110, "#000000", core.ui._buildFont(16, true)) + core.fillText(this.right, "临界表", 150, 110, "#644324", core.ui._buildFont(16, true)) let texts = [] core.ui._drawBookDetail_turnAndCriticals(enemy, this.floorId, texts) core.drawTextContent(this.right, texts.join('\n'), { @@ -22475,44 +22475,44 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = maxWidth: 240, fontSize: 10, lineHeight: 12, - color: "#000000" + color: "#644324" }); } core.setTextAlign(this.right, 'left') - core.fillText(this.right, "攻 " + core.formatBigNumber(this.atk), 30, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "防 " + core.formatBigNumber(this.def), 90, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "法 " + core.formatBigNumber(this.spell), 150, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "速 " + core.formatBigNumber(this.speed), 210, 210, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "攻", 180, 260, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "防", 180, 290, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "法", 180, 320, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "速", 180, 350, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, "-", 200, 262, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "-", 200, 292, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "-", 200, 322, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "-", 200, 352, "#000000", core.ui._buildFont(24, true)) + core.fillText(this.right, "攻 " + core.formatBigNumber(this.atk), 30, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "防 " + core.formatBigNumber(this.def), 90, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "法 " + core.formatBigNumber(this.spell), 150, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "速 " + core.formatBigNumber(this.speed), 210, 210, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "攻", 180, 260, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "防", 180, 290, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "法", 180, 320, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "速", 180, 350, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, "-", 200, 262, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "-", 200, 292, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "-", 200, 322, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "-", 200, 352, "#644324", core.ui._buildFont(24, true)) core.setTextAlign(this.right, 'center'); - core.fillText(this.right, core.formatBigNumber(this.atkStep), 230, 260, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, core.formatBigNumber(this.defStep), 230, 290, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, core.formatBigNumber(this.spellStep), 230, 320, "#000000", core.ui._buildFont(12, true)) - core.fillText(this.right, core.formatBigNumber(this.speedStep), 230, 350, "#000000", core.ui._buildFont(12, true)) + core.fillText(this.right, core.formatBigNumber(this.atkStep), 230, 260, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, core.formatBigNumber(this.defStep), 230, 290, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, core.formatBigNumber(this.spellStep), 230, 320, "#644324", core.ui._buildFont(12, true)) + core.fillText(this.right, core.formatBigNumber(this.speedStep), 230, 350, "#644324", core.ui._buildFont(12, true)) core.setTextAlign(this.right, 'left'); - core.fillText(this.right, "+", 250, 263, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "+", 250, 293, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "+", 250, 323, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "+", 250, 353, "#000000", core.ui._buildFont(24, true)) + core.fillText(this.right, "+", 250, 263, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "+", 250, 293, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "+", 250, 323, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "+", 250, 353, "#644324", core.ui._buildFont(24, true)) - core.fillText(this.right, "↑", 265, 265, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "↑", 265, 295, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "↑", 265, 325, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "↑", 265, 355, "#000000", core.ui._buildFont(24, true)) - core.fillText(this.right, "清零", 180, 380, '#000000', core.ui._buildFont(16, true)); + core.fillText(this.right, "↑", 265, 265, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "↑", 265, 295, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "↑", 265, 325, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "↑", 265, 355, "#644324", core.ui._buildFont(24, true)) + core.fillText(this.right, "清零", 180, 380, '#644324', core.ui._buildFont(16, true)); core.setTextAlign(this.right, 'center'); - core.fillText(this.right, "当前战斗情况", 150, 30, "#000000", core.ui._buildFont(16, true)) - core.fillText(this.right, "模拟属性提升", 150, 190, "#000000", core.ui._buildFont(16, true)) - core.fillText(this.right, "模拟属性调整", 230, 233, "#000000", core.ui._buildFont(16, true)) - core.fillText(this.right, "合上书本", 254, 380, '#000000', core.ui._buildFont(16, true)); + core.fillText(this.right, "当前战斗情况", 150, 30, "#644324", core.ui._buildFont(16, true)) + core.fillText(this.right, "模拟属性提升", 150, 190, "#644324", core.ui._buildFont(16, true)) + core.fillText(this.right, "模拟属性调整", 230, 233, "#644324", core.ui._buildFont(16, true)) + core.fillText(this.right, "合上书本", 254, 380, '#644324', core.ui._buildFont(16, true)); }