diff --git a/project/floors/MT13.js b/project/floors/MT13.js index 8f2ce91..824eeb7 100644 --- a/project/floors/MT13.js +++ b/project/floors/MT13.js @@ -38,23 +38,37 @@ main.floors.MT13= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -65,23 +79,37 @@ main.floors.MT13= }, "\t[邵虎]没什么.........杰克,你的父亲我会帮忙找的。", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -93,23 +121,37 @@ main.floors.MT13= "\t[杰克]哈哈!!老大不愧是老大~~!", "\t[杰克]好!那么前行的道路就让我给老大打开吧~", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -172,12 +214,19 @@ main.floors.MT13= "time": 1000 }, { - "type": "showImage", - "code": 1, + "type": "showImage2", + "code": 2, "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -235,23 +284,37 @@ main.floors.MT13= ] }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -262,23 +325,37 @@ main.floors.MT13= }, "\t[杰克]额......老大你就将就一下跨过去吧.........", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohujinzhang.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -293,23 +370,37 @@ main.floors.MT13= "time": 500 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -489,12 +580,19 @@ main.floors.MT13= ] }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -546,12 +644,19 @@ main.floors.MT13= ] }, { - "type": "showImage", + "type": "showImage2", "code": 1, - "image": "jiekeyilv.png", + "image": "jiekedajiao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -597,12 +702,19 @@ main.floors.MT13= "time": 500 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -639,12 +751,19 @@ main.floors.MT13= "time": 500 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -680,12 +799,19 @@ main.floors.MT13= "time": 500 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -718,12 +844,19 @@ main.floors.MT13= "time": 750 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -759,12 +892,19 @@ main.floors.MT13= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -796,12 +936,19 @@ main.floors.MT13= "time": 500 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -888,12 +1035,19 @@ main.floors.MT13= ] }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -924,12 +1078,19 @@ main.floors.MT13= "loc": "hero" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuyilv.png", - "loc": [ + "sloc": [ 0, - 0 + 0, + null + ], + "loc": [ + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1092,24 +1253,38 @@ main.floors.MT13= "name": "linghaihuanxin.mp3" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, "\t[???]....................", { - "type": "showImage", - "code": 2, + "type": "showImage2", + "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1234,12 +1409,19 @@ main.floors.MT13= "function": "function(){\ncore.status.hero.loc.direction=\"left\";\ncore.drawHero();\n}" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1250,12 +1432,19 @@ main.floors.MT13= }, "\t[邵虎]好了,这里安全了。", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1276,12 +1465,19 @@ main.floors.MT13= }, "\t[???]............", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1291,12 +1487,19 @@ main.floors.MT13= "time": 500 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1308,23 +1511,37 @@ main.floors.MT13= }, "\t[???]............", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuxiao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1377,12 +1594,19 @@ main.floors.MT13= "time": 1000 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1393,12 +1617,19 @@ main.floors.MT13= "time": 1000 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1407,23 +1638,37 @@ main.floors.MT13= "\t[邵虎]兄弟,你是谁?怎么会在这里?", "\t[???]吓死我了吓死我了........这下非得折寿不可..................", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1434,23 +1679,37 @@ main.floors.MT13= }, "\t[???]不对啊,按理说用我的【破枯木十字架】祈祷过地方都不会出现蝙蝠的......这次怎么回事!!?难道是我祈祷的不够认真??不过这跟预期效果还是差太远了啊..........", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohujinzhang.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1510,46 +1769,74 @@ main.floors.MT13= "keep": true }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohujinzhang.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, "\t[???]啊..........不好意思,是您救了我吧..........太感谢您了。不过我劝你赶紧回去哦,这里很危险的。", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1561,23 +1848,37 @@ main.floors.MT13= }, "\t[???]对了对了,我叫杰克,工作是......科研!!虽然是一些很没用的科研,不过也是科研就是了~~!", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohujinzhang.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1588,23 +1889,37 @@ main.floors.MT13= }, "\t[邵虎]你......你好我叫邵虎..........(这都哪跟哪啊)", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohujinzhang.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1615,23 +1930,37 @@ main.floors.MT13= }, "\t[杰克]什么什么......你要送我出塔!?", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1642,23 +1971,37 @@ main.floors.MT13= }, "\t[邵虎]没错,你一个人在这里过于危险了,这里到处都徘徊着魔物,识不定哪天你就会成为他的美食。", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekedajiao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1670,23 +2013,37 @@ main.floors.MT13= "time": 1000 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1706,23 +2063,37 @@ main.floors.MT13= }, "\t[邵虎]难不成还是你送我来的?", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1733,23 +2104,37 @@ main.floors.MT13= }, "\t[邵虎]等...等下…你刚才叫我什么?", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1760,23 +2145,37 @@ main.floors.MT13= }, "\t[杰克]老...老大啊、稀......稀里糊涂就说出口了....", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 diff --git a/project/floors/MT14.js b/project/floors/MT14.js index a7b2dcf..ceaee66 100644 --- a/project/floors/MT14.js +++ b/project/floors/MT14.js @@ -36,12 +36,19 @@ main.floors.MT14= ] }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -83,12 +90,19 @@ main.floors.MT14= "text": "否", "action": [ { - "type": "showImage", + "type": "showImage2", "code": 1, - "image": "shaohusikao", + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -110,12 +124,19 @@ main.floors.MT14= "loc": "hero" }, { - "type": "showImage", + "type": "showImage2", "code": 1, - "image": "shaohuziya", + "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -128,12 +149,19 @@ main.floors.MT14= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, - "image": "shaohusikao", + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -150,12 +178,19 @@ main.floors.MT14= "loc": "hero" }, { - "type": "showImage", + "type": "showImage2", "code": 1, - "image": "shaohusikao", + "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 diff --git a/project/floors/MT15.js b/project/floors/MT15.js index 2e93b71..ac0b664 100644 --- a/project/floors/MT15.js +++ b/project/floors/MT15.js @@ -58,12 +58,19 @@ main.floors.MT15= "displayDamage": true, "data": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "npcnv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 80, - 40 + 330, + 70, + "287.2", + "417.6" ], "opacity": 1, "time": 0 @@ -92,12 +99,19 @@ main.floors.MT15= "condition": "(flag:15f==1)", "true": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "npcnv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 80, - 40 + 330, + 70, + "287.2", + "417.6" ], "opacity": 1, "time": 0 @@ -133,24 +147,38 @@ main.floors.MT15= "text": "否", "action": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "npcnv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "287.2", + "417.6" ], "opacity": 1, "time": 0 }, "\t[女人]哟,真是稀客呢", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 diff --git a/project/floors/MT16.js b/project/floors/MT16.js index 1e2e0d9..d0b6cdc 100644 --- a/project/floors/MT16.js +++ b/project/floors/MT16.js @@ -1024,12 +1024,19 @@ main.floors.MT16= "condition": "(flag:16f==1)", "true": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 100, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1088,24 +1095,38 @@ main.floors.MT16= "text": "否", "action": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, "\t[杰克]老大~~~", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1113,23 +1134,37 @@ main.floors.MT16= "\t[邵虎]你在这里啊,我以为你跑到哪里去了。", "\t[杰克]老大~~我刚刚从一个联盟的老头那里得到了一点消息~~", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1137,92 +1172,148 @@ main.floors.MT16= "\t[邵虎]哦?什么消息?", "\t[杰克]他说想拿到【银剑】必须要准备【蓝钥匙】", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, "\t[杰克]这蓝门可是比黄门坚固很多啊~~!!一般的拆门镐我还搞不定呢!!", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, "\t[邵虎]是吗........那谢谢你的消息了。", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, "\t[杰克]其实这都是次要的。另外我还发现了几个很有趣的秘密。", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1234,23 +1325,37 @@ main.floors.MT16= "\t[杰克]我觉得银剑附近的墙不是很牢固,另外西北角装有两个红宝石的房间旁边的墙貌似也很松垮。", "\t[邵虎]这样啊.........那去推这些墙可能会比较节省体力呢。", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1259,23 +1364,37 @@ main.floors.MT16= "\t[邵虎]....................", "\t[杰克]明明那里有墙存在的气息,却触摸不到。我在15层也感受到了一点。", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1283,23 +1402,37 @@ main.floors.MT16= "\t[邵虎]...........是吗..........", "\t[杰克]另外我在这一层受到了微弱的结界波动...........", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekexiaohei.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 diff --git a/project/floors/MT17.js b/project/floors/MT17.js index ac71f3f..713496b 100644 --- a/project/floors/MT17.js +++ b/project/floors/MT17.js @@ -16,12 +16,19 @@ main.floors.MT17= "condition": "(flag:17==1)", "true": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "npcnan.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "304.8", + "432.8" ], "opacity": 1, "time": 0 @@ -58,12 +65,19 @@ main.floors.MT17= "text": "否", "action": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "npcnan.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 180, - 40 + 330, + 70, + "304.8", + "432.8" ], "opacity": 1, "time": 0 @@ -72,12 +86,19 @@ main.floors.MT17= "\t[老人]就是你杀了嗜骨吧", "\t[老人]不必紧张,你杀了嗜骨,联盟会感谢你的", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 diff --git a/project/floors/MT19.js b/project/floors/MT19.js index 28539d2..61cc69d 100644 --- a/project/floors/MT19.js +++ b/project/floors/MT19.js @@ -27,12 +27,19 @@ main.floors.MT19= "condition": "(flag:zhenhong==1)", "true": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -61,12 +68,19 @@ main.floors.MT19= "value": "1" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -128,12 +142,19 @@ main.floors.MT19= "number": "89" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -171,12 +192,19 @@ main.floors.MT19= "type": "hide" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 diff --git a/project/floors/MT20.js b/project/floors/MT20.js index 74e1b82..67cc631 100644 --- a/project/floors/MT20.js +++ b/project/floors/MT20.js @@ -69,12 +69,19 @@ main.floors.MT20= "text": "否", "action": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -88,12 +95,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -107,12 +121,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -125,12 +146,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -142,12 +170,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -164,12 +199,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuliuhan.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -181,12 +223,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -198,12 +247,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuliuhan.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -215,12 +271,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -232,12 +295,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -249,12 +319,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -268,12 +345,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -285,12 +369,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -306,12 +397,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuliuhan.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -323,12 +421,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -340,12 +445,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -357,12 +469,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -376,12 +495,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -393,12 +519,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -431,12 +564,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -545,6 +685,14 @@ main.floors.MT20= "enable": true, "noPass": null, "displayDamage": true, + "opacity": 1, + "filter": { + "blur": 0, + "hue": 0, + "grayscale": 0, + "invert": false, + "shadow": 0 + }, "data": [ { "type": "choices", @@ -569,16 +717,10 @@ main.floors.MT20= "type": "move", "time": 500, "steps": [ - "right", - "right", - "right", - "up", - "up", - "left", - "left", - "left", - "up", - "up" + "right:3", + "up:2", + "left:3", + "up:2" ] }, { @@ -600,12 +742,19 @@ main.floors.MT20= "text": "否", "action": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -618,12 +767,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -636,12 +792,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -654,12 +817,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -672,12 +842,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -689,12 +866,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -710,12 +894,19 @@ main.floors.MT20= "name": "se10.19.mp3" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -736,12 +927,19 @@ main.floors.MT20= "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 70, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -762,12 +960,19 @@ main.floors.MT20= "loc": "hero" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -799,12 +1004,19 @@ main.floors.MT20= "loc": "hero" }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "lvshe.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 60, - 40 + -50, + 50, + "499.8", + "443.7" ], "opacity": 1, "time": 0 @@ -819,16 +1031,10 @@ main.floors.MT20= "type": "move", "time": 500, "steps": [ - "right", - "right", - "right", - "up", - "up", - "left", - "left", - "left", - "up", - "up" + "right:3", + "up:2", + "left:3", + "up:2" ] }, { @@ -1236,24 +1442,38 @@ main.floors.MT20= "text": "否", "action": [ { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, "\t[杰克]老....老大!!", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuziya.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1280,23 +1500,37 @@ main.floors.MT20= "\t[邵虎]呃啊.............", "\t[杰克]老大..........如果不加以活动的话也许毒性蔓延的就比较慢了吧.........那....老大你在这里稍等一下?我可以去前面探探路,找找解决的方法。", { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuliuhan.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekeyilv.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 @@ -1323,23 +1557,37 @@ main.floors.MT20= }, "\t[杰克]......................老大..........", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuliuhan.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1347,46 +1595,74 @@ main.floors.MT20= "\t[杰克]我懂了。我们一起行动吧。我来开墙,老大开路,咱们一起走!", "\t[杰克]我会时刻留意附近的情况的,有什么情况会第一时间告诉老大。", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekedajiao2.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 }, "\t[邵虎]..........呵呵,就这样吧。", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohuzixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 @@ -1397,23 +1673,37 @@ main.floors.MT20= "\t[杰克]腐翼喜欢到处乱跑,说不定什么时候就能撞见这个瘟神。而且他以杀人为乐,不论是联盟还是妖社的人,只要一言不合,他都会出手杀人。", "\t[杰克]别看腐翼的外表似乎人畜无害,实力可是响当当的强。而且他的能力好像不只是眼看着那么简单。据说他还有着让人瞬间失去力量的能力。", { - "type": "showImage", + "type": "showImage2", "code": 1, "image": "jiekezixin.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - 200, - 40 + 330, + 70, + "289.6", + "376.8" ], "opacity": 1, "time": 0 }, { - "type": "showImage", + "type": "showImage2", "code": 2, "image": "shaohusikao.png", + "sloc": [ + 0, + 0, + null + ], "loc": [ - -30, - 20 + 80, + 50, + "291.2", + "466.4" ], "opacity": 1, "time": 0 diff --git a/project/plugins.js b/project/plugins.js index d2d46c6..29322cb 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -321,6 +321,41 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.drawTip("请确认当前" + core.material.items['centerFly'].name + "的位置", 'centerFly'); return; } + core.control.setAutomaticRoute = function (destX, destY, stepPostfix) { + if (!core.status.played || core.status.lockControl) return; + if (this._setAutomaticRoute_isMoving(destX, destY)) return; + if (this._setAutomaticRoute_isTurning(destX, destY, stepPostfix)) return; + if (this._setAutomaticRoute_clickMoveDirectly(destX, destY, stepPostfix)) return; + // 找寻自动寻路路线 + if (destY == 13 || destY == 14) { + if (destX == 2 || destX == 3) { + destY == 13 ? core.openBook(true) : core.ui._drawHelp(); + } + if (destX == 4 || destX == 5) { + destY == 13 ? core.useFly(true) : core.turnHero(); + } + if (destX == 6 || destX == 7 || destX == 8) { + destY == 13 ? core.openToolbox(true) : core.openQuickShop(true); + } + if (destX == 9 || destX == 10) { + destY == 13 ? core.save(true) : core.openSettings(true); + } + if (destX == 11 || destX == 12) { + destY == 13 ? core.load(true) : core.openSettings(true); + } + return; + } + var moveStep = core.automaticRoute(destX, destY); + if (moveStep.length == 0 && (destX != core.status.hero.loc.x || destY != core.status.hero.loc.y || stepPostfix.length == 0)) + return; + moveStep = moveStep.concat(stepPostfix); + core.status.automaticRoute.destX = destX; + core.status.automaticRoute.destY = destY; + this._setAutomaticRoute_drawRoute(moveStep); + this._setAutomaticRoute_setAutoSteps(moveStep); + // 立刻移动 + core.setAutoHeroMove(); + } }, "drawLight": function () { @@ -2241,5 +2276,436 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } } core.registerAnimationFrame('startAnimation', false, draw); +}, + "showValue": function () { + /* 宝石血瓶左下角显示数值 + * 需要将 变量:itemDetail改为true才可正常运行 + * 请尽量减少勇士的属性数量,否则可能会出现严重卡顿 + * 注意:这里的属性必须是core.status.hero里面的,flag无法显示 + * 如果不想显示,可以core.setFlag("itemDetail", false); + * 然后再core.getItemDetail(); + * 如有bug在大群或造塔群@古祠 + */ + + // 谁tm在即捡即用效果里面调用带有含刷新状态栏的函数 + var origin = core.control.updateStatusBar; + core.updateStatusBar = core.control.updateStatusBar = function () { + if (core.getFlag('__statistics__')) return; + else return origin.apply(core.control, arguments); + } + + core.bigmap.threshold = 256; + + core.control.updateDamage = function (floorId, ctx) { + floorId = floorId || core.status.floorId; + if (!floorId || core.status.gameOver || main.mode != 'play') return; + var onMap = ctx == null; + + // 没有怪物手册 + if (!core.hasItem('book')) return; + core.status.damage.posX = core.bigmap.posX; + core.status.damage.posY = core.bigmap.posY; + if (!onMap) { + var width = core.floors[floorId].width, + height = core.floors[floorId].height; + // 地图过大的缩略图不绘制显伤 + if (width * height > core.bigmap.threshold) return; + } + this._updateDamage_damage(floorId, onMap); + this._updateDamage_extraDamage(floorId, onMap); + core.getItemDetail(floorId); // 宝石血瓶详细信息 + this.drawDamage(ctx); + }; + // 绘制地图显示 + control.prototype._drawDamage_draw = function (ctx, onMap) { + if (!core.hasItem('book')) return; + // *** 下一句话可以更改你想要的显示字体 + core.setFont(ctx, "bold 11px Arial"); + // *** + core.setTextAlign(ctx, 'left'); + core.status.damage.data.forEach(function (one) { + var px = one.px, + py = one.py; + if (onMap && core.bigmap.v2) { + px -= core.bigmap.posX * 32; + py -= core.bigmap.posY * 32; + if (px < -32 * 2 || px > core.__PX__ + 32 || py < -32 || py > core.__PY__ + 32) + return; + } + core.fillBoldText(ctx, one.text, px, py, one.color); + }); + core.setTextAlign(ctx, 'center'); + core.status.damage.extraData.forEach(function (one) { + var px = one.px, + py = one.py; + if (onMap && core.bigmap.v2) { + px -= core.bigmap.posX * 32; + py -= core.bigmap.posY * 32; + if (px < -32 || px > core.__PX__ + 32 || py < -32 || py > core.__PY__ + 32) + return; + } + core.fillBoldText(ctx, one.text, px, py, one.color); + }); + }; + // 获取宝石信息 并绘制 + this.getItemDetail = function (floorId) { + if (!core.getFlag("itemDetail")) return; + floorId = floorId || core.status.thisMap.floorId; + core.status.maps[floorId].blocks.forEach(function (block) { + if (block.event.cls !== 'items' || block.event.id === 'superPotion') return; + var x = block.x, + y = block.y; + // v2优化,只绘制范围内的部分 + if (core.bigmap.v2) { + if (x < core.bigmap.posX - core.bigmap.extend || x > core.bigmap.posX + core.__SIZE__ + core.bigmap.extend || + y < core.bigmap.posY - core.bigmap.extend || y > core.bigmap.posY + core.__SIZE__ + core.bigmap.extend) { + return; + } + } + var id = block.event.id; + var item = core.material.items[id]; + if (item.cls === 'equips') { + // 装备也显示 + var diff = core.clone(item.equip.value || {}); + var per = item.equip.percentage; + for (var name in per) { + diff[name + 'per'] = per[name].toString() + '%'; + } + drawItemDetail(diff, x, y); + return; + } + var before = core.clone(core.status.hero); + // 跟数据统计原理一样 执行效果 前后比较 + core.setFlag("__statistics__", true); + try { + eval(item.itemEffect); + } catch (error) {} + var diff = compareObject(before, core.status.hero); + core.status.hero = hero = before; + flags = core.status.hero.flags; + drawItemDetail(diff, x, y); + }); + }; + // 比较两个对象之间每一项的数值差异(弱等于) 返回数值差异 + function compareObject(a, b) { + a = a || {}; + b = b || {}; + var diff = {}; // 差异 + for (var name in a) { + diff[name] = b[name] - (a[name] || 0); + if (!diff[name]) diff[name] = void 0; + } + return diff; + }; + // 绘制 + function drawItemDetail(diff, x, y) { + var px = 32 * x + 2, + py = 32 * y + 30; + var content = ""; + // 获得数据和颜色 + var i = 0; + for (var name in diff) { + if (!diff[name]) continue; + var color = "#ffffff"; + if (typeof diff[name] === 'number') + diff[name] = core.formatBigNumber(diff[name], true); + switch (name) { + case 'atk': + case 'atkper': + color = "#FF7A7A"; + break; + case 'def': + case 'defper': + color = "#00E6F1"; + break; + case 'mdef': + case 'mdefper': + color = "#6EFF83"; + break; + case 'hp': + color = "#A4FF00"; + break; + case 'hpmax': + case 'hpmaxper': + color = "#F9FF00"; + break; + case 'mana': + color = "#cc6666"; + break; + } + content = diff[name]; + // 绘制 + core.status.damage.data.push({ text: content, px: px, py: py - 10 * i, color: color }); + i++; + } + } +}, + "autoBattle": function () { + /** + * --------------- 安装说明 --------------- + * + * 复制到插件编写里面即可 + * + * --------------- 使用说明 --------------- + * + * 把变量 __autoBattle__ 设置成true开启,设置成false关闭,然后在想要清的时刻,比如战后,每步后等加上core.autoBattle()即可 + * + * --------------- 自定义说明 --------------- + * + * 可以更改canBattle函数自定义某个怪物是否应该被清 + */ + + /** + * 是否清这个怪,可以修改这里来实现对不同怪的不同操作 + * @param {string} enemy + * @param {number} x + * @param {number} y + */ + function canBattle(enemy, x, y) { + const loc = `${x},${y}`; + const floor = core.floors[core.status.floorId]; + const e = core.material.enemys[enemy]; + const hasEvent = + has(floor.afterBattle[loc]) || + has(floor.beforeBattle[loc]) || + has(e.beforeBattle) || + has(e.afterBattle) || + has(floor.events[loc]); + // 有事件,不清 + if (hasEvent) return false; + const damage = core.getDamageInfo(enemy, void 0, x, y); + // 0伤或负伤,清 + if (has(damage) && has(damage.damage) && damage.damage <= 0) return true; + return false; + } + + /** + * @template T + * @param {T} v + * @returns {v is NonNullable} + */ + function has(v) { + return v !== null && v !== undefined; + } + + /** + * 广搜,搜索可以到达的需要清的怪 + * @param {string} floorId + */ + function bfs(floorId, deep = Infinity) { + core.extractBlocks(floorId); + const objs = core.getMapBlocksObj(floorId); + const { x, y } = core.status.hero.loc; + /** @type {[direction, number, number][]} */ + const dir = Object.entries(core.utils.scan).map(v => [ + v[0], + v[1].x, + v[1].y + ]); + + /** @type {[number, number][]} */ + const queue = [ + [x, y] + ]; + const mapped = { + [`${x},${y}`]: true + }; + while (queue.length > 0 && deep > 0) { + const [nx, ny] = queue.shift(); + dir.forEach(v => { + const [tx, ty] = [nx + v[1], ny + v[2]]; + const loc = `${tx},${ty}`; + if (mapped[loc]) return; + const block = objs[loc]; + mapped[loc] = true; + const isEnemy = + has(block) && block.event.cls.startsWith('enemy'); + const changeFloor = core.floors[floorId].changeFloor[loc]; + if ( + (!core.canMoveHero(nx, ny, v[0]) && !isEnemy) || + (has(block) && block.event.cls === 'items') || + (core.noPass(tx, ty) && !isEnemy) || + has(core.floors[floorId].events[loc]) || + (has(changeFloor) && + changeFloor.ignoreChangeFloor === false) + ) + return; + + if (isEnemy) { + if (canBattle(block.event.id, tx, ty) && !block.disable) { + console.log(block.event.id, tx, ty); + // 能打且没有事件就直接干他丫的 + core.battle(block.event.id, tx, ty); + } else return; + } + // 然后判断目标点是否有地图伤害等,没有就直接添加到队列 + const damage = core.status.checkBlock.damage[loc]; + const ambush = core.status.checkBlock.ambush[loc]; + const repulse = core.status.checkBlock.repulse[loc]; + if ( + (!has(damage) || (has(damage) && damage <= 0)) && + !has(ambush) && + !has(repulse) + ) + queue.push([tx, ty]); + }); + deep--; + } + } + + this.autoBattle = function () { + if (!flags.__autoBattle__) return; + // 如果勇士当前点有地图伤害,只清周围 + const { x, y } = core.status.hero.loc; + const floor = core.floors[core.status.floorId]; + const hasEvent = has(floor.events[`${x},${y}`]); + if (hasEvent) return; + const damage = core.status.checkBlock.damage[`${x},${y}`]; + let deep = Infinity; + if (has(damage) && damage > 0) { + deep = 1; + } + bfs(core.status.floorId, deep); + }; +}, + "autoGet": function () { + var enable = true; + if (!enable) return; + // + // var noUpdate = false; + ////// 更新状态栏 ////// 不建议状态栏刷新后触发 容易导致录像不一致的问题 + //control.prototype.updateStatusBar = function (doNotCheckAutoEvents) { + // if (!core.isPlaying()) return; + // if (noUpdate) return; + // noUpdate = true; + // core.autoGetItem(); + // noUpdate = false; + // this.controldata.updateStatusBar(); + // if (!doNotCheckAutoEvents) core.checkAutoEvents(); + // this._updateStatusBar_setToolboxIcon(); + // core.clearRouteFolding(); + //} + + ////// 每移动一格后执行的事件 ////// + control.prototype.moveOneStep = function (callback) { + core.autoGetItem(); + core.autoBattle(); + return this.controldata.moveOneStep(callback); + } + + function bfsFlood(sx, sy, blockfn) { + var canMoveArray = core.generateMovableArray(); + var blocksObj = core.getMapBlocksObj(); + var bgMap = core.getBgMapArray(); + + var visited = [], + queue = []; + visited[sx + "," + sy] = 0; + queue.push(sx + "," + sy); + + while (queue.length > 0) { + var now = queue.shift().split(","), + x = ~~now[0], + y = ~~now[1]; + for (var direction in core.utils.scan) { + if (!core.inArray(canMoveArray[x][y], direction)) continue; + var nx = x + core.utils.scan[direction].x, + ny = y + core.utils.scan[direction].y, + nindex = nx + "," + ny; + if (visited[nindex]) continue; + if (core.onSki(bgMap[ny][nx])) continue; + if (blockfn && !blockfn(blocksObj, nx, ny)) continue; + visited[nindex] = visited[now] + 1; + queue.push(nindex); + } + } + } + + function attractAnimate() { + var name = 'attractAnimate'; + var isPlaying = false; + this.nodes = []; + + this.add = function (id, x, y, callback) { + this.nodes.push({ id: id, x: x, y: y, callback: callback }); + } + this.start = function () { + if (isPlaying) return; + isPlaying = true; + core.registerAnimationFrame(name, true, this.update); + this.ctx = core.createCanvas(name, 0, 0, core.__PIXELS__, core.__PIXELS__, 120); + } + this.remove = function () { + core.unregisterAnimationFrame(name); + core.deleteCanvas(name); + isPlaying = false; + } + this.clear = function () { + this.nodes = []; + this.remove(); + } + var lastTime = -1; + var self = this; + this.update = function (timeStamp) { + if (lastTime < 0) lastTime = timeStamp; + if (timeStamp - lastTime < 20) return; + lastTime = timeStamp; + core.clearMap(name); + var cx = core.status.heroCenter.px - 16, + cy = core.status.heroCenter.py - 16; + var thr = 5; //缓动比例倒数 越大移动越慢 + self.nodes.forEach(function (n) { + var dx = cx - n.x, + dy = cy - n.y; + if (Math.abs(dx) <= thr && Math.abs(dy) <= thr) { + n.dead = true; + } else { + n.x += ~~(dx / thr); + n.y += ~~(dy / thr); + } + core.drawIcon(name, n.id, n.x, n.y, 32, 32); + }); + self.nodes = self.nodes.filter(function (n) { + if (n.dead && n.callback) { + n.callback(); + } + return !n.dead; + }); + if (self.nodes.length == 0) + self.remove(); + } + } + + + var animateHwnd = new attractAnimate(); + + this.stopAttractAnimate = function () { + animateHwnd.clear(); + } + + this.autoGetItem = function () { + if (!flags.__autoGetItem__) return; + var canGetItems = {}; + if (!core.status.floorId || !core.status.checkBlock.damage || core.status.event.id == 'action' || core.status.lockControl) return; + + bfsFlood(core.getHeroLoc('x'), core.getHeroLoc('y'), function (blockMap, x, y) { + var idx = x + ',' + y; + if (idx in canGetItems) return false; + var blk = blockMap[idx]; + if (blk && !blk.disable && blk.event.cls == 'items' && !core.isMapBlockDisabled(core.status.floorId, blk.x, blk.y) && blk.event.trigger == 'getItem') { + canGetItems[idx] = { x: x, y: y, id: blk.event.id }; + return !core.status.checkBlock.damage[idx] && !core.status.checkBlock.ambush[idx]; + } + return core.maps._canMoveDirectly_checkNextPoint(blockMap, x, y); + }); + for (var k in canGetItems) { + var x = canGetItems[k].x, + y = canGetItems[k].y, + id = canGetItems[k].id; + core.trigger(x, y); + animateHwnd.add(id, x * 32, y * 32); + } + animateHwnd.start(); + } } } \ No newline at end of file