From 1b1a39d5469e3da0e1ddac53be0b4b41529e910b Mon Sep 17 00:00:00 2001 From: bdf1 Date: Sun, 25 Aug 2024 17:30:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=B8=80=E7=B3=BB=E5=88=97bu?= =?UTF-8?q?g=EF=BC=8C=E5=8A=A0=E5=85=A5=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E5=92=8C=E5=88=87=E6=8D=A2=E6=A5=BC=E5=B1=82=E8=BE=B9?= =?UTF-8?q?=E6=A1=86=E9=97=AE=E9=A2=98=20=E6=8B=BF=E5=88=B0=E6=96=B0?= =?UTF-8?q?=E8=A3=85=E5=A4=87=E6=97=B6=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E6=9C=80=E4=BC=98=E8=A3=85=E5=A4=87=20=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E6=9C=80=E9=AB=98=E9=9A=BE=E5=BA=A6=E7=A6=81=E6=AD=A2=E7=A5=9E?= =?UTF-8?q?=E4=B9=8B=E8=A1=80=E7=90=BC=E6=B5=86=E7=8E=89=E9=9C=B2=20?= =?UTF-8?q?=E8=9E=8D=E5=90=88=E5=9C=A3=E5=AD=90=E9=99=8D=E4=BD=8E=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E4=BB=8E1=E4=B8=87=E5=8F=98=E6=88=9010=E4=B8=87=20?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=A0=8F=E5=A2=9E=E5=8A=A0=E9=BB=91=E7=99=BD?= =?UTF-8?q?=E9=92=A5=E5=8C=99=E6=98=BE=E7=A4=BA=20=E4=B8=9C=E5=87=8C?= =?UTF-8?q?=E5=B8=9D=E5=9B=BD=E5=8C=BA=E8=A1=80=E7=93=B6=E8=A1=80=E9=87=8F?= =?UTF-8?q?=E5=87=8F=E5=8D=8A=EF=BC=8C=E5=9B=A0=E4=B8=BA=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E6=80=AA=E7=89=A9=E8=A1=80=E9=87=8F=E5=87=8F=E5=8D=8A=20?= =?UTF-8?q?=E5=85=89=E6=98=8E=E5=B9=BF=E5=9C=BA=E5=8A=A0=E5=85=A5=E5=8F=A6?= =?UTF-8?q?=E4=B8=80=E7=A7=8D=E5=9C=B0=E6=9D=BF=E8=A1=A8=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=8E=BB=E7=9A=84=E5=9C=B0=E6=96=B9=20=E8=AE=A1?= =?UTF-8?q?=E5=88=86=E6=9A=82=E6=97=B6=E7=94=A8=E6=94=BB=E9=98=B2=E5=92=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/enemys.js | 2 +- project/floors/CZ4.js | 2 +- project/floors/DL4.js | 18 ++++++------ project/floors/DL5.js | 10 +++---- project/floors/DL6.js | 8 +++--- project/floors/DL7.js | 16 +++++------ project/floors/DL8.js | 10 +++---- project/floors/DL9.js | 12 ++++---- project/floors/GM1.js | 10 +++---- project/floors/HA11.js | 7 ++++- project/floors/HA18.js | 25 +++++++++++++++-- project/floors/XW7.js | 4 +-- project/functions.js | 2 +- project/items.js | 54 +++++++++++++++++++++++------------- project/maps.js | 2 +- project/plugins.js | 62 +++++++++++++++++++++++++++++++----------- styles.css | 6 ++-- 17 files changed, 161 insertions(+), 89 deletions(-) diff --git a/project/enemys.js b/project/enemys.js index 62458da..ec97102 100644 --- a/project/enemys.js +++ b/project/enemys.js @@ -563,7 +563,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 = "E1024": {"name":"阴暗魔","hp":2000000,"atk":350000,"def":90000,"money":420,"exp":0,"point":0,"special":[36],"level":"五阶无上","X":60}, "E1025": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E1027": {"name":"考核法师","hp":10400,"atk":840,"def":325,"money":150,"exp":0,"point":0,"special":[30],"level":"地品初阶","notBomb":true,"displayIdInBook":null,"beforeBattle":[{"type":"if","condition":"(flag:shengqishi>=8)","true":[{"type":"animate","name":"sword"},{"type":"setBlock","number":"N472"},"\t[${flag:shengqishi_name},N472]\b[this]考你麻痹!圣子殿下也是你能考的?","\t[考核法师,E1027]哎呦……圣子殿下,你不讲武德!","\t[${flag:shengqishi_name},N472]\b[this]连我都打不过,还考圣子殿下?还不快把通关奖励拿出来!","\t[考核法师,E1027]可恶的小子,你给我等着,我定要让教皇陛下做主!",{"type":"setBlock","number":"I612","loc":[[4,7]]},{"type":"setBlock","number":"I416","loc":[[8,7]]},{"type":"setBlock","number":"I625","loc":[[6,3]]},"考核法师逃跑了!","\t[${flag:shengqishi_name},N472]\b[this]嘿嘿,圣子殿下,看我的鬼手掏了多少?","金币+300",{"type":"setValue","name":"status:money","operator":"+=","value":"300"},"\t[莫析辉,hero]\b[hero]不错,不过下次可别这样了。","\t[${flag:shengqishi_name},N472]\b[this]知道啦!嘿嘿。","考核法师又回来了。","\t[${flag:shengqishi_name},N472]\b[this]你还来干嘛?","\t[考核法师,E1027]哼,教皇陛下准备让圣子殿下、圣女殿下、准圣子殿下进入隐世学院交流。","\t[莫析辉,hero]\b[hero]隐世学院?","\t[考核法师,E1027]回圣子殿下,隐世学院是一个不逊于光明学院的学院,只是常年隐居,很少有人知道罢了。但是很多强大势力的少主都送到隐世学院交流,教皇陛下有意让你们三人前去交流……emmm,${flag:shengqishi_name},你也可以去。","\t[莫析辉,hero]\b[hero]好吧。那我们去就是了,入口在哪里?","\t[考核法师,E1027]在光明学院6,有一个传送阵,圣子殿下赶快启程吧!",{"type":"hide","remove":true}],"false":[]}],"value30_1":2000,"value30_2":40}, - "E1028": {"name":"提灯幽灵","hp":12000,"atk":550,"def":340,"money":200,"exp":0,"point":0,"special":[6,30],"level":"地品初阶","notBomb":true,"n":5,"value30_1":3000,"value30_2":20}, + "E1028": {"name":"提灯幽灵","hp":12000,"atk":550,"def":340,"money":200,"exp":0,"point":0,"special":[6,30],"level":"地品初阶","notBomb":true,"n":5,"value30_1":2000,"value30_2":20}, "E1029": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E1030": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E1031": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, diff --git a/project/floors/CZ4.js b/project/floors/CZ4.js index 3e12836..ee40acb 100644 --- a/project/floors/CZ4.js +++ b/project/floors/CZ4.js @@ -22,7 +22,7 @@ main.floors.CZ4= "4,6": [ "\t[沂蒙贤,N570]\b[this,4,6]圣子啊,你知道白宝石应该怎么用吗", "\t[光明圣子,hero]\b[hero]不知道唉,还请三长老指点", - "\t[沂蒙贤,N570]\b[this,4,6]一定要用白宝石多加生命值,这样才最划算", + "\t[沂蒙贤,N570]\b[this,4,6]一定要用白宝石多加攻击力,这样才最划算", "\t[光明圣子,hero]\b[hero]是", { "type": "hide", diff --git a/project/floors/DL4.js b/project/floors/DL4.js index 234335d..a0d10cf 100644 --- a/project/floors/DL4.js +++ b/project/floors/DL4.js @@ -58,17 +58,17 @@ main.floors.DL4= "cannotMoveIn": {}, "map": [ [109,109,109,109,109,109,109,109,109,109,109,109,109], - [109,777, 81, 0, 0, 81,614,109,685, 28, 22,778,109], + [109,777, 81, 0, 0, 81,614,109,684, 28, 22,778,109], [109, 0,109,780,780,109, 0,109,109,109,109, 81,109], - [109,684,109,684,684,109,778, 81,777,684,684,684,109], - [109, 81,109,684,684,109, 0,109,109,109,109,109,109], - [109,778,109,109,109,109, 29,109, 0, 0,781,684,109], - [ 92, 21,779,685,342,779, 0,109, 27, 28,109, 0,109], - [109,109,109,109,109,109,778,109,685,344,109,777,109], - [109,684, 0, 0,778,684, 0,109,109,109,109, 81,109], - [109,109, 82,109,109, 0,777, 81,780, 21,684, 21,109], + [109,683,109,683,683,109,778, 81,777,683,683,683,109], + [109, 81,109,683,683,109, 0,109,109,109,109,109,109], + [109,778,109,109,109,109, 29,109, 0, 0,781,683,109], + [ 92, 21,779,684,342,779, 0,109, 27, 28,109, 0,109], + [109,109,109,109,109,109,778,109,684,344,109,777,109], + [109,683, 0, 0,778,683, 0,109,109,109,109, 81,109], + [109,109, 82,109,109, 0,777, 81,780, 21,683, 21,109], [109, 0,779, 0,109,109,481,109,109,109,109,109,109], - [109, 27, 0, 30,109,686, 0, 21, 82,685,685,685,109], + [109, 27, 0, 30,109,685, 0, 21, 82,684,684,684,109], [109,109,109,109,109,109, 91,109,109,109,109,109,109] ], "bgmap": [ diff --git a/project/floors/DL5.js b/project/floors/DL5.js index b19a85f..a55431f 100644 --- a/project/floors/DL5.js +++ b/project/floors/DL5.js @@ -43,15 +43,15 @@ main.floors.DL5= "map": [ [109,109,109,109,109,109,109,109,109,109,109,109,109], [109,109,109,109,109,109,109,109,109,109,109,109,109], - [109,109,684, 0, 81,777, 0, 21, 0,780, 27,109,109], + [109,109,683, 0, 81,777, 0, 21, 0,780, 27,109,109], [109,109, 0,109,109,109,109,109,777,109, 0,109,109], [109,109,778,109, 21, 21, 21,109, 0,109,779,109,109], - [109,109, 81,109, 21,780, 21,109,684, 81, 0,109,109], + [109,109, 81,109, 21,780, 21,109,683, 81, 0,109,109], [ 94, 0, 0,109,109,1076,109,109, 29,109, 0,614, 94], - [109,109,777, 0, 28, 0,779, 0,684, 0,780,109,109], + [109,109,777, 0, 28, 0,779, 0,683, 0,780,109,109], [109,109,109,109,109,777,109, 81,109,109, 21,109,109], - [109,109,703, 30,109, 0,109,779,685,109, 21,109,109], - [109,109,685,781, 81,614,109,685,685,109, 21,109,109], + [109,109,703, 30,109, 0,109,779,684,109, 21,109,109], + [109,109,684,781, 81,614,109,684,684,109, 21,109,109], [109,109,109,109,109,109,109,109,109,109,109,109,109], [109,109,109,109,109,109,109,109,109,109,109,109,109] ], diff --git a/project/floors/DL6.js b/project/floors/DL6.js index 1a0f91d..2b61999 100644 --- a/project/floors/DL6.js +++ b/project/floors/DL6.js @@ -93,16 +93,16 @@ main.floors.DL6= "map": [ [109,109,109,109,109,109,109,109,109,109,109,109,109], [109,109,109,109,109,109,109,109,109,109,109,109,109], - [109,109, 28,779, 81,684,109,613,613,109,109,109,109], - [109,109,686, 29,109, 0, 81,781,613,109,109,109,109], + [109,109, 28,779, 81,683,109,613,613,109,109,109,109], + [109,109,685, 29,109, 0, 81,781,613,109,109,109,109], [109,109,109,109,109,780,109,109,109,109,109,109,109], - [109,109,684, 27, 0, 0,778, 0,684,109,109,109,109], + [109,109,683, 27, 0, 0,778, 0,683,109,109,109,109], [109,109,109,109,109,109,1077,109, 0,777, 81, 0, 92], [109,109,10110,782,1077,109,777,109, 81,109,109,109,109], [109,109,109,109,1077,109, 0,109,778,109,344,109,109], [109,109,604,109,1077,109, 21,109, 0, 82,781,109,109], [109,109,604,779, 0, 83, 0,109, 29,109,698,109,109], - [109,109,604,109, 21,109,778,109,685,109, 27,109,109], + [109,109,604,109, 21,109,778,109,684,109, 27,109,109], [109,109,109,109,109,109, 93,109,109,109,109,109,109] ], "bgmap": [ diff --git a/project/floors/DL7.js b/project/floors/DL7.js index af58d8d..2bc2676 100644 --- a/project/floors/DL7.js +++ b/project/floors/DL7.js @@ -90,17 +90,17 @@ main.floors.DL7= "cannotMoveIn": {}, "map": [ [109,109,109,109,109,109, 91,109,109,109,109,109,109], - [109,615,685,109,685,109, 0,109, 0, 21,701,604,109], + [109,615,684,109,684,109, 0,109, 0, 21,701,604,109], [109,781,109,109, 28,109, 21,109,781,109,109,109,109], - [109, 0,778, 0, 29,109, 0,109, 0,109, 27,685,109], - [109, 81,109,109,109,109,468,109,684,109,782, 28,109], - [109, 0,684, 0,779, 82, 0,109, 0,109, 81,109,109], + [109, 0,778, 0, 29,109, 0,109, 0,109, 27,684,109], + [109, 81,109,109,109,109,468,109,683,109,782, 28,109], + [109, 0,683, 0,779, 82, 0,109, 0,109, 81,109,109], [109, 81,109,109,109,109, 0, 81,779, 0, 0, 29,109], [109, 0,782, 27, 30,109, 0,109,109,109,109,109,109], - [109,779,109,109,109,109, 0, 81,777, 0,109,685,109], - [109, 21,109,684, 0,109,541,109,109,778,109, 28,109], - [109,614,109,684,780, 81,684,109, 0, 29,109,614,109], - [109,685,109,684, 0,109, 0,109,684, 0, 81,779,109], + [109,779,109,109,109,109, 0, 81,777, 0,109,684,109], + [109, 21,109,683, 0,109,541,109,109,778,109, 28,109], + [109,614,109,683,780, 81,683,109, 0, 29,109,614,109], + [109,684,109,683, 0,109, 0,109,683, 0, 81,779,109], [109,109,109,109,109,109, 91,109,109,109,109,109,109] ], "bgmap": [ diff --git a/project/floors/DL8.js b/project/floors/DL8.js index e79458d..66bd469 100644 --- a/project/floors/DL8.js +++ b/project/floors/DL8.js @@ -42,17 +42,17 @@ main.floors.DL8= "cannotMoveIn": {}, "map": [ [109,109,109,109,109,109, 93,109,109,109,109,109,109], - [109, 21, 21,109,685,109, 0,109,614,109,685, 0,109], + [109, 21, 21,109,684,109, 0,109,614,109,684, 0,109], [109,50049,777,109,614,109,778,109, 29,781, 0,780,109], [109, 0, 27, 81,779,109, 0,109, 0,109,109, 81,109], - [109,778, 0,109,700,109, 21,109,778, 0,684, 0,109], + [109,778, 0,109,700,109, 21,109,778, 0,683, 0,109], [109, 81,109,109,109,109,1077,109, 81,109,109,779,109], - [109, 0,684, 0,780, 82,777, 81, 0,780, 0, 29,109], + [109, 0,683, 0,780, 82,777, 81, 0,780, 0, 29,109], [109, 81,109,109,109,109, 0,109,109,109,109, 82,109], - [109,780, 0,109, 28,109,684,109, 0, 21, 0,779,109], + [109,780, 0,109, 28,109,683,109, 0, 21, 0,779,109], [109, 0, 29,109, 27,109, 0,109,779,109,109,109,109], [109,109,781, 81,782,109,778,109, 0, 81,782, 27,109], - [109,684,684,109,700,109, 0,109,685,109, 30,685,109], + [109,683,683,109,700,109, 0,109,684,109, 30,684,109], [109,109,109,109,109,109, 93,109,109,109,109,109,109] ], "bgmap": [ diff --git a/project/floors/DL9.js b/project/floors/DL9.js index 3900818..aca61b0 100644 --- a/project/floors/DL9.js +++ b/project/floors/DL9.js @@ -44,17 +44,17 @@ main.floors.DL9= "cannotMoveIn": {}, "map": [ [109,109,109,109,109,109, 91,109,109,109,109,109,109], - [109,684,685,109, 21,782, 85, 0, 81,782,109,604,109], + [109,683,684,109, 21,782, 85, 0, 81,782,109,604,109], [109, 21, 29,109,342, 21,109, 0,109, 21,109,604,109], [109, 27, 28,109,109,109,109,781,109, 30,109,604,109], - [109,781, 0,109,779, 0,684, 0,109, 21,109,779,109], + [109,781, 0,109,779, 0,683, 0,109, 21,109,779,109], [109, 81,109,109, 81,109,109,109,109,109,109, 81,109], - [109,779, 0,685, 0,1077,781, 0,614, 0,779, 0,109], + [109,779, 0,684, 0,1077,781, 0,614, 0,779, 0,109], [109, 0,109,109, 82,109, 0,109,109,109,109, 81,109], - [109, 21,109,613,613,109, 29,109,711,109,685,779,109], - [109, 0,109,613,613,109, 0, 81,711,109,685,685,109], + [109, 21,109,613,613,109, 29,109,711,109,684,779,109], + [109, 0,109,613,613,109, 0, 81,711,109,684,684,109], [109,781,109,109,1077,109,779,109,109,109,109,109,109], - [109, 0, 29, 29, 29,109, 0, 81,781,684,684,684,109], + [109, 0, 29, 29, 29,109, 0, 81,781,683,683,683,109], [109,109,109,109,109,109, 91,109,109,109,109,109,109] ], "bgmap": [ diff --git a/project/floors/GM1.js b/project/floors/GM1.js index 0c565bf..b91633b 100644 --- a/project/floors/GM1.js +++ b/project/floors/GM1.js @@ -409,17 +409,17 @@ main.floors.GM1= "cannotMoveIn": {}, "map": [ [50049,50049,50049, 91,50049,50049, 91,50049,50049, 91,50049,50049,50049], - [50049, 0,442, 0,441,442, 0,441,442, 0,441, 0,50049], + [50049, 0,442,30204,441,442, 0,441,442,30204,441, 0,50049], [50049, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,50049], - [ 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94], + [ 92,30204, 0, 0, 0, 0, 0, 0, 0, 0, 0,30204, 94], [50049, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,50049], [50049,440, 0, 0, 0, 0, 0, 0, 0, 0, 0,440,50049], - [ 92, 0, 0, 0, 0,30360,30361,30362, 0, 0, 0, 0, 94], + [ 92,30204, 0, 0, 0,30360,30361,30362, 0, 0, 0,30204, 94], [50049,443, 0, 0,578, 0, 0,582, 0, 0, 0,443,50049], [50049, 0, 0, 0, 0,566,550, 0, 0, 0, 0, 0,50049], - [ 92, 0, 0, 0, 0, 0,549, 0, 0, 0, 0, 0, 94], + [ 92,30204, 0, 0, 0, 0,549, 0, 0, 0, 0,30204, 94], [50049, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,50049], - [50049, 0,442, 0,441,442, 0,441,442, 0,441, 0,50049], + [50049, 0,442,30204,441,442,30204,441,442,30204,441, 0,50049], [50049,50049,50049, 93,50049,50049, 93,50049,50049, 93,50049,50049,50049] ], "bgmap": [ diff --git a/project/floors/HA11.js b/project/floors/HA11.js index 245babc..33ef699 100644 --- a/project/floors/HA11.js +++ b/project/floors/HA11.js @@ -284,7 +284,12 @@ main.floors.HA11= 12, 6 ], - "color": null, + "color": [ + 0, + 0, + 0, + 0.5 + ], "bg2map": [ ], diff --git a/project/floors/HA18.js b/project/floors/HA18.js index ad7a3ed..31b754f 100644 --- a/project/floors/HA18.js +++ b/project/floors/HA18.js @@ -26,9 +26,30 @@ main.floors.HA18= { "text": "是", "action": [ + { + "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" + }, { "type": "win", - "reason": "圣骑士" + "reason": "" } ] }, @@ -80,7 +101,7 @@ main.floors.HA18= [ 92,877,140166,140166,140166,140166,140166, 81,140166,140166, 0,1022, 92], [140166, 0, 0, 22,140166,688, 0,737, 0, 0, 21, 0,140166], [1095,140166, 82,140166,140166,140166,140166,140166, 82,140166,140166,140166,140166], - [ 92,1077,1024, 0,349,687,140166, 0,737, 0,618,687,140166], + [104,1077,1024, 0,349,687,140166, 0,737, 0,618,687,140166], [1095,140166, 81,140166,140166,140166,140166, 81,140166, 81,140166,140166,140166], [140166,688, 0, 0, 21, 0,1024, 0,140166,852, 22,687,140166], [140166,140166,140166,140166,140166,140166,140166,140166,140166,140166,140166,140166,140166] diff --git a/project/floors/XW7.js b/project/floors/XW7.js index b181ad8..e5fa7ad 100644 --- a/project/floors/XW7.js +++ b/project/floors/XW7.js @@ -109,8 +109,8 @@ main.floors.XW7= [144, 0,144,1021,144, 0,144, 81,144, 81,144,1077,737], [144, 0,144,1023,144,737,144, 0, 21, 0,1022, 0, 0], [144, 21,144,1021,144, 81,144,1024,144,144,144,144,144], - [144,1118,144, 0,144, 0,144,1077, 0, 0,852, 0,144], - [144, 21,144, 81,144, 21, 0, 0,144,144, 82,144,144], + [144, 21,144, 0,144, 0,144,1077, 0, 0,852, 0,144], + [144,1118,144, 81,144, 21, 0, 0,144,144, 82,144,144], [144,144,144, 0,1022, 0, 0, 0,144, 0,356, 0,144], [144, 94, 0, 0,1077,688, 0,486,144,687, 0,687,144], [144,144,144,144,144,144,144,144,144,144,144,144,144] diff --git a/project/functions.js b/project/functions.js index 23a89b8..7b77eef 100644 --- a/project/functions.js +++ b/project/functions.js @@ -505,7 +505,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = core.playSound('宝石') else core.playSound('获得道具'); - + if (core.material.items[itemId].cls == 'equips' || itemId == 'I715') core.plugin.calcEquip(); var todo = []; // 检查该点的获得道具后事件。 if (core.status.floorId == null) return; diff --git a/project/items.js b/project/items.js index 4e2d505..830ceed 100644 --- a/project/items.js +++ b/project/items.js @@ -1111,7 +1111,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "I415": { "cls": "tools", "name": "琼浆", - "canUseItemEffect": "true", + "canUseItemEffect": "core.status.hero.flags.hard<=3", "text": "喝下后回复50%生命值", "useItemEvent": [ { @@ -1122,14 +1122,14 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "type": "setValue", "name": "status:hp", "operator": "+=", - "value": "(status:hpmax*0.5)" + "value": "(status:hpmax*0.5)*(flags.hard==1?2:1)" } ] }, "I416": { "cls": "tools", "name": "玉露", - "canUseItemEffect": "true", + "canUseItemEffect": "core.status.hero.flags.hard<=3", "text": "喝下后恢复100%生命值", "useItemEvent": [ { @@ -1141,6 +1141,18 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "name": "status:hp", "operator": "+=", "value": "(status:hpmax)" + }, + { + "type": "if", + "condition": "flag:hard==1", + "true": [ + { + "type": "setValue", + "name": "item:I415", + "operator": "+=", + "value": "1" + } + ] } ] }, @@ -1366,6 +1378,10 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = ], "action": [ "自动计算最优装备已打开!", + { + "type": "function", + "function": "function(){\ncore.plugin.calcEquip()\n}" + }, { "type": "setValue", "name": "flag:bestEquip", @@ -2549,13 +2565,13 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "type": "setValue", "name": "status:hp", "operator": "+=", - "value": "flag:input*(status:hpmax*0.05)" + "value": "flag:input*(status:hpmax*0.05)*(flags.hard==1?2:1)" }, { "type": "playSound", "name": "回血" }, - "成功使用${flag:input}次初阶神之血,恢复${flag:input*(status:hpmax*0.05)}点生命。" + "成功使用${flag:input}次初阶神之血,恢复${flag:input*(status:hpmax*0.05)*(flags.hard==1?2:1)}点生命。" ], "false": [ { @@ -2566,7 +2582,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = ] } ], - "canUseItemEffect": "true" + "canUseItemEffect": "core.status.hero.flags.hard<=3" }, "I711": { "cls": "tools", @@ -2607,13 +2623,13 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "type": "setValue", "name": "status:hp", "operator": "+=", - "value": "flag:input*(status:hpmax*0.1)" + "value": "flag:input*(status:hpmax*0.1)*(flags.hard==1?2:1)" }, { "type": "playSound", "name": "回血" }, - "成功使用${flag:input}次进阶神之血,恢复${flag:input*(status:hpmax*0.1)}点生命。" + "成功使用${flag:input}次进阶神之血,恢复${flag:input*(status:hpmax*0.1)*(flags.hard==1?2:1)}点生命。" ], "false": [ { @@ -2624,7 +2640,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = ] } ], - "canUseItemEffect": "true" + "canUseItemEffect": "core.status.hero.flags.hard<=3" }, "I712": { "cls": "tools", @@ -2665,13 +2681,13 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "type": "setValue", "name": "status:hp", "operator": "+=", - "value": "flag:input*(status:hpmax*0.15)" + "value": "flag:input*(status:hpmax*0.15)*(flags.hard==1?2:1)" }, { "type": "playSound", "name": "回血" }, - "成功使用${flag:input}次中阶神之血,恢复${flag:input*(status:hpmax*0.15)}点生命。" + "成功使用${flag:input}次中阶神之血,恢复${flag:input*(status:hpmax*0.15)*(flags.hard==1?2:1)}点生命。" ], "false": [ { @@ -2682,7 +2698,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = ] } ], - "canUseItemEffect": "true" + "canUseItemEffect": "core.status.hero.flags.hard<=3" }, "I713": { "cls": "tools", @@ -2723,13 +2739,13 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "type": "setValue", "name": "status:hp", "operator": "+=", - "value": "flag:input*(status:hpmax*0.2)" + "value": "flag:input*(status:hpmax*0.2)*(flags.hard==1?2:1)" }, { "type": "playSound", "name": "回血" }, - "成功使用${flag:input}次高阶神之血,恢复${flag:input*(status:hpmax*0.2)}点生命。" + "成功使用${flag:input}次高阶神之血,恢复${flag:input*(status:hpmax*0.2)*(flags.hard==1?2:1)}点生命。" ], "false": [ { @@ -2740,12 +2756,12 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = ] } ], - "canUseItemEffect": "true" + "canUseItemEffect": "core.status.hero.flags.hard<=3" }, "I714": { "cls": "tools", "name": "超阶神之血", - "canUseItemEffect": "true", + "canUseItemEffect": "core.status.hero.flags.hard<=3", "text": "喝下后回复25%生命值", "useItemEvent": [ { @@ -2756,7 +2772,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "type": "setValue", "name": "status:hp", "operator": "+=", - "value": "(status:hpmax*0.25)" + "value": "(status:hpmax*0.25)*(flags.hard==1?2:1)" } ] }, @@ -3223,9 +3239,9 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "cls": "items", "name": "黑暗血瓶", "text": ",生命翻倍", - "itemEffect": "core.status.hero.hp *= 2", + "itemEffect": "core.status.hero.hp += Math.min(core.status.hero.hp, core.getRealStatus('hpmax') - core.status.hero.hp)", "itemEffectTip": ",生命翻倍", - "useItemEffect": "core.status.hero.hp *= 2", + "useItemEffect": "core.status.hero.hp += Math.min(core.status.hero.hp, core.getRealStatus('hpmax') - core.status.hero.hp)", "canUseItemEffect": "true" } } \ No newline at end of file diff --git a/project/maps.js b/project/maps.js index 7b44f64..613542a 100644 --- a/project/maps.js +++ b/project/maps.js @@ -1023,7 +1023,7 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e = "1121": {"cls":"enemy48","id":"E1121"}, "1122": {"cls":"enemy48","id":"E1122"}, "1123": {"cls":"npcs","id":"N1123"}, - "1124": {"cls":"npc48","id":"N1124","event":[{"type":"confirm","text":"确认要跳过剧情吗?","yes":[{"type":"choices","text":"\t[墨奈,N1124]选择炼化黑暗圣子或者融合在一起","choices":[{"text":"炼化(全属性+10000,生命上限+1000000)","action":["\t[莫析辉,hero]\b[hero]好叭,既如此,那我只能将你炼化了……","\t[墨奈,N1124]\b[this]啊啊啊啊啊!!!!",{"type":"setValue","name":"status:atk","operator":"+=","value":"10000"},{"type":"setValue","name":"status:def","operator":"+=","value":"10000"},{"type":"setValue","name":"status:mdef","operator":"+=","value":"10000"},{"type":"setValue","name":"status:hpmax","operator":"+=","value":"1000000"},{"type":"hide","remove":true}]},{"text":"融合(全属性-100000)","action":["\t[莫析辉,hero]\b[hero]不!另一个我,我已经将你抛弃了一次,我是决不能再抛弃你一次了!","\t[莫析辉,hero]\b[hero]光明与黑暗并存,光明与黑暗的力量相生相惜,我不会再次抛弃黑暗中的自己,我不畏惧变弱,回到我身边吧,另一个我!","\t[墨奈,N1124]\b[this]好。谢谢你",{"type":"setValue","name":"status:atk","operator":"-=","value":"100000"},{"type":"setValue","name":"status:def","operator":"-=","value":"100000"},{"type":"setValue","name":"status:mdef","operator":"-=","value":"100000"},{"type":"setValue","name":"flag:heianshengzi","value":"1"},{"type":"setEnemy","id":"E877","name":"special","value":"0"},{"type":"hide","loc":[[6,9]],"floorId":"HA20","remove":true},{"type":"hide","remove":true}]}]}],"no":["\t[莫析辉,hero]\b[hero]墨奈!!!!","\t[墨奈,N1124]\b[this]啊,莫析辉!","\t[莫析辉,hero]\b[hero]墨奈,你居然还活着","\t[墨奈,N1124]\b[this]不,我已经死了。不过我的灵魂没有消失……","\t[莫析辉,hero]\b[hero]那可真是有趣,你活的好好的,反而装死来引起黑暗神殿对光明神殿的不满……","\t[墨奈,N1124]\b[this]我是被黑暗圣女黛莫琳杀死的","\t[莫析辉,hero]\b[hero]你继续编","\t[墨奈,N1124]\b[this]我没必要骗你,你这个蠢货!你都不相信我!","\t[莫析辉,hero]\b[hero]我为什么要相信你?","\t[墨奈,N1124]\b[this]哼,你难道对我们相貌相同没有一点疑虑吗","\t[莫析辉,hero]\b[hero]你不会要说,我们是孪生兄弟什么的吧,哈哈","\t[墨奈,N1124]\b[this]\r[red]不,我们本来就是一个人\r[]","\t[莫析辉,hero]\b[hero]什么!","\t[墨奈,N1124]\b[this]十几年前,你出生了。你比光明圣女还有另一个光明圣子的天赋强,但是你比她小了几岁……即便你的天赋更强,想要超过他们也很难","\t[墨奈,N1124]\b[this]你的父亲,想到了\r[red]阴阳分离大法\r[],将你身上的黑暗属性全部抽离…于是,便有了我…这些,你难道忘了!","\t[莫析辉,hero]\b[hero]这……怎么会……你怎么会知道的","\t[墨奈,N1124]\b[this]莫析辉!不,我应该称呼你为“本体”,你为什么要抛弃我!","\t[莫析辉,hero]\b[hero]啊……怎么会……我没有一点印象……","\t[墨奈,N1124]\b[this]我被黑暗神殿的长老捡到,带回了黑暗神殿,黑暗神殿的教皇和长老们对我关怀备至","\t[墨奈,N1124]\b[this]当然,不止如此!我更是被黑暗之神眷顾,至于为什么,我也不知道","\t[墨奈,N1124]\b[this]黑暗之神眷顾、教皇和众长老的偏爱,让黑暗圣女黛莫琳永远只能成为我的陪衬,她终于忍不住了","\t[墨奈,N1124]\b[this]虽然我受到这么大的眷顾,但我一直害怕一个人……那就是你!我的本体!只要你死了,我的一切都没有意义……我恨你将我抛弃。我很早以前就知道自己是一个残魂了……一番打探,我知道自己出生在东凌帝国,当我经过东凌帝国时,很快便感受到了,你便是我的本体。","\t[墨奈,N1124]\b[this]我要报复你,谁让你抛弃了我,于是我对光明神殿进行了挑衅,没想到你如此弱,我正好抓住你做实验,想看看我能不能摆脱本体而存活,可惜,我实验多日,一旦你遇到危险,我心中也会有危机感起来,最终只能放过你……更没想到黛莫琳乘机对我下手","\t[莫析辉,hero]\b[hero]对不起……","\t[墨奈,N1124]\b[this]你为什么要抛弃我!","\t[莫析辉,hero]\b[hero]说实话,我也不知道这件事,真的,如你所说,我是不到几岁就成为了光明圣子,而你则是在我成为光明圣子之前被剥离了出去……","\t[莫析辉,hero]\b[hero]我实在是不知道……如果不是林霄找我的话……","\t[墨奈,N1124]\b[this]林霄……唉,终究是我欠他的……",{"type":"vibrate","direction":"diagonal1","time":2000,"speed":10,"power":10},"\t[墨奈,N1124]\b[this]啊!","\t[莫析辉,hero]\b[hero]你怎么了!","\t[墨奈,N1124]\b[this]我快不行了……","\t[莫析辉,hero]\b[hero]怎么会……","\t[墨奈,N1124]\b[this]我被黛莫琳杀死,好在本体还在,所以我的灵魂没有立即消散","\t[墨奈,N1124]但是……你刚刚破解了藏灵术……我的灵魂再也无法得到蕴养了……只怕是要消散了","\t[莫析辉,hero]你不要急,如果我们是一体,我可以用\r[red]阴阳分离大法\r[]将你重新融合一体","\t[墨奈,N1124]不,我是你身上剥离的黑暗属性,我们融合在一起,你的实力会下降的……","\t[墨奈,N1124]想来黛莫琳会很快找上门来杀你,毕竟她要统一整个世界……你还不如把我炼化了,让我的力量重新归于你……",{"type":"choices","text":"\t[墨奈,N1124]选择炼化黑暗圣子或者融合在一起","choices":[{"text":"炼化(全属性+10000,生命上限+1000000)","action":["\t[莫析辉,hero]好叭,既如此,那我只能将你炼化了,你还有什么遗愿吗?","\t[墨奈,N1124]帮我照顾好林霄,我的好兄弟,我已经亏欠他太多了……","\t[墨奈,N1124]啊啊啊啊啊!!!!",{"type":"setValue","name":"status:atk","operator":"+=","value":"10000"},{"type":"setValue","name":"status:def","operator":"+=","value":"10000"},{"type":"setValue","name":"status:mdef","operator":"+=","value":"10000"},{"type":"setValue","name":"status:hpmax","operator":"+=","value":"1000000"},{"type":"hide","remove":true}]},{"text":"融合(全属性-100000)","action":["\t[莫析辉,hero]\b[hero]不!另一个我,我已经将你抛弃了一次,我是决不能再抛弃你一次了!","\t[莫析辉,hero]\b[hero]光明与黑暗并存,光明与黑暗的力量相生相惜,我不会再次抛弃黑暗中的自己,我不畏惧变弱,回到我身边吧,另一个我!","\t[墨奈,N1124]好。谢谢你",{"type":"setValue","name":"status:atk","operator":"-=","value":"100000"},{"type":"setValue","name":"status:def","operator":"-=","value":"100000"},{"type":"setValue","name":"status:mdef","operator":"-=","value":"100000"},{"type":"setValue","name":"flag:heianshengzi","value":"1"},{"type":"setEnemy","id":"E877","name":"special","value":"0"},{"type":"hide","loc":[[6,9]],"floorId":"HA20","remove":true},{"type":"hide","remove":true}]}]}]}]}, + "1124": {"cls":"npc48","id":"N1124","event":[{"type":"confirm","text":"确认要跳过剧情吗?","yes":[{"type":"choices","text":"\t[墨奈,N1124]选择炼化黑暗圣子或者融合在一起","choices":[{"text":"炼化(全属性+10000,生命上限+1000000)","action":["\t[莫析辉,hero]\b[hero]好叭,既如此,那我只能将你炼化了……","\t[墨奈,N1124]\b[this]啊啊啊啊啊!!!!",{"type":"setValue","name":"status:atk","operator":"+=","value":"10000"},{"type":"setValue","name":"status:def","operator":"+=","value":"10000"},{"type":"setValue","name":"status:mdef","operator":"+=","value":"10000"},{"type":"setValue","name":"status:hpmax","operator":"+=","value":"1000000"},{"type":"hide","remove":true}]},{"text":"融合(全属性-100000)","action":["\t[莫析辉,hero]\b[hero]不!另一个我,我已经将你抛弃了一次,我是决不能再抛弃你一次了!","\t[莫析辉,hero]\b[hero]光明与黑暗并存,光明与黑暗的力量相生相惜,我不会再次抛弃黑暗中的自己,我不畏惧变弱,回到我身边吧,另一个我!","\t[墨奈,N1124]\b[this]好。谢谢你",{"type":"setValue","name":"status:atk","operator":"-=","value":"100000"},{"type":"setValue","name":"status:def","operator":"-=","value":"100000"},{"type":"setValue","name":"status:mdef","operator":"-=","value":"100000"},{"type":"setValue","name":"flag:heianshengzi","value":"1"},{"type":"setEnemy","id":"E877","name":"special","value":"0"},{"type":"hide","loc":[[6,9]],"floorId":"HA20","remove":true},{"type":"hide","remove":true}]}]}],"no":["\t[莫析辉,hero]\b[hero]墨奈!!!!","\t[墨奈,N1124]\b[this]啊,莫析辉!","\t[莫析辉,hero]\b[hero]墨奈,你居然还活着","\t[墨奈,N1124]\b[this]不,我已经死了。不过我的灵魂没有消失……","\t[莫析辉,hero]\b[hero]那可真是有趣,你活的好好的,反而装死来引起黑暗神殿对光明神殿的不满……","\t[墨奈,N1124]\b[this]我是被黑暗圣女黛莫琳杀死的","\t[莫析辉,hero]\b[hero]你继续编","\t[墨奈,N1124]\b[this]我没必要骗你,你这个蠢货!你都不相信我!","\t[莫析辉,hero]\b[hero]我为什么要相信你?","\t[墨奈,N1124]\b[this]哼,你难道对我们相貌相同没有一点疑虑吗","\t[莫析辉,hero]\b[hero]你不会要说,我们是孪生兄弟什么的吧,哈哈","\t[墨奈,N1124]\b[this]\r[red]不,我们本来就是一个人\r[]","\t[莫析辉,hero]\b[hero]什么!","\t[墨奈,N1124]\b[this]十几年前,你出生了。你比光明圣女还有另一个光明圣子的天赋强,但是你比她小了几岁……即便你的天赋更强,想要超过他们也很难","\t[墨奈,N1124]\b[this]你的父亲,想到了\r[red]阴阳分离大法\r[],将你身上的黑暗属性全部抽离…于是,便有了我…这些,你难道忘了!","\t[莫析辉,hero]\b[hero]这……怎么会……你怎么会知道的","\t[墨奈,N1124]\b[this]莫析辉!不,我应该称呼你为“本体”,你为什么要抛弃我!","\t[莫析辉,hero]\b[hero]啊……怎么会……我没有一点印象……","\t[墨奈,N1124]\b[this]我被黑暗神殿的长老捡到,带回了黑暗神殿,黑暗神殿的教皇和长老们对我关怀备至","\t[墨奈,N1124]\b[this]当然,不止如此!我更是被黑暗之神眷顾,至于为什么,我也不知道","\t[墨奈,N1124]\b[this]黑暗之神眷顾、教皇和众长老的偏爱,让黑暗圣女黛莫琳永远只能成为我的陪衬,她终于忍不住了","\t[墨奈,N1124]\b[this]虽然我受到这么大的眷顾,但我一直害怕一个人……那就是你!我的本体!只要你死了,我的一切都没有意义……我恨你将我抛弃。我很早以前就知道自己是一个残魂了……一番打探,我知道自己出生在东凌帝国,当我经过东凌帝国时,很快便感受到了,你便是我的本体。","\t[墨奈,N1124]\b[this]我要报复你,谁让你抛弃了我,于是我对光明神殿进行了挑衅,没想到你如此弱,我正好抓住你做实验,想看看我能不能摆脱本体而存活,可惜,我实验多日,一旦你遇到危险,我心中也会有危机感起来,最终只能放过你……更没想到黛莫琳乘机对我下手","\t[莫析辉,hero]\b[hero]对不起……","\t[墨奈,N1124]\b[this]你为什么要抛弃我!","\t[莫析辉,hero]\b[hero]说实话,我也不知道这件事,真的,如你所说,我是不到几岁就成为了光明圣子,而你则是在我成为光明圣子之前被剥离了出去……","\t[莫析辉,hero]\b[hero]我实在是不知道……如果不是林霄找我的话……","\t[墨奈,N1124]\b[this]林霄……唉,终究是我欠他的……",{"type":"vibrate","direction":"diagonal1","time":2000,"speed":10,"power":10},"\t[墨奈,N1124]\b[this]啊!","\t[莫析辉,hero]\b[hero]你怎么了!","\t[墨奈,N1124]\b[this]我快不行了……","\t[莫析辉,hero]\b[hero]怎么会……","\t[墨奈,N1124]\b[this]我被黛莫琳杀死,好在本体还在,所以我的灵魂没有立即消散","\t[墨奈,N1124]但是……你刚刚破解了藏灵术……我的灵魂再也无法得到蕴养了……只怕是要消散了","\t[莫析辉,hero]你不要急,如果我们是一体,我可以用\r[red]阴阳分离大法\r[]将你重新融合一体","\t[墨奈,N1124]不,我是你身上剥离的黑暗属性,我们融合在一起,你的实力会下降的……","\t[墨奈,N1124]想来黛莫琳会很快找上门来杀你,毕竟她要统一整个世界……你还不如把我炼化了,让我的力量重新归于你……",{"type":"choices","text":"\t[墨奈,N1124]选择炼化黑暗圣子或者融合在一起","choices":[{"text":"炼化(全属性+10000,生命上限+1000000)","action":["\t[莫析辉,hero]好叭,既如此,那我只能将你炼化了,你还有什么遗愿吗?","\t[墨奈,N1124]帮我照顾好林霄,我的好兄弟,我已经亏欠他太多了……","\t[墨奈,N1124]啊啊啊啊啊!!!!",{"type":"setValue","name":"status:atk","operator":"+=","value":"10000"},{"type":"setValue","name":"status:def","operator":"+=","value":"10000"},{"type":"setValue","name":"status:mdef","operator":"+=","value":"10000"},{"type":"setValue","name":"status:hpmax","operator":"+=","value":"1000000"},{"type":"hide","remove":true}]},{"text":"融合(全属性-100000)","action":["\t[莫析辉,hero]\b[hero]不!另一个我,我已经将你抛弃了一次,我是决不能再抛弃你一次了!","\t[莫析辉,hero]\b[hero]光明与黑暗并存,光明与黑暗的力量相生相惜,我不会再次抛弃黑暗中的自己,我不畏惧变弱,回到我身边吧,另一个我!","\t[墨奈,N1124]好。谢谢你",{"type":"setValue","name":"status:atk","operator":"-=","value":"100000"},{"type":"setValue","name":"status:def","operator":"-=","value":"100000"},{"type":"setValue","name":"status:mdef","operator":"-=","value":"100000"},{"type":"setValue","name":"flag:heianshengzi","value":"1"},{"type":"setEnemy","id":"E877","name":"special","value":"0"},{"type":"hide","loc":[[6,9]],"floorId":"HA20","remove":true},{"type":"hide","remove":true}]}]}]},{"type":"function","function":"function(){\ncore.AllSprites()\n}"}]}, "10013": {"cls":"tileset","id":"X10013","canBreak":true}, "10041": {"cls":"tileset","id":"X10041","canBreak":true}, "10110": {"cls":"tileset","id":"X10110","canBreak":false}, diff --git a/project/plugins.js b/project/plugins.js index 32a5593..a84b0a2 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -174,6 +174,31 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.drawTip("请确认当前" + core.material.items['centerFly'].name + "的位置", 'centerFly'); return; } + this.calcEquip = function () { + var yifu_ = ['I635', 'I630', 'I631', 'I632']; + var fazhang_ = ['I337', 'I408', 'I409', 'I410', 'I411', 'I412', 'I413', 'I1116', 'I1115', 'I595']; + var juanzhou_ = ['I718', 'I719', 'I720', 'I723']; + var yifu = null, + fazhang = null; + for (var i of yifu_) + if (core.status.hero.equipment.includes(i) || core.hasItem(i)) yifu = i; + for (var i of fazhang_) + if (core.status.hero.equipment.includes(i) || core.hasItem(i)) fazhang = i; + juanzhou = core.clone(juanzhou_).filter(i => core.status.hero.equipment.includes(i) || core.hasItem(i)); + flags.saveEquips = [] + if (flags.shop3) { + while (juanzhou.length < 2) juanzhou.push(null); + for (var i = 0; i < juanzhou.length; i++) + for (var j = i + 1; j < juanzhou.length; j++) + flags.saveEquips.push([yifu, juanzhou[i], fazhang, juanzhou[j]]); + } else { + while (juanzhou.length < 1) juanzhou.push(null); + for (var i = 0; i < juanzhou.length; i++) + flags.saveEquips.push([yifu, juanzhou[i], fazhang]); + } + + + } }, "drawLight": function () { @@ -2818,12 +2843,15 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = var num = [hero.items.tools.yellowKey || 0, hero.items.tools.blueKey || 0, hero.items.tools.redKey || 0, hero.items.tools.greenKey || 0]; var keyCol = [170, 0, 140, 250] if (name === 'key2') { - //num = [hero.items.tools.redKey || 0, hero.items.tools.greenKey || 0]; - //keyCol = [140, 250] + num = [hero.items.tools.whiteKey || 0, hero.items.tools.I422 || 0]; + keyCol = [-1, -2] } for (var k in num) { var numk = num[k] numk = numk.toString() + if (keyCol[k] < 0) + core.setFilter(ctx, 'grayscale(' + 100 + '%)'); + else core.setFilter(ctx, 'hue-rotate(' + keyCol[k] + 'deg)') for (var i in numk) { core.drawIcon(ctx, 'X' + (10304), x + 5 + 10 * Number(i) + 30 * Number(k) - (k == 3 ? 10 : 0), y, 16, 16) @@ -3052,7 +3080,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = //状态 var heroStatus = ['atk', 'mdef', 'key1'] var Scol = [140, 280, 180] - var heroStatus2 = ['def', 'mana', 'money'] + var heroStatus2 = ['def', 'mana', 'key2'] var Scol2 = [0, 20, 180, 0] if (core.domStyle.isVertical) { for (var i in heroStatus2) @@ -3070,7 +3098,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } //魔力 if (core.domStyle.isVertical) { - core.mystatusbox(ctx, 'mana', null, 48 + 128, 16, 20); + core.mystatusbox(ctx, 'mana', null, 48 + 128, 16, 20 + (flags.heianshengzi ? 120 : 0)); core.setAlpha(ctx, 0.4) core.drawImage(ctx, 'manaLt.png', 0, 0, 128 * hero.mana / hero.manamax, 32, 60 - 16 + 4 + 152 + 422, 142, 128 * hero.mana / hero.manamax, 32) core.setAlpha(ctx, 1) @@ -3079,9 +3107,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = //钥匙/金币 core.mystatusbox(ctx, 'potion', null, 48 + 256, 16, 180); core.mystatusbox(ctx, 'potion', null, 48 + 22 + 256, 16 + 22, 300); + core.mystatusbox(ctx, 'money', null, 48 + 22 + 128, 16 + 22, 180); } else { - core.mystatusbox(ctx, 'mana', null, 80 + 152 + 422, 122, 20); + core.mystatusbox(ctx, 'mana', null, 80 + 152 + 422, 122, 20 + (flags.heianshengzi ? 120 : 0)); core.setAlpha(ctx, 0.4) core.drawImage(ctx, 'manaLt.png', 0, 0, 128 * hero.mana / hero.manamax, 32, 60 - 16 + 4 + 152 + 422, 142, 128 * hero.mana / hero.manamax, 32) core.setAlpha(ctx, 1) @@ -3115,34 +3144,34 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = var text = [ //['等级', hero.lv + ' ' + leveltext[hero.lv - 1][0]], //['经验', hero.exp + '/' + need], - ['生命上限', (hero.hpmax < 0 ? '\r[red]' : '') + hero.hpmax + '\r'], + ['血限', (hero.hpmax < 0 ? '\r[red]' : '') + hero.hpmax + '\r'], ['生命', (hero.mdef < 0 ? '\r[red]' : '') + hero.hp + '\r'], ['攻击', (hero.atk < 0 ? '\r[red]' : '') + hero.atk + '\r'], ['防御', (hero.def < 0 ? '\r[red]' : '') + hero.def + '\r'], ['护盾', (hero.mdef < 0 ? '\r[red]' : '') + hero.mdef + '\r'], - ['魔量', hero.mana + '/' + hero.manamax], + ['魔量', hero.mana], ['钥匙', core.itemCount('yellowKey') + '/' + core.itemCount('blueKey') + '/' + core.itemCount('redKey') + '/' + core.itemCount('greenKey')], - ['金币', (hero.money < 0 ? '\r[red]' : '') + hero.money + '\r'], + ['钥匙', core.itemCount('whiteKey') + '/' + core.itemCount('I422') + '\r'], ['亲密度', ''], ['神之血', ''], ['琼浆玉露', ''], - ['金币', ''], + ['金币', hero.money], ] var text2 = [ //['等级', '下级' + leveltext[hero.lv - 1][1]], //['经验', '积累达到最大时角色升级'], - ['生命上限', '玩家最多拥有的生命'], + ['血限', '玩家最多拥有的生命'], ['生命', '生命不足时游戏结束'], ['攻击', '影响角色每次普攻伤害'], ['防御', '影响角色受到攻击的直接减伤'], ['护盾', '每次战斗会抵挡伤害'], ['魔量', '用于施放技能的消耗'], ['钥匙', '用于开启黄/蓝/红/绿门'], - ['金币', '用于商店购买的货币'], + ['钥匙', '用于开启白/黑门'], ['亲密度', '和圣骑士、准圣子、圣女亲密度'], - ['神之血', '按生命上限一定比例回血'], - ['琼浆玉露', '按生命上限一定比例回血'], - ['金币', ''], + ['神之血', '增加生命上限一定比例的生命'], + ['琼浆玉露', '增加生命上限一定比例的生命'], + ['金币', '用于商店购买的货币'], ] core.setFilter(ctx, 'hue-rotate(' + (col || 0) + 'deg)grayscale(' + (gry || 0) + '%)') @@ -3223,7 +3252,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.mystatusNumber(ctx, 'hp', null, 48 + 22, 16 + 22, 250); } else { core.mystatusNumber(ctx, 'hpmax', null, 80, 100, 160); - core.mystatusNumber(ctx, 'hp', null, 80 + 22, 122, 250); + core.mystatusNumber(ctx, 'hp', null, 80 + 12, 122, 250); } var need = core.firstData.levelUp[core.status.hero.lv].need; core.drawImage(ctx, 'manaLt.png', 0, 0, 128 * hero.hp / hero.hpmax, 32, 60 - 16 + 4, 142, 128 * hero.hp / hero.hpmax, 32) @@ -3231,7 +3260,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = //状态 var heroStatus = ['atk', 'mdef', 'key1'] var Scol = [140, 280, 180] - var heroStatus2 = ['def', 'mana', 'money'] + var heroStatus2 = ['def', 'mana', 'key2'] var Scol2 = [0, 20, 180, 0] if (core.domStyle.isVertical) { for (var i in heroStatus2) @@ -3260,6 +3289,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = //钥匙/金币 core.mystatusNumber(ctx, 'potion1', null, 48 + 256, 16, 180); core.mystatusNumber(ctx, 'potion2', null, 48 + 256 + 22, 16 + 22, 300); + core.mystatusNumber(ctx, 'money', null, 48 + 128 + 22, 16 + 22, 180); } else { core.mystatusNumber(ctx, 'shengqishi', null, 80 + 152 + 422, 122, 120); diff --git a/styles.css b/styles.css index e1e1020..29ef2b9 100644 --- a/styles.css +++ b/styles.css @@ -166,8 +166,8 @@ } #floorMsgGroup { - top: 3px; - right: 3px; + top: 0px; + right: 0px; position: absolute; text-align: center; display: none; @@ -243,7 +243,7 @@ -moz-box-sizing: border-box; -webkit-box-sizing: border-box; display: none; - padding: 3px; + padding: 0px; } #toolBar .tools{ position: relative;