From 171f0b5d1fff28938205cda0d5a947769f6dec03 Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Mon, 10 Mar 2025 22:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9F=E5=BA=A6=E5=AE=9D=E7=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _server/table/data.comment.js | 6 ++++ project/data.js | 4 +-- project/items.js | 58 ++++++----------------------------- 3 files changed, 18 insertions(+), 50 deletions(-) diff --git a/_server/table/data.comment.js b/_server/table/data.comment.js index 358881b..17faa7f 100644 --- a/_server/table/data.comment.js +++ b/_server/table/data.comment.js @@ -452,6 +452,12 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = { "_type": "textarea", "_docs": "绿宝石值", }, + "yellowGem": { + "_leaf": true, + "_type": "textarea", + "_docs": "黄宝石值", + }, + "redPotion": { "_leaf": true, "_type": "textarea", diff --git a/project/data.js b/project/data.js index d09495a..1aa2b2d 100644 --- a/project/data.js +++ b/project/data.js @@ -2115,8 +2115,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "lavaDamage": 100, "poisonDamage": 10, "weakValue": 20, - "redGem": 3, - "blueGem": 3, + "redGem": 2, + "blueGem": 2, "greenGem": 5, "redPotion": 100, "bluePotion": 250, diff --git a/project/items.js b/project/items.js index 53d1d78..b272946 100644 --- a/project/items.js +++ b/project/items.js @@ -39,59 +39,21 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "greenGem": { "cls": "tools", "name": "绿宝石", - "text": ",护盾+${core.values.greenGem}", - "itemEffect": "core.status.hero.mdef += core.values.greenGem * core.status.thisMap.ratio", - "itemEffectTip": ",护盾+${core.values.greenGem * core.status.thisMap.ratio}", - "useItemEffect": "core.status.hero.mdef += core.values.greenGem", + "text": ",法强+${core.values.greenGem}", + "itemEffect": "core.status.hero.spell += core.values.greenGem * core.status.thisMap.ratio", + "itemEffectTip": ",法强+${core.values.greenGem * core.status.thisMap.ratio}", + "useItemEffect": "core.status.hero.spell += core.values.greenGem", "canUseItemEffect": "true" }, "yellowGem": { "cls": "items", "name": "黄宝石", - "text": "可以进行加点", - "itemEffect": "core.status.hero.hp+=1000;core.status.hero.atk+=6;core.status.hero.def+=6;core.status.hero.mdef+=10;", - "itemEffectTip": ",全属性提升", - "useItemEvent": [ - { - "type": "choices", - "choices": [ - { - "text": "攻击+1", - "action": [ - { - "type": "setValue", - "name": "status:atk", - "operator": "+=", - "value": "1" - } - ] - }, - { - "text": "防御+2", - "action": [ - { - "type": "setValue", - "name": "status:def", - "operator": "+=", - "value": "2" - } - ] - }, - { - "text": "生命+200", - "action": [ - { - "type": "setValue", - "name": "status:hp", - "operator": "+=", - "value": "200" - } - ] - } - ] - } - ], - "canUseItemEffect": "true" + "text": ",速度+${core.values.yellowGem}", + "itemEffect": "core.status.hero.speed += core.values.yellowGem * core.status.thisMap.ratio", + "itemEffectTip": ",速度+${core.values.yellowGem * core.status.thisMap.ratio}", + "useItemEvent": null, + "canUseItemEffect": "true", + "useItemEffect": "core.status.hero.spell += core.values.yellowGem" }, "redPotion": { "cls": "items",