diff --git a/project/events.js b/project/events.js index de65ec9..bec67d1 100644 --- a/project/events.js +++ b/project/events.js @@ -48,7 +48,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = "回收钥匙商店": [ { "type": "function", - "function": "function(){\nif (core.hasEquip('I409')) { core.status.hero.mana += 1 }\nif (core.hasEquip('I410')) { core.status.hero.mana += 3 }\nif (core.hasEquip('I411')) { core.status.hero.mana += 5 }\nif (core.hasEquip('I412')) { core.status.hero.mana += 7 }\nif (core.hasEquip('I413')) { core.status.hero.mana += 9 }\nif (core.hasEquip('I595')) { core.status.hero.mana += 100 }\nif (core.hasEquip('I1115')) { core.status.hero.mana += 10 }\nif (core.hasEquip('I1116')) { core.status.hero.mana += 10 }\nif (core.hasItem('I722')) { core.status.hero.mana += Math.min(50, Math.sqrt((core.getEnemyInfo('', null, x, y).hp || 0) / 500)) }\nif (core.hasEquip('I723')) { core.status.hero.hp += core.status.hero.hpmax / 200 }\nif (core.hasItem('coin')) core.status.hero.money += 12;\nflags.lhjnb = (flags.lhjnb || 0) + (core.getEnemyInfo('', null, x, y).money || 0)\n}" + "function": "function(){\nif (core.hasEquip('I409')) { core.status.hero.mana += 1 }\nif (core.hasEquip('I410')) { core.status.hero.mana += 3 }\nif (core.hasEquip('I411')) { core.status.hero.mana += 5 }\nif (core.hasEquip('I412')) { core.status.hero.mana += 7 }\nif (core.hasEquip('I413')) { core.status.hero.mana += 9 }\nif (core.hasEquip('I595')) { core.status.hero.mana += 100 }\nif (core.hasEquip('I1115')) { core.status.hero.mana += 10 }\nif (core.hasEquip('I1116')) { core.status.hero.mana += 10 }\nif (core.hasItem('I722')) { core.status.hero.mana += Math.min(50, Math.sqrt((core.getEnemyInfo('', null, x, y).hp || 0) / 500)) }\nif (core.hasEquip('I723')) { core.status.hero.hp += core.status.hero.hpmax / 200 }\nif (core.hasItem('I421')) { core.status.hero.mana += Math.min(10000, (core.getEnemyInfo('', null, x, y).hp || 0) / 5000) }\nif (core.hasItem('I421')) { core.status.hero.hp += core.status.hero.hpmax / 100 }\n\nif (core.hasItem('coin')) core.status.hero.money += 12;\nflags.lhjnb = (flags.lhjnb || 0) + (core.getEnemyInfo('', null, x, y).money || 0)\n}" } ] } diff --git a/project/floors/BN10.js b/project/floors/BN10.js index 6aefe29..ecf3a6b 100644 --- a/project/floors/BN10.js +++ b/project/floors/BN10.js @@ -14,35 +14,20 @@ main.floors.BN10= "defaultGround": "X10003", "bgm": "ending.mp3", "firstArrive": [ + "\t[北纳逸,E1012]\b[this,6,5]你来啦", { - "type": "confirm", - "text": "确认要跳过剧情吗?", - "yes": [ - { - "type": "moveHero", - "time": 500, - "steps": [ - "up:5" - ] - } - ], - "no": [ - "\t[北纳逸,E1012]\b[this,6,5]你来啦", - { - "type": "moveHero", - "time": 500, - "steps": [ - "up:5" - ] - }, - "\t[莫析辉,hero]\b[hero]见过北纳叔叔", - "\t[北纳逸,E1012]\b[this,6,5]你是光明神殿未来的少主,用不着与我行礼。", - "\t[莫析辉,hero]\b[hero]光明神殿的光明圣女是您的女儿,与我同级,无论如何,叔叔都比我大上一点。", - "\t[北纳逸,E1012]\b[this,6,5]莫析家族的少主这张嘴真是越来越伶俐了", - "\t[莫析辉,hero]\b[hero]您知道我来找您是做什么的", - "\t[北纳逸,E1012]\b[this,6,5]当然知道。既然如此,那还等什么?出手吧!" + "type": "moveHero", + "time": 500, + "steps": [ + "up:5" ] - } + }, + "\t[莫析辉,hero]\b[hero]见过北纳叔叔", + "\t[北纳逸,E1012]\b[this,6,5]你是光明神殿未来的少主,用不着与我行礼。", + "\t[莫析辉,hero]\b[hero]光明神殿的光明圣女是您的女儿,与我同级,无论如何,叔叔都比我大上一点。", + "\t[北纳逸,E1012]\b[this,6,5]莫析家族的少主这张嘴真是越来越伶俐了", + "\t[莫析辉,hero]\b[hero]您知道我来找您是做什么的", + "\t[北纳逸,E1012]\b[this,6,5]当然知道。既然如此,那还等什么?出手吧!" ], "eachArrive": [], "parallelDo": "", diff --git a/project/floors/CZ10.js b/project/floors/CZ10.js index be130f1..0531e9a 100644 --- a/project/floors/CZ10.js +++ b/project/floors/CZ10.js @@ -28,90 +28,58 @@ main.floors.CZ10= } ], "6,8": [ + "\t[林霄,N485]\b[this,6,6]黑暗骑士林霄恭迎光明圣子殿下!", + "\t[莫析辉,hero]\b[hero]呵,看得出你们等本少爷很久了。", + "\t[林霄,N485]\b[this,6,6]殿下误会了,是我们尊贵的黑暗圣子殿下想要见您,所以让我们来请殿下去黑暗神殿一聚", + "\t[莫析辉,hero]\b[hero]请本少爷?就凭你能请动吗?", { - "type": "confirm", - "text": "确认要跳过剧情吗?", - "yes": [ - { - "type": "hide", - "loc": [ - [ - 6, - 6 - ] - ], - "remove": true - }, - { - "type": "setBlock", - "number": "specialDoor", - "loc": [ - [ - 6, - 9 - ] - ] - }, - { - "type": "hide", - "remove": true - } - ], - "no": [ - "\t[林霄,N485]\b[this,6,6]黑暗骑士林霄恭迎光明圣子殿下!", - "\t[莫析辉,hero]\b[hero]呵,看得出你们等本少爷很久了。", - "\t[林霄,N485]\b[this,6,6]殿下误会了,是我们尊贵的黑暗圣子殿下想要见您,所以让我们来请殿下去黑暗神殿一聚", - "\t[莫析辉,hero]\b[hero]请本少爷?就凭你能请动吗?", - { - "type": "setBlock", - "number": "N577", - "loc": [ - [ - 6, - 7 - ] - ] - }, - "\t[凌依,N574]\b[this,6,7]让我来会一会黑暗神殿的黑暗骑士吧,看看究竟是光明更强,还是黑暗更强!", - "\t[林霄,N485]\b[this,6,6]想来我是不便向殿下出手了,只能由让殿下脏手与小喽啰一战了。", - "\t[凌依,N574]\b[this,6,7]废话少说,接招!", - { - "type": "hide", - "loc": [ - [ - 6, - 7 - ] - ], - "remove": true - }, - { - "type": "hide", - "loc": [ - [ - 6, - 6 - ] - ], - "remove": true - }, - { - "type": "setBlock", - "number": "specialDoor", - "loc": [ - [ - 6, - 9 - ] - ] - }, - "\t[须弥勇者,evilHero]\b[this,6,4]不知在下能否有幸让殿下出手呢", - "\t[莫析辉,hero]\b[hero]废话,本少爷身边的守护骑士都走了,当然得本少爷出手啦,来吧!", - { - "type": "hide", - "remove": true - } + "type": "setBlock", + "number": "N577", + "loc": [ + [ + 6, + 7 + ] ] + }, + "\t[凌依,N574]\b[this,6,7]让我来会一会黑暗神殿的黑暗骑士吧,看看究竟是光明更强,还是黑暗更强!", + "\t[林霄,N485]\b[this,6,6]想来我是不便向殿下出手了,只能由让殿下脏手与小喽啰一战了。", + "\t[凌依,N574]\b[this,6,7]废话少说,接招!", + { + "type": "hide", + "loc": [ + [ + 6, + 7 + ] + ], + "remove": true + }, + { + "type": "hide", + "loc": [ + [ + 6, + 6 + ] + ], + "remove": true + }, + { + "type": "setBlock", + "number": "specialDoor", + "loc": [ + [ + 6, + 9 + ] + ] + }, + "\t[须弥勇者,evilHero]\b[this,6,4]不知在下能否有幸让殿下出手呢", + "\t[莫析辉,hero]\b[hero]废话,本少爷身边的守护骑士都走了,当然得本少爷出手啦,来吧!", + { + "type": "hide", + "remove": true } ], "9,6": { @@ -352,654 +320,594 @@ main.floors.CZ10= ] }, { - "type": "confirm", - "text": "确认要跳过剧情吗?", - "yes": [ + "type": "if", + "condition": "(flag:shengqishi>1)", + "true": [ { - "type": "if", - "condition": "(flag:shengqishi>1)", - "true": [ - "继续探查" - ], - "false": [ - { - "type": "setValue", - "name": "status:hpmax", - "operator": "-=", - "value": "5000" - }, - { - "type": "setValue", - "name": "status:atk", - "operator": "-=", - "value": "100" - }, - { - "type": "setValue", - "name": "status:def", - "operator": "-=", - "value": "100" - }, - { - "type": "setValue", - "name": "status:mdef", - "operator": "-=", - "value": "500" - } - ] - }, - { - "type": "show", + "type": "animate", + "name": "sword2", "loc": [ - [ - 6, - 0 - ] + 6, + 5 ] }, { "type": "setBlock", - "number": "upPortal", + "number": "N472", "loc": [ [ 6, - 0 - ] - ] - } - ], - "no": [ - { - "type": "if", - "condition": "(flag:shengqishi>1)", - "true": [ - { - "type": "animate", - "name": "sword2", - "loc": [ - 6, - 5 - ] - }, - { - "type": "setBlock", - "number": "N472", - "loc": [ - [ - 6, - 4 - ] - ] - }, - "\t[${flag:shengqishi_name},N472]\b[down]殿下小心!", - "\t[莫析辉,hero]\b[hero]好险!究竟是什么人,竟然偷袭本少爷!", - { - "type": "changePos", - "direction": "down" - }, - { - "type": "playBgm", - "name": "mingzhentankenanlansegubao.mp3" - }, - { - "type": "animate", - "name": "heidong3", - "loc": [ - 6, - 7 - ] - }, - { - "type": "setBlock", - "number": "N480", - "loc": [ - [ - 6, - 7 - ] - ] - }, - { - "type": "vibrate", - "direction": "horizontal", - "time": 2000, - "speed": 10, - "power": 10 - }, - "\t[??,N477]\b[this,6,7]莫析•辉,刚刚要不是这小子,你可得脱层皮!", - "\t[莫析辉,hero]\b[hero]你是什么人!竟敢偷袭本少爷!啊,你怎么长得和我这么像……", - "\t[??,N477]\b[this,6,7]哼,黑暗骑士们,还不出来,“请”光明圣子到黑暗神殿一坐?", - { - "type": "animate", - "name": "re", - "loc": [ - 5, - 7 - ] - }, - { - "type": "animate", - "name": "re", - "loc": [ - 7, - 7 - ] - }, - { - "type": "setBlock", - "number": "darkKnight", - "loc": [ - [ - 5, - 7 - ] - ] - }, - { - "type": "setBlock", - "number": "darkKnight", - "loc": [ - [ - 7, - 7 - ] - ] - }, - "\t[黑暗骑士,darkKnight]为黑暗而战!", - "\t[莫析辉,hero]\b[hero]我靠!", - "\t[黑暗骑士,darkKnight]光明圣子殿下,麻烦您和我们走一趟吧", - "\t[光明骑士,N440]黑暗神殿欺我光明神殿无人吗?", - { - "type": "animate", - "name": "light", - "loc": [ - 5, - 5 - ] - }, - { - "type": "animate", - "name": "light", - "loc": [ - 7, - 5 - ] - }, - { - "type": "setBlock", - "number": "N440", - "loc": [ - [ - 5, - 5 - ] - ] - }, - { - "type": "setBlock", - "number": "N440", - "loc": [ - [ - 7, - 5 - ] - ] - }, - "\t[光明骑士,N440]为光明而战!", - { - "type": "animate", - "name": "yijianzhanqianye", - "loc": [ - 6, - 6 - ] - }, - { - "type": "animate", - "name": "yijianzhanqianye", - "loc": [ - 5, - 6 - ], - "async": true - }, - { - "type": "animate", - "name": "yijianzhanqianye", - "loc": [ - 7, - 6 - ], - "async": true - }, - { - "type": "animate", - "name": "thunder2", - "loc": [ - 6, - 6 - ] - }, - { - "type": "animate", - "name": "thunder3", - "loc": [ - 6, - 6 - ] - }, - { - "type": "vibrate", - "direction": "diagonal1", - "time": 2000, - "speed": 10, - "power": 10 - }, - "\t[黑暗骑士,darkKnight]殿下,短时间内,我们恐怕无法战胜光明骑士团掳走光明圣子,这里距离光明神殿太近了,怕是会惊扰到光明教皇……", - "\t[??,N477]\b[this,6,7]光明圣子莫析•辉,同时转告光明圣女北纳•蜜西娅,我黑暗圣子墨奈,向你们宣战!有本事的话,来村庄尽头找本少爷!哈哈哈哈哈!", - { - "type": "vibrate", - "direction": "horizontal", - "time": 2000, - "speed": 10, - "power": 10 - }, - { - "type": "hide", - "loc": [ - [ - 6, - 7 - ] - ], - "remove": true - }, - { - "type": "hide", - "loc": [ - [ - 5, - 7 - ] - ], - "remove": true - }, - { - "type": "hide", - "loc": [ - [ - 7, - 7 - ] - ], - "remove": true - }, - "\t[莫析辉,hero]\b[hero]黑暗圣子……竟然是黑暗神殿的圣子……他好像比我厉害……", - "\t[${flag:shengqishi_name},N472]\b[down]殿下,别担心,我会保护你的!", - "\t[莫析辉,hero]\b[hero]没事,我先派人向教皇爷爷禀报一下这里的情况,同时先深入去探查一下黑暗圣子的情况。", - "\t[${flag:shengqishi_name},N472]\b[down]是!那我们一起去吗", - "\t[莫析辉,hero]\b[hero]走吧!", - { - "type": "hide", - "loc": [ - [ - 6, - 4 - ] - ], - "remove": true - }, - { - "type": "hide", - "loc": [ - [ - 5, - 5 - ] - ], - "remove": true - }, - { - "type": "hide", - "loc": [ - [ - 7, - 5 - ] - ], - "remove": true - } - ], - "false": [ - { - "type": "setValue", - "name": "status:hpmax", - "operator": "-=", - "value": "5000" - }, - { - "type": "setValue", - "name": "status:atk", - "operator": "-=", - "value": "100" - }, - { - "type": "setValue", - "name": "status:def", - "operator": "-=", - "value": "100" - }, - { - "type": "setValue", - "name": "status:mdef", - "operator": "-=", - "value": "500" - }, - "\t[莫析辉,hero]\b[hero]啊啊啊啊啊!", - { - "type": "changePos", - "direction": "down" - }, - { - "type": "playBgm", - "name": "mingzhentankenanlansegubao.mp3" - }, - { - "type": "animate", - "name": "heidong3", - "loc": [ - 6, - 7 - ] - }, - { - "type": "setBlock", - "number": "N480", - "loc": [ - [ - 6, - 7 - ] - ] - }, - { - "type": "vibrate", - "direction": "diagonal1", - "time": 2000, - "speed": 10, - "power": 10 - }, - "\t[??,N477]\b[this,6,7]莫析•辉,感觉怎么样?", - "\t[莫析辉,hero]\b[hero]你是什么人!竟敢偷袭本少爷!啊,你怎么长得和我这么像……", - "\t[??,N477]\b[this,6,7]哼,黑暗骑士们,还不出来,“请”光明圣子到黑暗神殿一坐?", - { - "type": "animate", - "name": "re", - "loc": [ - 5, - 7 - ] - }, - { - "type": "animate", - "name": "re", - "loc": [ - 7, - 7 - ] - }, - { - "type": "setBlock", - "number": "darkKnight", - "loc": [ - [ - 5, - 7 - ] - ] - }, - { - "type": "setBlock", - "number": "darkKnight", - "loc": [ - [ - 7, - 7 - ] - ] - }, - "\t[黑暗骑士,darkKnight]为黑暗而战!", - "\t[莫析辉,hero]\b[hero]我靠!", - "\t[黑暗骑士,darkKnight]光明圣子殿下,麻烦您和我们走一趟吧", - "\t[光明骑士,N440]黑暗神殿欺我光明神殿无人吗?", - { - "type": "animate", - "name": "light", - "loc": [ - 5, - 5 - ] - }, - { - "type": "animate", - "name": "light", - "loc": [ - 7, - 5 - ] - }, - { - "type": "setBlock", - "number": "N440", - "loc": [ - [ - 5, - 5 - ] - ] - }, - { - "type": "setBlock", - "number": "N440", - "loc": [ - [ - 7, - 5 - ] - ] - }, - "\t[光明骑士,N440]为光明而战!", - { - "type": "animate", - "name": "yijianzhanqianye", - "loc": [ - 6, - 6 - ] - }, - { - "type": "animate", - "name": "yijianzhanqianye", - "loc": [ - 5, - 6 - ], - "async": true - }, - { - "type": "animate", - "name": "yijianzhanqianye", - "loc": [ - 7, - 6 - ], - "async": true - }, - { - "type": "animate", - "name": "thunder2", - "loc": [ - 6, - 6 - ] - }, - { - "type": "animate", - "name": "thunder3", - "loc": [ - 6, - 6 - ] - }, - { - "type": "vibrate", - "direction": "diagonal1", - "time": 2000, - "speed": 10, - "power": 10 - }, - "\t[黑暗骑士,darkKnight]殿下,短时间内,我们恐怕无法战胜光明骑士团掳走光明圣子,这里距离光明神殿太近了,怕是会惊扰到光明教皇……", - "\t[??,N477]\b[down]光明圣子莫析•辉,同时转告光明圣女北纳•蜜西娅,我黑暗圣子墨奈,向你们宣战!有本事的话,来村庄尽头找本少爷!哈哈哈哈哈!", - { - "type": "hide", - "loc": [ - [ - 6, - 7 - ] - ], - "remove": true - }, - { - "type": "vibrate", - "direction": "horizontal", - "time": 2000, - "speed": 10, - "power": 10 - }, - { - "type": "hide", - "loc": [ - [ - 5, - 7 - ] - ], - "remove": true - }, - { - "type": "hide", - "loc": [ - [ - 7, - 7 - ] - ], - "remove": true - }, - "\t[莫析辉,hero]\b[hero]黑暗圣子……竟然是黑暗神殿的圣子……他好像比我厉害……看来,我得派人去找教皇爷爷禀报一下了……不过我还是需要继续去探查一下他的底细才行……", - "\t[莫析辉,hero]\b[hero]找一些厉害的骑士,几个去禀报教皇陛下这里的事情,几个跟我深入探查!", - "\t[光明骑士,N440]\b[down]是!", - { - "type": "hide", - "loc": [ - [ - 5, - 5 - ] - ], - "remove": true - }, - { - "type": "hide", - "loc": [ - [ - 7, - 5 - ] - ], - "remove": true - } - ] - }, - { - "type": "setBlock", - "number": "upPortal", - "loc": [ - [ - 6, - 0 + 4 ] ] }, + "\t[${flag:shengqishi_name},N472]\b[down]殿下小心!", + "\t[莫析辉,hero]\b[hero]好险!究竟是什么人,竟然偷袭本少爷!", { - "type": "show", - "loc": [ - [ - 6, - 0 - ] - ] + "type": "changePos", + "direction": "down" }, { - "type": "changeFloor", - "floorId": "MM1" - }, - { - "type": "setHeroOpacity", - "opacity": 0 + "type": "playBgm", + "name": "mingzhentankenanlansegubao.mp3" }, { "type": "animate", - "name": "heal", + "name": "heidong3", "loc": [ 6, - 9 + 7 ] }, { "type": "setBlock", - "number": "N500", + "number": "N480", "loc": [ [ 6, - 9 + 7 ] - ], - "floorId": "MM1" - }, - { - "type": "move", - "loc": [ - 6, - 9 - ], - "time": 500, - "keep": true, - "steps": [ - "up:5" ] }, - "\t[??,N497]\b[this,6,4]大人", - "\t[??,N493]\b[this,6,3]怎么样?(隐晦的女声)", - "\t[??,N497]\b[this,6,4]黑暗圣子墨奈竟然跑了,他居然没有和光明圣子火并!", - "\t[??,N493]\b[this,6,4]很正常,这里离光明神殿太近了,容易招来光明教皇", - "\t[??,N493]\b[this,6,4]所以,黑暗圣子没有火并是正常的", - "\t[??,N497]\b[this,6,4]可是,我做了这么多,岂不是白费了", - "\t[??,N493]\b[this,6,3]我不会让你的努力白费的。去吧,一定要挑起黑暗圣子和光明圣子、光明圣女的矛盾,让他们大战一场", - "\t[??,N493]\b[this,6,3]我本来还想着如何让黑暗圣子和光明神殿搞起来,没想到他自个儿去了,真是妙哉!啊哈哈哈哈!", - "\t[??,N497]\b[this,6,4]殿下神机妙算,定能将他们玩弄于鼓掌之中!", { - "type": "changeFloor", - "floorId": "CZ10" + "type": "vibrate", + "direction": "horizontal", + "time": 2000, + "speed": 10, + "power": 10 + }, + "\t[??,N477]\b[this,6,7]莫析•辉,刚刚要不是这小子,你可得脱层皮!", + "\t[莫析辉,hero]\b[hero]你是什么人!竟敢偷袭本少爷!啊,你怎么长得和我这么像……", + "\t[??,N477]\b[this,6,7]哼,黑暗骑士们,还不出来,“请”光明圣子到黑暗神殿一坐?", + { + "type": "animate", + "name": "re", + "loc": [ + 5, + 7 + ] }, { - "type": "setHeroOpacity", - "opacity": 1 + "type": "animate", + "name": "re", + "loc": [ + 7, + 7 + ] }, - "\t[莫析辉,hero]\b[hero]继续前进" + { + "type": "setBlock", + "number": "darkKnight", + "loc": [ + [ + 5, + 7 + ] + ] + }, + { + "type": "setBlock", + "number": "darkKnight", + "loc": [ + [ + 7, + 7 + ] + ] + }, + "\t[黑暗骑士,darkKnight]为黑暗而战!", + "\t[莫析辉,hero]\b[hero]我靠!", + "\t[黑暗骑士,darkKnight]光明圣子殿下,麻烦您和我们走一趟吧", + "\t[光明骑士,N440]黑暗神殿欺我光明神殿无人吗?", + { + "type": "animate", + "name": "light", + "loc": [ + 5, + 5 + ] + }, + { + "type": "animate", + "name": "light", + "loc": [ + 7, + 5 + ] + }, + { + "type": "setBlock", + "number": "N440", + "loc": [ + [ + 5, + 5 + ] + ] + }, + { + "type": "setBlock", + "number": "N440", + "loc": [ + [ + 7, + 5 + ] + ] + }, + "\t[光明骑士,N440]为光明而战!", + { + "type": "animate", + "name": "yijianzhanqianye", + "loc": [ + 6, + 6 + ] + }, + { + "type": "animate", + "name": "yijianzhanqianye", + "loc": [ + 5, + 6 + ], + "async": true + }, + { + "type": "animate", + "name": "yijianzhanqianye", + "loc": [ + 7, + 6 + ], + "async": true + }, + { + "type": "animate", + "name": "thunder2", + "loc": [ + 6, + 6 + ] + }, + { + "type": "animate", + "name": "thunder3", + "loc": [ + 6, + 6 + ] + }, + { + "type": "vibrate", + "direction": "diagonal1", + "time": 2000, + "speed": 10, + "power": 10 + }, + "\t[黑暗骑士,darkKnight]殿下,短时间内,我们恐怕无法战胜光明骑士团掳走光明圣子,这里距离光明神殿太近了,怕是会惊扰到光明教皇……", + "\t[??,N477]\b[this,6,7]光明圣子莫析•辉,同时转告光明圣女北纳•蜜西娅,我黑暗圣子墨奈,向你们宣战!有本事的话,来村庄尽头找本少爷!哈哈哈哈哈!", + { + "type": "vibrate", + "direction": "horizontal", + "time": 2000, + "speed": 10, + "power": 10 + }, + { + "type": "hide", + "loc": [ + [ + 6, + 7 + ] + ], + "remove": true + }, + { + "type": "hide", + "loc": [ + [ + 5, + 7 + ] + ], + "remove": true + }, + { + "type": "hide", + "loc": [ + [ + 7, + 7 + ] + ], + "remove": true + }, + "\t[莫析辉,hero]\b[hero]黑暗圣子……竟然是黑暗神殿的圣子……他好像比我厉害……", + "\t[${flag:shengqishi_name},N472]\b[down]殿下,别担心,我会保护你的!", + "\t[莫析辉,hero]\b[hero]没事,我先派人向教皇爷爷禀报一下这里的情况,同时先深入去探查一下黑暗圣子的情况。", + "\t[${flag:shengqishi_name},N472]\b[down]是!那我们一起去吗", + "\t[莫析辉,hero]\b[hero]走吧!", + { + "type": "hide", + "loc": [ + [ + 6, + 4 + ] + ], + "remove": true + }, + { + "type": "hide", + "loc": [ + [ + 5, + 5 + ] + ], + "remove": true + }, + { + "type": "hide", + "loc": [ + [ + 7, + 5 + ] + ], + "remove": true + } + ], + "false": [ + { + "type": "setValue", + "name": "status:hpmax", + "operator": "-=", + "value": "5000" + }, + { + "type": "setValue", + "name": "status:atk", + "operator": "-=", + "value": "100" + }, + { + "type": "setValue", + "name": "status:def", + "operator": "-=", + "value": "100" + }, + { + "type": "setValue", + "name": "status:mdef", + "operator": "-=", + "value": "500" + }, + "\t[莫析辉,hero]\b[hero]啊啊啊啊啊!", + { + "type": "changePos", + "direction": "down" + }, + { + "type": "playBgm", + "name": "mingzhentankenanlansegubao.mp3" + }, + { + "type": "animate", + "name": "heidong3", + "loc": [ + 6, + 7 + ] + }, + { + "type": "setBlock", + "number": "N480", + "loc": [ + [ + 6, + 7 + ] + ] + }, + { + "type": "vibrate", + "direction": "diagonal1", + "time": 2000, + "speed": 10, + "power": 10 + }, + "\t[??,N477]\b[this,6,7]莫析•辉,感觉怎么样?", + "\t[莫析辉,hero]\b[hero]你是什么人!竟敢偷袭本少爷!啊,你怎么长得和我这么像……", + "\t[??,N477]\b[this,6,7]哼,黑暗骑士们,还不出来,“请”光明圣子到黑暗神殿一坐?", + { + "type": "animate", + "name": "re", + "loc": [ + 5, + 7 + ] + }, + { + "type": "animate", + "name": "re", + "loc": [ + 7, + 7 + ] + }, + { + "type": "setBlock", + "number": "darkKnight", + "loc": [ + [ + 5, + 7 + ] + ] + }, + { + "type": "setBlock", + "number": "darkKnight", + "loc": [ + [ + 7, + 7 + ] + ] + }, + "\t[黑暗骑士,darkKnight]为黑暗而战!", + "\t[莫析辉,hero]\b[hero]我靠!", + "\t[黑暗骑士,darkKnight]光明圣子殿下,麻烦您和我们走一趟吧", + "\t[光明骑士,N440]黑暗神殿欺我光明神殿无人吗?", + { + "type": "animate", + "name": "light", + "loc": [ + 5, + 5 + ] + }, + { + "type": "animate", + "name": "light", + "loc": [ + 7, + 5 + ] + }, + { + "type": "setBlock", + "number": "N440", + "loc": [ + [ + 5, + 5 + ] + ] + }, + { + "type": "setBlock", + "number": "N440", + "loc": [ + [ + 7, + 5 + ] + ] + }, + "\t[光明骑士,N440]为光明而战!", + { + "type": "animate", + "name": "yijianzhanqianye", + "loc": [ + 6, + 6 + ] + }, + { + "type": "animate", + "name": "yijianzhanqianye", + "loc": [ + 5, + 6 + ], + "async": true + }, + { + "type": "animate", + "name": "yijianzhanqianye", + "loc": [ + 7, + 6 + ], + "async": true + }, + { + "type": "animate", + "name": "thunder2", + "loc": [ + 6, + 6 + ] + }, + { + "type": "animate", + "name": "thunder3", + "loc": [ + 6, + 6 + ] + }, + { + "type": "vibrate", + "direction": "diagonal1", + "time": 2000, + "speed": 10, + "power": 10 + }, + "\t[黑暗骑士,darkKnight]殿下,短时间内,我们恐怕无法战胜光明骑士团掳走光明圣子,这里距离光明神殿太近了,怕是会惊扰到光明教皇……", + "\t[??,N477]\b[down]光明圣子莫析•辉,同时转告光明圣女北纳•蜜西娅,我黑暗圣子墨奈,向你们宣战!有本事的话,来村庄尽头找本少爷!哈哈哈哈哈!", + { + "type": "hide", + "loc": [ + [ + 6, + 7 + ] + ], + "remove": true + }, + { + "type": "vibrate", + "direction": "horizontal", + "time": 2000, + "speed": 10, + "power": 10 + }, + { + "type": "hide", + "loc": [ + [ + 5, + 7 + ] + ], + "remove": true + }, + { + "type": "hide", + "loc": [ + [ + 7, + 7 + ] + ], + "remove": true + }, + "\t[莫析辉,hero]\b[hero]黑暗圣子……竟然是黑暗神殿的圣子……他好像比我厉害……看来,我得派人去找教皇爷爷禀报一下了……不过我还是需要继续去探查一下他的底细才行……", + "\t[莫析辉,hero]\b[hero]找一些厉害的骑士,几个去禀报教皇陛下这里的事情,几个跟我深入探查!", + "\t[光明骑士,N440]\b[down]是!", + { + "type": "hide", + "loc": [ + [ + 5, + 5 + ] + ], + "remove": true + }, + { + "type": "hide", + "loc": [ + [ + 7, + 5 + ] + ], + "remove": true + } ] - } + }, + { + "type": "setBlock", + "number": "upPortal", + "loc": [ + [ + 6, + 0 + ] + ] + }, + { + "type": "show", + "loc": [ + [ + 6, + 0 + ] + ] + }, + { + "type": "changeFloor", + "floorId": "MM1" + }, + { + "type": "setHeroOpacity", + "opacity": 0 + }, + { + "type": "animate", + "name": "heal", + "loc": [ + 6, + 9 + ] + }, + { + "type": "setBlock", + "number": "N500", + "loc": [ + [ + 6, + 9 + ] + ], + "floorId": "MM1" + }, + { + "type": "move", + "loc": [ + 6, + 9 + ], + "time": 500, + "keep": true, + "steps": [ + "up:5" + ] + }, + "\t[??,N497]\b[this,6,4]大人", + "\t[??,N493]\b[this,6,3]怎么样?(隐晦的女声)", + "\t[??,N497]\b[this,6,4]黑暗圣子墨奈竟然跑了,他居然没有和光明圣子火并!", + "\t[??,N493]\b[this,6,4]很正常,这里离光明神殿太近了,容易招来光明教皇", + "\t[??,N493]\b[this,6,4]所以,黑暗圣子没有火并是正常的", + "\t[??,N497]\b[this,6,4]可是,我做了这么多,岂不是白费了", + "\t[??,N493]\b[this,6,3]我不会让你的努力白费的。去吧,一定要挑起黑暗圣子和光明圣子、光明圣女的矛盾,让他们大战一场", + "\t[??,N493]\b[this,6,3]我本来还想着如何让黑暗圣子和光明神殿搞起来,没想到他自个儿去了,真是妙哉!啊哈哈哈哈!", + "\t[??,N497]\b[this,6,4]殿下神机妙算,定能将他们玩弄于鼓掌之中!", + { + "type": "changeFloor", + "floorId": "CZ10" + }, + { + "type": "setHeroOpacity", + "opacity": 1 + }, + "\t[莫析辉,hero]\b[hero]继续前进" ] }, "afterGetItem": {}, diff --git a/project/floors/GM1.js b/project/floors/GM1.js index a81a7a3..f84a18f 100644 --- a/project/floors/GM1.js +++ b/project/floors/GM1.js @@ -327,6 +327,72 @@ main.floors.GM1= "type": "turnBlock", "direction": "up" } + ], + "0,9": [ + "这里可以计分。\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 + }, + { + "type": "setValue", + "name": "status:money", + "operator": "+=", + "value": "item:I710*100+item:I711*200+item:I712*300+item:I713*400+item:I714*500+item:I415*1000+item:I416*2000+item:yellowKey*40+item:blueKey*120+item:redKey*300" + }, + { + "type": "openShop", + "id": "shop1", + "open": 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-item:I421*100000" + }, + { + "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" + } ] }, "changeFloor": { @@ -418,7 +484,7 @@ main.floors.GM1= [ 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,30204, 0, 0, 0, 0,549, 0, 0, 0, 0,30204, 94], + [104,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,30204,441,442,30204,441,442,30204,441, 0,50049], [50049,50049,50049, 93,50049,50049, 93,50049,50049, 93,50049,50049,50049] diff --git a/project/floors/HA11.js b/project/floors/HA11.js index 15ccb56..4bdb02c 100644 --- a/project/floors/HA11.js +++ b/project/floors/HA11.js @@ -270,8 +270,8 @@ main.floors.HA11= [140166,140166,140166,140166,140166,140166,140166, 81,140166,140166,140166,140166,140166], [140166,688, 0, 0, 81, 0, 0, 0,1022, 0, 0,688,140166], [140166,140166,907,140166,140166,140166, 81,140166,140166,140166,851,140166,140166], - [140166, 0, 0, 0,140166, 0,737, 0,140166, 0,687, 0,140166], - [140166, 0, 0, 0,140166,348, 0, 21,140166, 21, 0, 0,140166], + [140166, 0, 0, 0,140166, 0,737, 0,140166, 0, 0, 0,140166], + [140166, 0, 0, 0,140166,348, 0, 21,140166, 21, 0,687,140166], [140166, 0, 93, 0,140166,140166,140166,140166,140166,140166,140166,140166,140166] ], "bgmap": [ diff --git a/project/floors/LZ10.js b/project/floors/LZ10.js index eeb8978..239acaa 100644 --- a/project/floors/LZ10.js +++ b/project/floors/LZ10.js @@ -965,6 +965,16 @@ main.floors.LZ10= ], "floorId": "GM1", "remove": true + }, + { + "type": "setValue", + "name": "status:money", + "operator": "+=", + "value": "5000" + }, + { + "type": "insert", + "name": "回收钥匙商店" } ], "false": [ diff --git a/project/floors/MJ2.js b/project/floors/MJ2.js index 6dbca49..94938bb 100644 --- a/project/floors/MJ2.js +++ b/project/floors/MJ2.js @@ -19,12 +19,18 @@ main.floors.MJ2= "events": {}, "changeFloor": { "12,0": { - "floorId": ":before", - "stair": "upFloor" + "floorId": "MJ1", + "loc": [ + 12, + 1 + ] }, "0,6": { - "floorId": ":next", - "stair": "downFloor" + "floorId": "MJ3", + "loc": [ + 0, + 6 + ] } }, "beforeBattle": { diff --git a/project/floors/MJ3.js b/project/floors/MJ3.js index c959f24..be41c07 100644 --- a/project/floors/MJ3.js +++ b/project/floors/MJ3.js @@ -19,12 +19,18 @@ main.floors.MJ3= "events": {}, "changeFloor": { "0,6": { - "floorId": ":before", - "stair": "upFloor" + "floorId": "MJ2", + "loc": [ + 0, + 6 + ] }, "0,12": { - "floorId": ":next", - "stair": "downFloor" + "floorId": "MJ4", + "loc": [ + 0, + 12 + ] } }, "beforeBattle": {}, diff --git a/project/floors/MJ4.js b/project/floors/MJ4.js index 1110d31..a8b04ca 100644 --- a/project/floors/MJ4.js +++ b/project/floors/MJ4.js @@ -19,12 +19,18 @@ main.floors.MJ4= "events": {}, "changeFloor": { "0,12": { - "floorId": ":before", - "stair": "upFloor" + "floorId": "MJ3", + "loc": [ + 0, + 12 + ] }, "6,12": { - "floorId": ":next", - "stair": "downFloor" + "floorId": "MJ5", + "loc": [ + 6, + 12 + ] } }, "beforeBattle": {}, diff --git a/project/floors/MJ5.js b/project/floors/MJ5.js index 21fae81..e93cb2a 100644 --- a/project/floors/MJ5.js +++ b/project/floors/MJ5.js @@ -52,82 +52,22 @@ main.floors.MJ5= ] } ] - }, - "10,8": [ - "这里可以计分。\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 - }, - { - "type": "setValue", - "name": "status:money", - "operator": "+=", - "value": "item:I710*100+item:I711*200+item:I712*300+item:I713*400+item:I714*500+item:I415*1000+item:I416*2000+item:yellowKey*40+item:blueKey*120+item:redKey*300" - }, - { - "type": "openShop", - "id": "shop1", - "open": 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" - } - ] + } }, "changeFloor": { "6,12": { - "floorId": ":before", - "stair": "upFloor" + "floorId": "MJ4", + "loc": [ + 6, + 12 + ] }, "11,12": { - "floorId": ":next", - "stair": "downFloor" + "floorId": "MJ6", + "loc": [ + 11, + 12 + ] } }, "beforeBattle": {}, @@ -341,7 +281,7 @@ main.floors.MJ5= [ 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, 85, 0, 0, 0, 4], - [ 4, 4, 4, 4, 4, 4, 83, 4, 4, 4,1135, 0, 4], + [ 4, 4, 4, 4, 4, 4, 83, 4, 4, 4, 4, 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/MJ6.js b/project/floors/MJ6.js index c24bbcf..f408a66 100644 --- a/project/floors/MJ6.js +++ b/project/floors/MJ6.js @@ -19,12 +19,18 @@ main.floors.MJ6= "events": {}, "changeFloor": { "11,12": { - "floorId": ":before", - "stair": "upFloor" + "floorId": "MJ5", + "loc": [ + 11, + 12 + ] }, "0,0": { - "floorId": ":next", - "stair": "downFloor" + "floorId": "MJ7", + "loc": [ + 0, + 0 + ] } }, "beforeBattle": {}, diff --git a/project/floors/MJ7.js b/project/floors/MJ7.js index 0470a2a..6472fc7 100644 --- a/project/floors/MJ7.js +++ b/project/floors/MJ7.js @@ -19,12 +19,18 @@ main.floors.MJ7= "events": {}, "changeFloor": { "0,0": { - "floorId": ":before", - "stair": "upFloor" + "floorId": "MJ6", + "loc": [ + 0, + 0 + ] }, "10,12": { - "floorId": ":next", - "stair": "downFloor" + "floorId": "MJ8", + "loc": [ + 10, + 12 + ] } }, "beforeBattle": {}, diff --git a/project/floors/MJ8.js b/project/floors/MJ8.js index 9f773fa..d5d955b 100644 --- a/project/floors/MJ8.js +++ b/project/floors/MJ8.js @@ -19,12 +19,18 @@ main.floors.MJ8= "events": {}, "changeFloor": { "10,12": { - "floorId": ":before", - "stair": "upFloor" + "floorId": "MJ7", + "loc": [ + 10, + 12 + ] }, "0,10": { - "floorId": ":next", - "stair": "downFloor" + "floorId": "MJ9", + "loc": [ + 0, + 10 + ] } }, "beforeBattle": {}, diff --git a/project/floors/MJ9.js b/project/floors/MJ9.js index 1ad7336..4ec4af9 100644 --- a/project/floors/MJ9.js +++ b/project/floors/MJ9.js @@ -19,8 +19,11 @@ main.floors.MJ9= "events": {}, "changeFloor": { "0,10": { - "floorId": ":before", - "stair": "upFloor" + "floorId": "MJ8", + "loc": [ + 0, + 10 + ] }, "11,10": { "floorId": "MJ10", diff --git a/project/floors/ZH1.js b/project/floors/ZH1.js index 183c094..5dca651 100644 --- a/project/floors/ZH1.js +++ b/project/floors/ZH1.js @@ -128,7 +128,84 @@ main.floors.ZH1= "type": "if", "condition": "switch:A", "true": [ - "你已经购买了此物" + { + "type": "if", + "condition": "((!item:I421)&&(item:I723||core.hasEquip('I723')))", + "true": [ + { + "type": "confirm", + "text": "确认要合成圣杯吗? (花费5000金币)", + "yes": [ + { + "type": "if", + "condition": "(status:money>=5000)", + "true": [ + { + "type": "setValue", + "name": "status:money", + "operator": "-=", + "value": "5000" + }, + { + "type": "if", + "condition": "(equip:1=='I723')", + "true": [ + { + "type": "unloadEquip", + "pos": 1 + } + ] + }, + { + "type": "if", + "condition": "(equip:3=='I723')", + "true": [ + { + "type": "unloadEquip", + "pos": 3 + } + ] + }, + { + "type": "setValue", + "name": "item:I722", + "operator": "+=", + "value": "-1" + }, + { + "type": "setValue", + "name": "item:I723", + "operator": "+=", + "value": "-1" + }, + { + "type": "setValue", + "name": "item:I421", + "operator": "+=", + "value": "1" + }, + { + "type": "setValue", + "name": "status:manamax", + "value": "-1" + } + ], + "false": [ + { + "type": "playSound", + "name": "操作失败" + }, + "你的金币不足!" + ] + } + ], + "no": [] + } + ], + "false": [ + "你已经购买了此物" + ] + } ], "false": [ "魔力卷轴,购买价格5000金币,效果:击败敌人后额外获得敌人生命值20‱再开根号的魔力值,最多50点。", @@ -189,7 +266,84 @@ main.floors.ZH1= "type": "if", "condition": "switch:A", "true": [ - "你已经购买了此物" + { + "type": "if", + "condition": "((!item:I421)&&item:I722)", + "true": [ + { + "type": "confirm", + "text": "确认要合成圣杯吗? (花费5000金币)", + "yes": [ + { + "type": "if", + "condition": "(status:money>=5000)", + "true": [ + { + "type": "setValue", + "name": "status:money", + "operator": "-=", + "value": "5000" + }, + { + "type": "if", + "condition": "(equip:1=='I723')", + "true": [ + { + "type": "unloadEquip", + "pos": 1 + } + ] + }, + { + "type": "if", + "condition": "(equip:3=='I723')", + "true": [ + { + "type": "unloadEquip", + "pos": 3 + } + ] + }, + { + "type": "setValue", + "name": "item:I722", + "operator": "+=", + "value": "-1" + }, + { + "type": "setValue", + "name": "item:I723", + "operator": "+=", + "value": "-1" + }, + { + "type": "setValue", + "name": "item:I421", + "operator": "+=", + "value": "1" + }, + { + "type": "setValue", + "name": "status:manamax", + "value": "-1" + } + ], + "false": [ + { + "type": "playSound", + "name": "操作失败" + }, + "你的金币不足!" + ] + } + ], + "no": [] + } + ], + "false": [ + "你已经购买了此物" + ] + } ], "false": [ "生命卷轴,购买价格5000金币,效果:击败敌人后额外获得5‰最大生命值的生命。", diff --git a/project/functions.js b/project/functions.js index f4a2b84..70b3682 100644 --- a/project/functions.js +++ b/project/functions.js @@ -422,6 +422,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = if (core.hasEquip('I1116')) (core.status.hero.mana += 10) if (core.hasItem('I722')) { core.status.hero.mana += Math.min(Math.sqrt(damageInfo.mon_hp / 500), 50) } + if (core.hasItem('I421')) { core.status.hero.mana += Math.min(damageInfo.mon_hp / 5000, 10000) } //回复生命值 // 事件的处理 var todo = []; @@ -505,7 +506,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(); + if (core.material.items[itemId].cls == 'equips' || itemId == 'I715' || itemId == 'I421') core.plugin.calcEquip(); var todo = []; // 检查该点的获得道具后事件。 if (core.status.floorId == null) return; @@ -915,6 +916,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = if (core.getFlag('skill', 0) == 3) { damage -= hero_def * 0.5 + hero_mdef * 0.2 + 50 } if (core.hasEquip('I723')) { damage -= core.status.hero.hpmax / 200 } + if (core.hasItem('I421')) { damage -= core.status.hero.hpmax / 100 } if (core.hasSpecial(mon_special, 28)) { var vampire_damage = (hero_hp - damage) / -5; diff --git a/project/items.js b/project/items.js index f89b16c..f8f6055 100644 --- a/project/items.js +++ b/project/items.js @@ -343,7 +343,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "cls": "tools", "name": "炸弹", "text": "可以炸掉勇士面前的怪物", - "useItemEffect": "(function () {\n\tvar bombList = []; // 炸掉的怪物坐标列表\n\tvar todo = []; // 炸弹后事件\n\tvar money = 0,\n\t\texp = 0; // 炸弹获得的金币和经验\n\n\tvar canBomb = function (x, y) {\n\t\tvar block = core.getBlock(x, y);\n\t\tif (block == null || block.disable || block.event.cls.indexOf('enemy') != 0) return false;\n\t\tvar enemy = core.material.enemys[block.event.id];\n\t\treturn enemy && !enemy.notBomb;\n\t};\n\n\tvar bomb = function (x, y) {\n\t\tif (!canBomb(x, y)) return;\n\t\tbombList.push([x, y]);\n\t\tvar id = core.getBlockId(x, y),\n\t\t\tenemy = core.material.enemys[id];\n\t\thero.money += core.getEnemyValue(enemy, 'money', x, y) || 0;\n\t\thero.exp += core.getEnemyValue(enemy, 'exp', x, y) || 0;\n\t\tcore.push(todo, core.floors[core.status.floorId].afterBattle[x + \",\" + y]);\n\t\tcore.push(todo, enemy.afterBattle);\n\t\tcore.removeBlock(x, y);\n\t\tcore.insertCommonEvent('回收钥匙商店')\n\t}\n\n\t// 如果要多方向可炸,把这里的false改成true\n\tif (false) {\n\t\tvar scan = core.utils.scan; // 多方向炸时默认四方向,如果要改成八方向炸可以改成 core.utils.scan2\n\t\tfor (var direction in scan) {\n\t\t\tvar delta = scan[direction];\n\t\t\tbomb(core.getHeroLoc('x') + delta.x, core.getHeroLoc('y') + delta.y);\n\t\t}\n\t} else {\n\t\t// 仅炸当前\n\t\tbomb(core.nextX(), core.nextY());\n\t}\n\n\tif (bombList.length == 0) {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip('当前无法使用' + core.material.items[itemId].name, itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n\n\tcore.playSound('炸弹');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\n\n\t// 取消这里的注释可以炸弹后获得金币和经验\n\t// core.status.hero.money += money;\n\t// core.status.hero.exp += exp;\n\n\t// 取消这里的注释可以炸弹引发战后事件\n\t// if (todo.length > 0) core.insertAction(todo);\n\n})();", + "useItemEffect": "(function () {\n\tvar bombList = []; // 炸掉的怪物坐标列表\n\tvar todo = []; // 炸弹后事件\n\tvar money = 0,\n\t\texp = 0; // 炸弹获得的金币和经验\n\n\tvar canBomb = function (x, y) {\n\t\tvar block = core.getBlock(x, y);\n\t\tif (block == null || block.disable || block.event.cls.indexOf('enemy') != 0) return false;\n\t\tvar enemy = core.material.enemys[block.event.id];\n\t\treturn enemy && !enemy.notBomb;\n\t};\n\n\tvar bomb = function (x, y) {\n\t\tif (!canBomb(x, y)) return;\n\t\tbombList.push([x, y]);\n\t\tvar id = core.getBlockId(x, y),\n\t\t\tenemy = core.material.enemys[id];\n\t\thero.money += core.getEnemyValue(enemy, 'money', x, y) || 0;\n\t\thero.exp += core.getEnemyValue(enemy, 'exp', x, y) || 0;\n\t\tcore.push(todo, core.floors[core.status.floorId].afterBattle[x + \",\" + y]);\n\t\tcore.push(todo, enemy.afterBattle);\n\t\tcore.insertCommonEvent('回收钥匙商店')\n\t\tcore.removeBlock(x, y);\n\t}\n\n\t// 如果要多方向可炸,把这里的false改成true\n\tif (false) {\n\t\tvar scan = core.utils.scan; // 多方向炸时默认四方向,如果要改成八方向炸可以改成 core.utils.scan2\n\t\tfor (var direction in scan) {\n\t\t\tvar delta = scan[direction];\n\t\t\tbomb(core.getHeroLoc('x') + delta.x, core.getHeroLoc('y') + delta.y);\n\t\t}\n\t} else {\n\t\t// 仅炸当前\n\t\tbomb(core.nextX(), core.nextY());\n\t}\n\n\tif (bombList.length == 0) {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip('当前无法使用' + core.material.items[itemId].name, itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n\n\tcore.playSound('炸弹');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\n\n\t// 取消这里的注释可以炸弹后获得金币和经验\n\t// core.status.hero.money += money;\n\t// core.status.hero.exp += exp;\n\n\t// 取消这里的注释可以炸弹引发战后事件\n\t// if (todo.length > 0) core.insertAction(todo);\n\n})();", "canUseItemEffect": "true" }, "centerFly": { @@ -1177,9 +1177,10 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "canUseItemEffect": "true" }, "I421": { - "cls": "items", - "name": "新物品", - "canUseItemEffect": "true" + "cls": "constants", + "name": "圣杯", + "canUseItemEffect": "true", + "text": "一个非常咸鱼的杯子。持有此杯战斗后回复最大生命值的1%,并在战后回复怪物生命1/5000的魔力,最多回复10000点。持有此杯后计分减少100000。" }, "I422": { "cls": "tools", diff --git a/project/maps.js b/project/maps.js index 21f5395..5a7c2e7 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":"if","condition":"item:hammer","true":["因使用圣锤,黑暗圣子灵魂十分虚弱,消散了……",{"type":"setValue","name":"status:mana","operator":"+=","value":"20000"},{"type":"hide","remove":true},{"type":"exit"}]},{"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}"}]}, + "1124": {"cls":"npc48","id":"N1124","event":[{"type":"if","condition":"item:hammer","true":["因使用圣锤,黑暗圣子灵魂十分虚弱,消散了……",{"type":"setValue","name":"status:mana","operator":"+=","value":"20000"},{"type":"hide","remove":true},{"type":"exit"}]},"\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}"}]}, "1125": {"cls":"enemys","id":"E1125"}, "1126": {"cls":"enemys","id":"E1126"}, "1127": {"cls":"enemys","id":"E1127"}, diff --git a/project/materials/items.png b/project/materials/items.png index 0b36219..fe887cd 100644 Binary files a/project/materials/items.png and b/project/materials/items.png differ