From de13d41470ef2f125a7e20aa32fbe4c2ac55c610 Mon Sep 17 00:00:00 2001 From: bdf1 Date: Fri, 30 Aug 2024 14:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E8=84=91=E7=AB=AF=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=B1=85=E4=B8=AD=EF=BC=9B=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=83=8C=E6=99=AF=E5=9B=BE=E4=BA=AE=E5=BA=A6?= =?UTF-8?q?=EF=BC=9B=E5=8A=A0=E5=85=A5=E8=AE=A1=E5=88=86=EF=BC=9B=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=83=A8=E5=88=86NPC=EF=BC=9B=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E6=9C=BA=E5=85=B3=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/data.js | 51 +++++++++++++++++- project/floors/BH1.js | 2 +- project/floors/BH20.js | 4 +- project/floors/CZ7.js | 2 +- project/floors/GM7.js | 3 +- project/floors/MJ5.js | 114 ++++++++++++++++++++++++++++++++--------- project/floors/YS8.js | 31 ++++++++++- project/items.js | 53 +++++++++++++++++++ project/plugins.js | 56 +++++++++++++++++--- 9 files changed, 280 insertions(+), 36 deletions(-) diff --git a/project/data.js b/project/data.js index f68625a..4937f5f 100644 --- a/project/data.js +++ b/project/data.js @@ -2264,6 +2264,55 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = ] } ] + }, + { + "id": "itemShop", + "item": true, + "textInList": "道具回收商店", + "use": "money", + "mustEnable": true, + "choices": [ + { + "id": "I710", + "sell": "100" + }, + { + "id": "I711", + "sell": "200" + }, + { + "id": "I712", + "sell": "300" + }, + { + "id": "I713", + "sell": "400" + }, + { + "id": "I714", + "sell": "500" + }, + { + "id": "I415", + "sell": "1000" + }, + { + "id": "I416", + "sell": "2000" + }, + { + "id": "yellowKey", + "sell": "40" + }, + { + "id": "blueKey", + "sell": "120" + }, + { + "id": "redKey", + "sell": "300" + } + ] } ], "levelUp": [ @@ -2363,6 +2412,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "enableRouteFolding": true, "disableShopOnDamage": false, "blurFg": false, - "hideLeftStatusBar": false + "hideLeftStatusBar": true } } \ No newline at end of file diff --git a/project/floors/BH1.js b/project/floors/BH1.js index 0c02b79..b608063 100644 --- a/project/floors/BH1.js +++ b/project/floors/BH1.js @@ -321,7 +321,7 @@ main.floors.BH1= "红宝石增加攻击力\n蓝宝石增加防御力\n绿宝石增加护盾值\n黄宝石增加全属性\n白宝石进行加点\n血红宝石增加生命上限\n粉臻宝石增加魔力值\n各色钥匙对应各色门\n琼浆雨露以及血瓶进行相应的回复生命值" ], "7,1": [ - "商店50次升级一次\n计分方式:" + "商店50次升级一次\n计分方式:攻+防+护盾/6+血限/300\n计分前可以卖掉琼浆玉露和神之血加点。" ] }, "changeFloor": { diff --git a/project/floors/BH20.js b/project/floors/BH20.js index b6bce6c..b86298d 100644 --- a/project/floors/BH20.js +++ b/project/floors/BH20.js @@ -143,7 +143,7 @@ main.floors.BH20= "time": 500, "keep": true }, - "\t[莫析辉,hero]\b[hero]打完希羽后,会自爆,勇者血量会变成一血!!" + "\t[莫析辉,hero]\b[hero]打完希羽后,会自爆,我血量会变成一血!!" ], "eachArrive": [], "parallelDo": "", @@ -191,7 +191,7 @@ main.floors.BH20= "direction": "down" }, "\t[莫析辉,hero]\b[hero]希娜!", - "\t[黑暗圣女,N1161]\b[this,6,11]圣子哥哥,该你啦", + "\t[黑暗圣女,N481]\b[this,6,11]圣子哥哥,该你啦", "\t[莫析辉,hero]\b[hero]哼!", { "type": "moveHero", diff --git a/project/floors/CZ7.js b/project/floors/CZ7.js index 223ee52..1de7204 100644 --- a/project/floors/CZ7.js +++ b/project/floors/CZ7.js @@ -115,7 +115,7 @@ main.floors.CZ7= }, { "type": "setBlock", - "number": "N1152", + "number": "N472", "loc": [ [ 3, diff --git a/project/floors/GM7.js b/project/floors/GM7.js index 8a6e243..1a5a375 100644 --- a/project/floors/GM7.js +++ b/project/floors/GM7.js @@ -555,7 +555,8 @@ main.floors.GM7= ] ], "floorId": "XY7" - } + }, + "提示:前期不建议过快提高圣骑士的亲密度,否则可能属性不足会导致打不过BOSS。" ], "false": [] }, diff --git a/project/floors/MJ5.js b/project/floors/MJ5.js index 3aa9549..aa9abcb 100644 --- a/project/floors/MJ5.js +++ b/project/floors/MJ5.js @@ -52,7 +52,74 @@ main.floors.MJ5= ] } ] - } + }, + "10,8": [ + { + "type": "if", + "condition": "switch:A", + "true": [ + { + "type": "unloadEquip", + "pos": 0 + }, + { + "type": "unloadEquip", + "pos": 1 + }, + { + "type": "unloadEquip", + "pos": 2 + }, + { + "type": "unloadEquip", + "pos": 3 + }, + { + "type": "setValue", + "name": "status:hp", + "value": "status:atk+status:def+status:mdef/6+status:hpmax/300+(flag:shop3)*5000" + }, + { + "type": "if", + "condition": "flag:shengqishi>=90", + "true": [ + { + "type": "win", + "reason": "paladin" + } + ] + }, + { + "type": "if", + "condition": "flag:heianshengzi", + "true": [ + { + "type": "win", + "reason": "the son of darkness" + } + ] + }, + { + "type": "win", + "reason": "saint" + } + ] + }, + "这里可以计分。\n本塔的计分方式是攻击+防御+护盾/6+血限/300。如果买了额外的装备孔则分数+5000。\n圣骑士路线拿到火焰纹章后可以将分数乘以1.2。\n这里可以把神之血和琼浆玉露卖掉,然后在商店加点换取分数。\n钥匙也可以按照商店的原价卖掉。", + "圣骑士结局:\n和圣骑士亲密度>=100\n黑暗圣子结局:\n融合黑暗圣子,和圣骑士亲密度在-1~99之间,和准圣子及圣女亲密度均<5\n光明圣子或光明圣女结局:\n不融合黑暗圣子,和圣骑士亲密度在-1~99之间,准圣子或圣女亲密度>5\n黑暗圣子+光明圣子或光明圣女结局:\n融合黑暗圣子,和圣骑士亲密度在-1~99之间,准圣子或圣女亲密度>5\n孤胆英雄结局:\n不融合黑暗圣子,和圣骑士亲密度在-1~99之间,和准圣子及圣女亲密度均<5\n天命主角结局:\n和圣骑士亲密度<=-2", + "这里由于部分内容还没实装,因此这里圣骑士结局需要圣骑士的亲密度需求为90,且火焰纹章不可能拿到,且准圣子或圣女亲密度视为>5。", + { + "type": "openShop", + "id": "itemShop", + "open": true + }, + "再访问我即计分。通过按V访问快捷商店来再次访问此商店。", + { + "type": "setValue", + "name": "switch:A", + "value": "true" + } + ] }, "changeFloor": { "6,12": { @@ -222,26 +289,6 @@ main.floors.MJ5= }, "1": null }, - "10,7": { - "0": { - "condition": "flag:door_MJ5_10_7==1", - "currentFloor": true, - "priority": 0, - "delayExecute": false, - "multiExecute": false, - "data": [ - { - "type": "openDoor" - }, - { - "type": "setValue", - "name": "flag:door_MJ5_10_7", - "operator": "=", - "value": "null" - } - ] - } - }, "6,2": { "0": { "condition": "flag:door_MJ5_6_2==1", @@ -261,6 +308,27 @@ main.floors.MJ5= } ] } + }, + "8,7": { + "0": { + "condition": "flag:door_MJ5_10_7==1", + "currentFloor": true, + "priority": 0, + "delayExecute": false, + "multiExecute": false, + "data": [ + { + "type": "openDoor" + }, + { + "type": "setValue", + "name": "flag:door_MJ5_10_7", + "operator": "=", + "value": "null" + } + ] + }, + "1": null } }, "cannotMove": {}, @@ -273,8 +341,8 @@ main.floors.MJ5= [ 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4], [ 4, 4, 4, 4, 4,1161,1170,1162, 4, 4, 4, 4, 4], [ 4, 4, 4, 4, 4,1163,1164,1165, 4, 4, 4, 4, 4], - [ 4, 4, 4, 4, 4,1166,1169,1168, 0, 0, 85, 0, 4], - [ 4, 4, 4, 4, 4, 4, 83, 4, 4, 4, 4, 0, 4], + [ 4, 4, 4, 4, 4,1166,1169,1168, 85, 0, 0, 0, 4], + [ 4, 4, 4, 4, 4, 4, 83, 4, 4, 4,1135, 0, 4], [ 4, 4, 4, 4, 4, 4,510, 4, 4, 4, 4, 0, 4], [ 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 0, 4], [ 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4,1095, 4], diff --git a/project/floors/YS8.js b/project/floors/YS8.js index 9d597b7..4f277b9 100644 --- a/project/floors/YS8.js +++ b/project/floors/YS8.js @@ -75,7 +75,36 @@ main.floors.YS8= ] } }, - "beforeBattle": {}, + "beforeBattle": { + "9,4": [ + { + "type": "if", + "condition": "(flag:shengqishi>8)", + "true": [ + { + "type": "setValue", + "name": "flag:door_YS8_10_3", + "operator": "+=", + "value": "1" + } + ] + } + ], + "11,4": [ + { + "type": "if", + "condition": "(flag:shengqishi>8)", + "true": [ + { + "type": "setValue", + "name": "flag:door_YS8_10_3", + "operator": "+=", + "value": "1" + } + ] + } + ] + }, "afterBattle": { "9,4": [ { diff --git a/project/items.js b/project/items.js index 75296cd..78c6879 100644 --- a/project/items.js +++ b/project/items.js @@ -1409,6 +1409,59 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = ] } ] + }, + { + "text": "调整背景图亮度 [${flags._statusbrg_}]", + "color": [ + 127, + 127, + 127, + 1 + ], + "action": [ + { + "type": "choices", + "text": "调整背景图亮度", + "choices": [ + { + "text": "调亮", + "color": [ + 237, + 3, + 120, + 1 + ], + "action": [ + { + "type": "setValue", + "name": "flag:_statusbrg_", + "value": "Math.min(1, flags._statusbrg_+0.05)" + } + ] + }, + { + "text": "调暗", + "color": [ + 233, + 233, + 23, + 1 + ], + "action": [ + { + "type": "setValue", + "name": "flag:_statusbrg_", + "value": "Math.max(0, flags._statusbrg_-0.05)" + } + ] + } + ] + }, + { + "type": "function", + "function": "function(){\ncore.createSpr0()\n}" + } + ] } ] } diff --git a/project/plugins.js b/project/plugins.js index 6cfc401..ba7b8d6 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -199,6 +199,50 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } + core.control.setToolbarButton = function (useButton) { + if (!core.domStyle.showStatusBar) { + // 隐藏状态栏时检查竖屏 + if (!core.domStyle.isVertical && !core.flags.extendToolbar) { + for (var i = 0; i < core.dom.tools.length; ++i) + core.dom.tools[i].style.display = 'none'; + return; + } + if (!core.hasFlag('showToolbox')) return; + else core.dom.tools.hard.style.display = 'block'; + } + + if (useButton == null) useButton = core.domStyle.toolbarBtn; + if ((!core.domStyle.isVertical && !core.flags.extendToolbar)) useButton = false; + core.domStyle.toolbarBtn = useButton; + if (!core.domStyle.isVertical) { + ["book", "fly", "toolbox", "keyboard", "shop", "save", "load", "settings"].forEach(function (t) { + core.statusBar.image[t].style.display = 'none'; + }); + ["btn1", "btn2", "btn3", "btn4", "btn5", "btn6", "btn7", "btn8"].forEach(function (t) { + core.statusBar.image[t].style.display = 'none'; + }) + core.statusBar.hard.style.display = 'none'; + } else + if (useButton) { + ["book", "fly", "toolbox", "keyboard", "shop", "save", "load", "settings"].forEach(function (t) { + core.statusBar.image[t].style.display = 'none'; + }); + ["btn1", "btn2", "btn3", "btn4", "btn5", "btn6", "btn7", "btn8"].forEach(function (t) { + core.statusBar.image[t].style.display = 'block'; + }) + main.statusBar.image.btn8.style.filter = core.getLocalStorage('altKey') ? 'sepia(1) contrast(1.5)' : ''; + core.statusBar.hard.style.display = 'block'; + } else { + ["btn1", "btn2", "btn3", "btn4", "btn5", "btn6", "btn7", "btn8"].forEach(function (t) { + core.statusBar.image[t].style.display = 'none'; + }); + ["book", "fly", "toolbox", "save", "load", "settings"].forEach(function (t) { + core.statusBar.image[t].style.display = 'block'; + }); + core.statusBar.image.keyboard.style.display = core.statusBar.image.shop.style.display = core.domStyle.isVertical || core.flags.extendToolbar ? "block" : "none"; + core.statusBar.hard.style.display = 'block'; + } + } }, "drawLight": function () { @@ -2953,11 +2997,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } if (core.getSprite('Spr0') && des) { core.getSprite('Spr0').destroy(); - const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr0'); + const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr0'); } else if (core.getSprite('Spr0')) { core.clearMap(core.getSprite('Spr0').context); - } else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr0'); } + } else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr0'); } var ctx = core.getSprite('Spr0').context; @@ -3048,11 +3092,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } if (core.getSprite('Spr1') && des) { core.getSprite('Spr1').destroy(); - const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 12, 'window', 'Spr1'); + const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 12, 'window', 'Spr1'); } else if (core.getSprite('Spr1')) { core.clearMap(core.getSprite('Spr1').context); - } else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 12, 'window', 'Spr1'); } + } else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 12, 'window', 'Spr1'); } var ctx = core.getSprite('Spr1').context; @@ -3236,11 +3280,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } if (core.getSprite('Spr2') && des) { core.getSprite('Spr2').destroy(); - const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr2'); + const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr2'); } else if (core.getSprite('Spr2')) { core.clearMap(core.getSprite('Spr2').context); - } else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 - 129 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr2'); } + } else { const sprite = new Sprite(core.domStyle.isVertical ? 0 : Math.floor(left - (16 + 172 - 0) * core.domStyle.scale), Math.floor(top_up - (64 + 0) * core.domStyle.scale), width, height, 10, 'window', 'Spr2'); } var ctx = core.getSprite('Spr2').context;