修复血色骑士被圣骑士打完后勇者再打一遍的问题;修复炸弹不加金币;CZ7骷髅王被圣骑士打掉后也能魔杖加蓝;修复部分楼层圣骑士名字显示
This commit is contained in:
parent
de13d41470
commit
517cc404da
@ -1 +1 @@
|
||||
{"viewportLoc":[0,0],"lastUsed":[{"idnum":1,"id":"yellowWall","images":"animates","y":10,"recent":1673440212744,"frequent":2},{"idnum":211,"id":"skeletonCaptain","images":"enemys","y":10,"recent":1673440202872,"frequent":1}],"editor_multi.fontSize":14,"editorLastFloorId":"sample1"}
|
||||
{"viewportLoc":[0,0],"lastUsed":[{"idnum":1,"id":"yellowWall","images":"animates","y":10,"recent":1673440212744,"frequent":2},{"idnum":211,"id":"skeletonCaptain","images":"enemys","y":10,"recent":1673440202872,"frequent":1}],"editor_multi.fontSize":14,"editorLastFloorId":"NH5"}
|
@ -307,8 +307,8 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
|
||||
"E784": {"name":"大爬虫","hp":270000,"atk":80000,"def":35500,"money":320,"exp":0,"point":0,"special":[],"level":"圣武高阶","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"beforeBattle":[{"type":"if","condition":"(flag:shengqishi>36)","true":[{"type":"animate","name":"sword"},{"type":"setBlock","number":"N472"},"\t[${flag:shengqishi_name},N472]\b[this]此等骑士,不堪一击!",{"type":"setValue","name":"status:money","operator":"+=","value":"322"},"${flag:shengqishi_name}击杀魔王,获得322枚金币。",{"type":"insert","name":"回收钥匙商店"},{"type":"hide","remove":true}],"false":[]}]},
|
||||
"E785": {"name":"猪猪虫","hp":260000,"atk":84000,"def":46500,"money":340,"exp":0,"point":0,"special":[],"level":"圣武高阶","notBomb":true,"displayIdInBook":null,"X":35,"Y":15},
|
||||
"E786": {"name":"大胖虫","hp":470000,"atk":8000,"def":55500,"money":280,"exp":0,"point":0,"special":[2,32],"level":"圣武高阶","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"Z":50},
|
||||
"E787": {"name":"紫盾武士","hp":760000,"atk":112000,"def":49500,"money":420,"exp":0,"point":0,"special":[30],"level":"一阶无上","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"value30_2":20,"value30_1":1200},
|
||||
"E788": {"name":"黄盾武士","hp":560000,"atk":104000,"def":56500,"money":400,"exp":0,"point":0,"special":[30],"level":"一阶无上","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"value30_1":1250,"value30_2":20},
|
||||
"E787": {"name":"紫盾武士","hp":760000,"atk":112000,"def":49500,"money":420,"exp":0,"point":0,"special":[30],"level":"一阶无上","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"value30_2":30,"value30_1":1200},
|
||||
"E788": {"name":"黄盾武士","hp":560000,"atk":104000,"def":56500,"money":400,"exp":0,"point":0,"special":[30],"level":"一阶无上","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"value30_1":1250,"value30_2":30},
|
||||
"E789": {"name":"灵石兽","hp":160000,"atk":152000,"def":100500,"money":800,"exp":0,"point":0,"special":[30,32],"level":"一阶无上","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"value30_2":30,"value30_1":3000,"Z":90},
|
||||
"E790": {"name":"双手剑士","hp":350000,"atk":145000,"def":60500,"money":350,"exp":0,"point":0,"special":[30],"level":"一阶无上","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"value30_2":30,"value30_1":1000,"Z":90},
|
||||
"E791": {"name":"赤色双手剑士","hp":220000,"atk":147000,"def":72000,"money":360,"exp":0,"point":0,"special":[],"level":"一阶无上","notBomb":true,"displayIdInBook":null,"X":35,"Y":15,"value30_2":30,"value30_1":1000,"Z":90,"beforeBattle":[{"type":"if","condition":"(flag:shengqishi>42)","true":[{"type":"animate","name":"sword"},{"type":"setBlock","number":"N510"},"\t[${flag:shengqishi_name},N472]\b[this]此等骑士,不堪一击!",{"type":"setValue","name":"status:money","operator":"+=","value":"364"},"${flag:shengqishi_name}击杀怪物,获得364枚金币。",{"type":"insert","name":"回收钥匙商店"},{"type":"hide","remove":true}],"false":[]}]},
|
||||
@ -321,7 +321,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
|
||||
"E798": {"name":"金色武士","hp":1050000,"atk":215000,"def":118000,"money":480,"exp":0,"point":0,"special":[],"level":"三阶无上","displayIdInBook":null},
|
||||
"E799": {"name":"墨武骑士","hp":1650000,"atk":240000,"def":136000,"money":520,"exp":0,"point":0,"special":[],"level":"四阶无上","displayIdInBook":null},
|
||||
"E800": {"name":"黑影武士","hp":1480000,"atk":252000,"def":125000,"money":500,"exp":0,"point":0,"special":[30],"level":"四阶无上","displayIdInBook":null,"value30_1":3000,"value30_2":30},
|
||||
"E801": {"name":"血色骑士","hp":2080000,"atk":232000,"def":65000,"money":500,"exp":0,"point":0,"special":[36,37],"level":"四阶无上","displayIdInBook":null,"value30_1":3000,"value30_2":30,"X":60,"Y":20,"beforeBattle":[{"type":"if","condition":"(flag:shengqishi>=55)","true":[{"type":"animate","name":"yijianzhanqianye"},"\t[${flag:shengqishi_name},N510]\b[this]让我来!","金币+550",{"type":"setValue","name":"status:money","operator":"+=","value":"550"}],"false":[]}]},
|
||||
"E801": {"name":"血色骑士","hp":2080000,"atk":232000,"def":65000,"money":500,"exp":0,"point":0,"special":[36,37],"level":"四阶无上","displayIdInBook":null,"value30_1":3000,"value30_2":30,"X":60,"Y":20,"beforeBattle":[{"type":"if","condition":"(flag:shengqishi>=55)","true":[{"type":"animate","name":"yijianzhanqianye"},"\t[${flag:shengqishi_name},N510]\b[this]让我来!","金币+550",{"type":"setValue","name":"status:money","operator":"+=","value":"550"},{"type":"hide","remove":true}],"false":[]}]},
|
||||
"E802": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
"E803": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
"E804": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
|
@ -129,6 +129,10 @@ main.floors.CZ7=
|
||||
"\t[${flag:shengqishi_name},N472]\b[up]嘿嘿",
|
||||
"\t[光明圣子,hero]\b[hero]你既然来了,就帮我去前面探探路吧",
|
||||
"\t[${flag:shengqishi_name},N472]\b[up]嘿嘿,遵命",
|
||||
{
|
||||
"type": "insert",
|
||||
"name": "回收钥匙商店"
|
||||
},
|
||||
{
|
||||
"type": "hide",
|
||||
"remove": true
|
||||
|
@ -93,7 +93,7 @@ main.floors.GM1=
|
||||
],
|
||||
"remove": true
|
||||
},
|
||||
"\t[莫析辉,hero]\b[hero]\\c[30]本塔存在幸运金币,和打怪回魔力的法杖,且越到后面获得的法杖回魔力效果越强,因此建议留怪。"
|
||||
"\\c[30]本塔存在幸运金币,和打怪回魔力的法杖,且越到后面获得的法杖回魔力效果越强,因此建议留怪。"
|
||||
],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
|
@ -15,7 +15,7 @@ main.floors.LZ1=
|
||||
"bgm": "mingyuetianya.mp3",
|
||||
"firstArrive": [
|
||||
"龙族剧情按照与圣骑士亲密度极好情况进行(亲密度不够依旧按照亲密度达到进行),玩法还是按照实际亲密度进行(亲密度不够不会额外获得帮助)。",
|
||||
"因圣骑士唐佳成的感应,光明圣子莫析辉与圣骑士二人来到了龙族,这块神秘的,远离光明神殿的岛屿……",
|
||||
"因圣骑士${flag:shengqishi_name}的感应,光明圣子莫析辉与圣骑士二人来到了龙族,这块神秘的,远离光明神殿的岛屿……",
|
||||
"本区和魔界区为并行,魔界区请到隐世学院10开传送门。"
|
||||
],
|
||||
"eachArrive": [],
|
||||
|
@ -57,11 +57,11 @@ main.floors.LZ10=
|
||||
"\t[龙族族长,dragon]\b[this,6,3]龙族向来保守,此子邪恶,与深渊做了交易,变得异常强大,故我等将它驱逐出龙族。",
|
||||
"\t[莫析辉,hero]\b[hero]深渊可是邪恶之地,黛默琳,你居然跑去了深渊!",
|
||||
"\t[黛默琳,N481]\b[this,4,7]要获得实力,自然得用非同寻常的方法!",
|
||||
"\t[唐佳成,N510]\b[this,4,3]这条龙,看起来也不过如此嘛!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,3]这条龙,看起来也不过如此嘛!",
|
||||
"\t[黛默琳,N481]\b[this,4,7]小子,你有多大的本事,竟敢如此夸口!",
|
||||
"\t[唐佳成,N510]\b[this,4,3]有多大的本事,你试试我的拳头不就知道了?",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,3]有多大的本事,你试试我的拳头不就知道了?",
|
||||
"\t[黛默琳,N481]\b[this,4,7]要知道,我还从未输过呢!",
|
||||
"\t[唐佳成,N510]\b[this,4,3]哦?是吗?那正好,我也从未输过。",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,3]哦?是吗?那正好,我也从未输过。",
|
||||
"\t[黛默琳,N481]\b[this,4,7]废话少说,接招吧!",
|
||||
"\t[莫析辉,hero]\b[hero]小心一些,她很强!",
|
||||
{
|
||||
@ -181,7 +181,7 @@ main.floors.LZ10=
|
||||
{
|
||||
"type": "waitAsync"
|
||||
},
|
||||
"\t[唐佳成,N510]\b[this,4,3]一往无前!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,3]一往无前!",
|
||||
{
|
||||
"type": "jump",
|
||||
"from": [
|
||||
@ -262,7 +262,7 @@ main.floors.LZ10=
|
||||
]
|
||||
]
|
||||
},
|
||||
"\t[唐佳成,N510]\b[this,4,6]哼!圣光守护!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,6]哼!圣光守护!",
|
||||
{
|
||||
"type": "animate",
|
||||
"name": "emo",
|
||||
@ -369,7 +369,7 @@ main.floors.LZ10=
|
||||
"type": "waitAsync"
|
||||
},
|
||||
"\t[黛默琳,N481]\b[this,4,7]难缠的家伙!",
|
||||
"\t[唐佳成,N510]\b[this,4,3]再来!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,3]再来!",
|
||||
{
|
||||
"type": "jump",
|
||||
"from": [
|
||||
@ -580,10 +580,10 @@ main.floors.LZ10=
|
||||
{
|
||||
"type": "waitAsync"
|
||||
},
|
||||
"\t[唐佳成,N510]\b[this,4,3]不错嘛!",
|
||||
"\t[唐佳成,N510]\b[this,4,3]圣子殿下!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,3]不错嘛!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,3]圣子殿下!",
|
||||
"\t[莫析辉,hero]\b[hero]知道!",
|
||||
"\t[唐佳成,N510]\b[this,4,3]再吃我一招!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,3]再吃我一招!",
|
||||
{
|
||||
"type": "jump",
|
||||
"from": [
|
||||
@ -890,9 +890,9 @@ main.floors.LZ10=
|
||||
},
|
||||
"\t[龙族族长,dragon]\b[this,6,3]多谢二位助龙族解除此次危机啊!",
|
||||
"\t[莫析辉,hero]\b[hero]举手之劳而已。",
|
||||
"\t[唐佳成,N510]\b[this,4,6]嗯,那殿下,我们回去吧!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,6]嗯,那殿下,我们回去吧!",
|
||||
"\t[莫析辉,hero]\b[hero]我想,我们应该先去\r[red]\\c[30]精灵王国\\c[]\r[]、兽人族、矮人族看看老同学了……",
|
||||
"\t[唐佳成,N510]\b[this,4,6]啊?",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,6]啊?",
|
||||
"\t[莫析辉,hero]\b[hero]黑暗神殿如今异常活跃,咱们多联系几个朋友吧,毕竟如今东凌帝国、南荒帝国、北寒帝国都陷入了混乱……emmm,西武帝国的皇帝也投靠了黛默琳,我一怒之下杀了他,现在也内乱了……我可能真的做错了……现在得赶紧想办法对付黑暗神殿!",
|
||||
"建议玩家在进入精灵王国之前通关魔界!",
|
||||
{
|
||||
@ -1202,9 +1202,9 @@ main.floors.LZ10=
|
||||
},
|
||||
"\t[龙族族长,dragon]\b[this,6,3]多谢二位助龙族解除此次危机啊!",
|
||||
"\t[莫析辉,hero]\b[hero]举手之劳而已。",
|
||||
"\t[唐佳成,N510]\b[this,4,6]嗯,那殿下,我们回去吧!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,6]嗯,那殿下,我们回去吧!",
|
||||
"\t[莫析辉,hero]\b[hero]我想,我们应该先去\r[red]\\c[30]精灵王国\\c[]\r[]、兽人族、矮人族看看老同学了……",
|
||||
"\t[唐佳成,N510]\b[this,4,6]啊?",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,4,6]啊?",
|
||||
"\t[莫析辉,hero]\b[hero]黑暗神殿如今异常活跃,咱们多联系几个朋友吧,毕竟如今东凌帝国、南荒帝国、北寒帝国都陷入了混乱……emmm,西武帝国的皇帝也投靠了黛默琳,我一怒之下杀了他,现在也内乱了……我可能真的做错了……现在得赶紧想办法对付黑暗神殿!",
|
||||
"建议玩家在进入精灵王国之前通关魔界!",
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ main.floors.LZ2=
|
||||
"events": {
|
||||
"6,9": [
|
||||
"\t[莫析辉,hero]\b[hero]你感觉怎么样?",
|
||||
"\t[唐佳成,N510]\b[this]殿下,我感觉浑身燥热,也许龙族与我渊缘颇深……或许,我就是龙族的呢……",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this]殿下,我感觉浑身燥热,也许龙族与我渊缘颇深……或许,我就是龙族的呢……",
|
||||
"\t[莫析辉,hero]\b[hero]你是龙族的?咱们仔细查探一番吧!",
|
||||
{
|
||||
"type": "hide",
|
||||
|
@ -26,13 +26,13 @@ main.floors.LZ8=
|
||||
"\t[莫析辉,hero]\b[hero]咦?前辈何事?",
|
||||
"\t[???,N1135]\b[this,2,10]没你的事,我找他!",
|
||||
"\t[莫析辉,hero]\b[hero]……",
|
||||
"\t[唐佳成,N510]\b[this,1,11]莫名其妙,圣子殿下,咱们不管它,走吧!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,1,11]莫名其妙,圣子殿下,咱们不管它,走吧!",
|
||||
"\t[???,N1135]\b[this,2,10]等一下!我是龙族族长,黄金圣龙大人别走啊!",
|
||||
"\t[莫析辉,hero]\b[hero]黄金圣龙?",
|
||||
"\t[龙族族长,N1135]\b[this,2,10]没错,这位小哥身负异禀,浑身散发的力量就是龙族最强的黄金圣龙的气息啊!",
|
||||
"\t[唐佳成,N510]\b[this,1,11]哦?我竟然是龙族。",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,1,11]哦?我竟然是龙族。",
|
||||
"\t[龙族族长,N1135]\b[this,2,10]想必你早有感应吧!",
|
||||
"\t[唐佳成,N510]\b[this,1,11]是的,我来这里是感受到自己体内的力量隐隐被封印着,但是有一种莫名的指引,让我来到这里解开封印。",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,1,11]是的,我来这里是感受到自己体内的力量隐隐被封印着,但是有一种莫名的指引,让我来到这里解开封印。",
|
||||
"\t[龙族族长,N1135]\b[this,2,10]那是自然。你来到这里,可以真正的解开你体内黄金圣龙的力量。跟我来吧!",
|
||||
{
|
||||
"type": "setCurtain",
|
||||
@ -55,11 +55,11 @@ main.floors.LZ8=
|
||||
"time": 500
|
||||
},
|
||||
"\t[龙族族长,N1135]\b[this,2,10]尊敬的黄金圣龙大人,请您留在龙族,守护龙族吧!",
|
||||
"\t[唐佳成,N510]\b[this,1,11]不行,我要守护圣子殿下,才不留在这里!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,1,11]不行,我要守护圣子殿下,才不留在这里!",
|
||||
"\t[龙族族长,N1135]\b[this,2,10]你!",
|
||||
"\t[唐佳成,N510]\b[this,1,11]我是绝不会留在这里的。",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,1,11]我是绝不会留在这里的。",
|
||||
"\t[龙族族长,N1135]\b[this,2,10]怎么能这样呢?每个黄金圣龙都应该留在龙族的,为了龙族的昌盛。",
|
||||
"\t[唐佳成,N510]\b[this,1,11]但我对龙族毫无感觉,为什么要留在这里?",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,1,11]但我对龙族毫无感觉,为什么要留在这里?",
|
||||
"\t[龙族族长,N1135]\b[this,2,10]……",
|
||||
{
|
||||
"type": "vibrate",
|
||||
@ -80,9 +80,9 @@ main.floors.LZ8=
|
||||
],
|
||||
"remove": true
|
||||
},
|
||||
"\t[唐佳成,N510]\b[this,1,11]……",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,1,11]……",
|
||||
"\t[莫析辉,hero]\b[hero]龙族这么厉害,还会有敌人入侵?咱去看看?",
|
||||
"\t[唐佳成,N510]\b[this,1,11]好。",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,1,11]好。",
|
||||
{
|
||||
"type": "hide",
|
||||
"loc": [
|
||||
|
@ -16,8 +16,8 @@ main.floors.MJ1=
|
||||
"firstArrive": [
|
||||
"魔界剧情按照与圣骑士亲密度达到进行。(后面五层需要圣骑士亲密度达到100开启。)",
|
||||
"\t[莫析辉,hero]\b[hero]可恶啊,这个魔界怎么没有任何红黄蓝绿白宝石……",
|
||||
"\t[唐佳成,N510]\b[this,6,12]据说魔界的怪物都将所有的能量汲取了,如果想要从它们口中夺取能量,只能杀死它们。",
|
||||
"\t[唐佳成,N510]\b[this,6,12]不过殿下方向,我会一直守护殿下的。",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,6,12]据说魔界的怪物都将所有的能量汲取了,如果想要从它们口中夺取能量,只能杀死它们。",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,6,12]不过殿下方向,我会一直守护殿下的。",
|
||||
{
|
||||
"type": "hide",
|
||||
"loc": [
|
||||
|
@ -28,11 +28,11 @@ main.floors.MJ10=
|
||||
"direction": "up"
|
||||
},
|
||||
"\t[莫析辉,hero]\b[hero]咦?怎么回事?",
|
||||
"\t[唐佳成,N510]\b[this,6,10]圣子殿下,小心一些!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,6,10]圣子殿下,小心一些!",
|
||||
"\t[莫析辉,hero]\b[hero]你打不过它吗?要我帮忙吗?",
|
||||
"\t[唐佳成,N510]\b[this,6,10]我能打过它,但是……它有两个头,上下两个头,只要其中一个不死,就会立刻复活……",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,6,10]我能打过它,但是……它有两个头,上下两个头,只要其中一个不死,就会立刻复活……",
|
||||
"\t[莫析辉,hero]\b[hero]原来如此!那你攻上面,我攻下面!",
|
||||
"\t[唐佳成,N510]\b[this,6,10]好,那就拜托殿下了!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,6,10]好,那就拜托殿下了!",
|
||||
{
|
||||
"type": "jump",
|
||||
"from": [
|
||||
@ -150,7 +150,7 @@ main.floors.MJ10=
|
||||
]
|
||||
]
|
||||
},
|
||||
"\t[唐佳成,N510]\b[this,6,7]殿下,幸不辱命!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this,6,7]殿下,幸不辱命!",
|
||||
"\t[莫析辉,hero]\b[hero]那咱们去找江鹤仙子提交毕业任务吧!",
|
||||
{
|
||||
"type": "setValue",
|
||||
|
@ -18,7 +18,7 @@ main.floors.MJ5=
|
||||
"parallelDo": "",
|
||||
"events": {
|
||||
"6,9": [
|
||||
"\t[唐佳成,N510]\b[this]这个家伙应该就是殿下的毕业任务啦!",
|
||||
"\t[${flag:shengqishi_name},N510]\b[this]这个家伙应该就是殿下的毕业任务啦!",
|
||||
{
|
||||
"type": "hide",
|
||||
"remove": true
|
||||
|
@ -16,7 +16,7 @@ main.floors.NH6=
|
||||
"firstArrive": [
|
||||
{
|
||||
"type": "if",
|
||||
"condition": "(flag:shengqishi>=40)",
|
||||
"condition": "(flag:shengqishi>=37)",
|
||||
"true": [
|
||||
{
|
||||
"type": "setBlock",
|
||||
|
@ -1778,6 +1778,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
},
|
||||
"drawStatusBar": function () {
|
||||
// 这真的是人能写出来的东西?
|
||||
return;
|
||||
var ctx, fill = function (text, x, y, style) {
|
||||
core.ui.setFont(ctx, (/\w+/.test(text) ? 'italic ' : '') + 'bold 18px Verdana');
|
||||
core.ui.fillBoldText(ctx, text, x, y, style);
|
||||
|
@ -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\tmoney += core.getEnemyValue(enemy, 'money', x, y) || 0;\n\t\texp += 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}\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\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.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})();",
|
||||
"canUseItemEffect": "true"
|
||||
},
|
||||
"centerFly": {
|
||||
@ -1022,7 +1022,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
||||
"cls": "tools",
|
||||
"name": "强力炸弹",
|
||||
"canUseItemEffect": "true",
|
||||
"useItemEffect": "(function () {\n\tvar bombList = []; // 炸掉的怪物坐标列表\n\tvar bombXYList = []; // 炸掉的怪物xy坐标列表\n\tvar expSum = 0;\n\tvar coinSum = 0;\n\tfor (var index in core.status.thisMap.blocks) {\n\t\tvar block = core.status.thisMap.blocks[index];\n\t\t// \t\tvar nx = block.x;\n\t\t// \t\tvar ny = block.y;\n\t\tvar enemyCanBomb = false;\n\t\tif (block == null || block.disable || block.event.cls.indexOf('enemy') != 0) {} else {\n\t\t\tvar enemy = core.material.enemys[block.event.id];\n\t\t\tvar enemyCanBomb = enemy && !enemy.notBomb;\n\t\t\tif (enemyCanBomb) {\n\t\t\t\tbombList.push(index);\n\t\t\t\texpSum += enemy.exp;\n\t\t\t\tcoinSum += enemy.money;\n\t\t\t\tbombXYList.push(block)\n\t\t\t}\n\t\t}\n\t}\n\tcore.removeBlockByIndexes(bombList);\n\tcore.status.hero.exp += expSum;\n\tcore.status.hero.money += coinSum;\n\tcore.playSound('bomb.mp3');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\tcore.drawMap();\n\tfor (var index in bombXYList) {\n\t\tcore.drawAnimate(\"zone\", bombXYList[index].x, bombXYList[index].y, false)\n\t}\n})();",
|
||||
"useItemEffect": "(function () {\n\tvar bombList = []; // 炸掉的怪物坐标列表\n\tvar bombXYList = []; // 炸掉的怪物xy坐标列表\n\tvar expSum = 0;\n\tvar coinSum = 0;\n\tfor (var index in core.status.thisMap.blocks) {\n\t\tvar block = core.status.thisMap.blocks[index];\n\t\t// \t\tvar nx = block.x;\n\t\t// \t\tvar ny = block.y;\n\t\tvar enemyCanBomb = false;\n\t\tif (block == null || block.disable || block.event.cls.indexOf('enemy') != 0) {} else {\n\t\t\tvar enemy = core.material.enemys[block.event.id];\n\t\t\tvar enemyCanBomb = enemy && !enemy.notBomb;\n\t\t\tif (enemyCanBomb) {\n\t\t\t\tbombList.push(index);\n\t\t\t\texpSum += enemy.exp;\n\t\t\t\tcoinSum += enemy.money;\n\t\t\t\tbombXYList.push(block)\n\t\t\t}\n\t\t}\n\t}\n\tcore.removeBlockByIndexes(bombList);\n\tcore.status.hero.exp += expSum;\n\tcore.status.hero.money += coinSum;\n\tcore.playSound('bomb.mp3');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\tcore.drawMap();\n\tfor (var index in bombXYList) {\n\t\tcore.drawAnimate(\"zone\", bombXYList[index].x, bombXYList[index].y, false)\n\t\tcore.insertCommonEvent('回收钥匙商店')\n\t}\n})();",
|
||||
"text": "使用后炸掉整层的怪物"
|
||||
},
|
||||
"I408": {
|
||||
|
Loading…
Reference in New Issue
Block a user