From 4cf95f56218b2b868011f9093bbc36336008506a Mon Sep 17 00:00:00 2001 From: bdf1 Date: Mon, 8 May 2023 16:20:12 +1300 Subject: [PATCH] =?UTF-8?q?feat(dev):=20=E5=A2=9E=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=B7=B3=E5=85=B3=E5=92=8C=E6=B5=8B=E8=AF=95=E7=BB=93?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/floors/MT0.js | 606 ++++++++++++++++++++++++++++++++++++++++- project/floors/MT60.js | 15 +- 2 files changed, 618 insertions(+), 3 deletions(-) diff --git a/project/floors/MT0.js b/project/floors/MT0.js index ec69536..3023104 100644 --- a/project/floors/MT0.js +++ b/project/floors/MT0.js @@ -80,7 +80,7 @@ main.floors.MT0= "true": [ { "type": "choices", - "text": "\t[bdf,hero]各测塔员成绩", + "text": "\t[${status:name},hero]各测塔员成绩", "choices": [ { "text": "星宫白 - 1", @@ -184,7 +184,7 @@ main.floors.MT0= "false": [ { "type": "choices", - "text": "\t[bdf,hero]各测塔员成绩", + "text": "\t[${status:name},hero]各测塔员成绩", "choices": [ { "text": "星宫白 - 124", @@ -361,6 +361,608 @@ main.floors.MT0= } ] } + ], + "5,7": [ + { + "type": "choices", + "text": "\t[${status:name},hero]各测塔员成绩\\i[yellowKey]", + "choices": [ + { + "text": "星宫白 - 3黄 5蓝 366", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "530366" + } + ] + }, + { + "text": "顾 - 3黄 5蓝 282", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "530282" + } + ] + }, + { + "text": "yztm889 - 3黄 5蓝 88", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "530088" + } + ] + }, + { + "text": "(主角) bdf - 0黄 4蓝 229", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "400229" + } + ] + }, + { + "text": "(作者) 王州 - 1黄 1蓝 21", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "110021" + } + ] + }, + { + "text": "(特殊) 测试 - 0黄 0蓝 1", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "1" + }, + "此情况过不了啊" + ] + }, + { + "text": "Cancel", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "-1" + } + ] + } + ] + }, + { + "type": "if", + "condition": "(flag:lhjnb>0)", + "true": [ + { + "type": "setValue", + "name": "status:exp", + "operator": "+=", + "value": "235" + }, + { + "type": "setValue", + "name": "status:atk", + "operator": "+=", + "value": "131" + }, + { + "type": "setValue", + "name": "status:def", + "operator": "+=", + "value": "129" + }, + { + "type": "setValue", + "name": "status:mdef", + "operator": "+=", + "value": "252" + }, + { + "type": "sleep", + "time": 50 + }, + { + "type": "setValue", + "name": "status:hp", + "value": "1068" + }, + { + "type": "setValue", + "name": "status:exp", + "operator": "+=", + "value": "0" + }, + { + "type": "sleep", + "time": 50 + }, + { + "type": "setValue", + "name": "status:hp", + "operator": "+=", + "value": "flag:lhjnb%10000" + }, + { + "type": "setValue", + "name": "status:hp", + "operator": "-=", + "value": "0" + }, + { + "type": "setValue", + "name": "item:yellowKey", + "value": "Math.floor(flag:lhjnb/10000)%10" + }, + { + "type": "setValue", + "name": "item:blueKey", + "value": "Math.floor(flag:lhjnb/100000)%10" + }, + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "114-5*item:blueKey-2*item:yellowKey" + }, + { + "type": "setBlock", + "number": "specialDoor", + "loc": [ + [ + 4, + 6 + ] + ], + "floorId": "MT22" + }, + { + "type": "changeFloor", + "floorId": "MT22", + "loc": [ + 5, + 6 + ] + } + ], + "false": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "0" + } + ] + } + ], + "5,8": [ + { + "type": "choices", + "text": "\t[${status:name},hero]各测塔员成绩\\i[blueKey]", + "choices": [ + { + "text": "星宫白 - 7黄 3蓝 1红 74", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "1370074" + } + ] + }, + { + "text": "yztm889 - 6黄 3蓝 1红 7", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "1360007" + } + ] + }, + { + "text": "顾 - 5黄 3蓝 1红 95", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "1350095" + } + ] + }, + { + "text": "(主角) bdf - 5黄 3蓝 1红 88", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "1350088" + } + ] + }, + { + "text": "(特殊) 测试 - 0黄 0蓝 0红 1", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "1" + } + ] + }, + { + "text": "(作者) 王州 - 过不去", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "-1" + } + ] + }, + { + "text": "Cancel", + "action": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "-1" + } + ] + } + ] + }, + { + "type": "if", + "condition": "(flag:lhjnb>0)", + "true": [ + { + "type": "setValue", + "name": "status:exp", + "operator": "+=", + "value": "359" + }, + { + "type": "setValue", + "name": "status:atk", + "operator": "+=", + "value": "251" + }, + { + "type": "setValue", + "name": "status:def", + "operator": "+=", + "value": "246" + }, + { + "type": "setValue", + "name": "status:mdef", + "operator": "+=", + "value": "520" + }, + { + "type": "sleep", + "time": 50 + }, + { + "type": "setValue", + "name": "status:hp", + "value": "12664" + }, + { + "type": "setValue", + "name": "status:exp", + "operator": "+=", + "value": "0" + }, + { + "type": "sleep", + "time": 50 + }, + { + "type": "setValue", + "name": "status:hp", + "operator": "+=", + "value": "flag:lhjnb%10000" + }, + { + "type": "setValue", + "name": "status:hp", + "operator": "-=", + "value": "0" + }, + { + "type": "setValue", + "name": "item:yellowKey", + "value": "Math.floor(flag:lhjnb/10000)%10" + }, + { + "type": "setValue", + "name": "item:blueKey", + "value": "Math.floor(flag:lhjnb/100000)%10" + }, + { + "type": "setValue", + "name": "item:redKey", + "value": "Math.floor(flag:lhjnb/1000000)%10" + }, + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "241-15*item:redKey-5*item:blueKey-2*item:yellowKey" + }, + { + "type": "changeFloor", + "floorId": "MT33", + "loc": [ + 6, + 11 + ] + } + ], + "false": [ + { + "type": "setValue", + "name": "flag:lhjnb", + "value": "0" + } + ] + } + ], + "7,6": [ + { + "type": "choices", + "text": "\t[${status:name},hero]修改主角名", + "choices": [ + { + "text": "星宫白", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"星宫白\"" + } + ] + }, + { + "text": "鸣", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"鸣\"" + } + ] + }, + { + "text": "yztm889", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"夜战天明889\"" + } + ] + }, + { + "text": "顾", + "action": [ + { + "type": "setValue", + "name": "status:nameb", + "value": "\"顾\"" + } + ] + }, + { + "text": "Farewell", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"Farewell\"" + } + ] + }, + { + "text": "(主角) bdf", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"bdf\"" + } + ] + }, + { + "text": "α", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"α\"" + } + ] + }, + { + "text": "(作者) 王州", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"王州\"" + } + ] + }, + { + "text": "迷迭香", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"迷迭香\"" + } + ] + }, + { + "text": "Others", + "action": [ + { + "type": "choices", + "text": "\t[${status:name},hero]修改主角名", + "choices": [ + { + "text": "鹿间裕贵", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"鹿间裕贵\"" + } + ] + }, + { + "text": "rys", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"rys\"" + } + ] + }, + { + "text": "北海小羊", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"北海小羊\"" + } + ] + }, + { + "text": "影法师", + "action": [ + { + "type": "setValue", + "name": "status:nameb", + "value": "\"影法师\"" + } + ] + }, + { + "text": "袜子精Boris", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"袜子精Boris\"" + } + ] + }, + { + "text": "金中梅西", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"金中梅西\"" + } + ] + }, + { + "text": "喜食佩刀的米格", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"喜食佩刀的米格\"" + } + ] + }, + { + "text": "千夜", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"千夜\"" + } + ] + }, + { + "text": "魔羊羊1", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"魔羊羊1\"" + } + ] + }, + { + "text": "castor_v_pollux", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"castor_v_pollux\"" + } + ] + }, + { + "text": "雨落南洋", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"雨落南洋\"" + } + ] + }, + { + "text": "悬壶桦雪", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"悬壶桦雪\"" + } + ] + }, + { + "text": "古祠", + "action": [ + { + "type": "setValue", + "name": "status:name", + "value": "\"古祠\"" + } + ] + }, + { + "text": "Cancel", + "action": [] + } + ] + } + ] + }, + { + "text": "Cancel", + "action": [] + } + ] + } ] }, "changeFloor": {}, diff --git a/project/floors/MT60.js b/project/floors/MT60.js index 0ff927f..c7b1dfd 100644 --- a/project/floors/MT60.js +++ b/project/floors/MT60.js @@ -34,7 +34,20 @@ main.floors.MT60= } }, "beforeBattle": {}, - "afterBattle": {}, + "afterBattle": { + "6,0": [ + { + "type": "setValue", + "name": "status:hp", + "operator": "+=", + "value": "item:yellowKey*20000+item:redKey*150000+item:blueKey*50000+item:pickaxe*300000" + }, + { + "type": "win", + "reason": "" + } + ] + }, "afterGetItem": {}, "afterOpenDoor": {}, "autoEvent": {},