From e3c22c265b727b3a85f011065576ce2b8a4b02d0 Mon Sep 17 00:00:00 2001 From: Erdnase <1398341065@qq.com> Date: Tue, 4 Apr 2023 11:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=AF=92=E7=A6=81=E7=94=A8=E7=9E=AC?= =?UTF-8?q?=E7=A7=BB=20=E4=BF=AE=E5=A4=8D20=E5=B1=82=E5=9B=9E=E5=BF=86?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=89=8D=E7=94=BB=E9=9D=A2=E8=A2=AB=E9=BB=91?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D21=E5=B1=82=E5=90=84=E7=A7=8DBUG=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D23=E5=B1=82=E5=89=A7=E6=83=85=E6=B0=B4?= =?UTF-8?q?=E9=93=B6=E4=BA=BA=E6=B2=A1=E6=9C=89=E8=B7=B3=E8=B5=B7=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/floors/MT20.js | 71 ++-------------------------------------- project/floors/MT21.js | 68 +++++++++++++++++++++++++++++++++------ project/floors/MT23.js | 4 +-- project/functions.js | 73 +++++++++++++++++++++--------------------- 4 files changed, 100 insertions(+), 116 deletions(-) diff --git a/project/floors/MT20.js b/project/floors/MT20.js index 84a69ca..faf1b38 100644 --- a/project/floors/MT20.js +++ b/project/floors/MT20.js @@ -772,74 +772,9 @@ main.floors.MT20= "opacity": 1, "time": 0 }, - { - "type": "setCurtain", - "color": [ - 0, - 0, - 0, - 0.2 - ], - "time": 500, - "keep": true - }, - "\t[毒尾]还是,输了么", - { - "type": "setCurtain", - "color": [ - 0, - 0, - 0, - 0.4 - ], - "time": 500, - "keep": true - }, - "\t[毒尾]嗜骨,杀你的人已经中了我毕生所聚之毒,离死想必也不远了", - { - "type": "setCurtain", - "color": [ - 0, - 0, - 0, - 0.6 - ], - "time": 500, - "keep": true - }, - "\t[毒尾]看吧,我对你多好,这样一个可能颠覆联盟为我妖社所用的人,说杀就杀了", - { - "type": "setCurtain", - "color": [ - 0, - 0, - 0, - 0.8 - ], - "time": 500, - "keep": true - }, - "\t[毒尾]想起了,好多事呢...........", - { - "type": "setCurtain", - "color": [ - 0, - 0, - 0, - 1 - ], - "time": 500, - "keep": true - }, - { - "type": "setText", - "position": "center" - }, - "嗜骨.......................", - { - "type": "setText", - "position": "down" - }, + "\t[毒尾]..............哼.......还是输了么...", + "\t[毒尾].........意识........已经模糊了呢..........", + "\t[毒尾]想起了好多东西呢.......嗜骨.....", { "type": "hideImage", "code": 1, diff --git a/project/floors/MT21.js b/project/floors/MT21.js index be3f121..c7e8d71 100644 --- a/project/floors/MT21.js +++ b/project/floors/MT21.js @@ -304,7 +304,7 @@ main.floors.MT21= { "type": "jump", "from": [ - 12, + 13, 2 ], "to": [ @@ -472,7 +472,7 @@ main.floors.MT21= }, "\t[腐翼]嗯?你捣什么乱?我还没玩够呢!", "\t[夜兽人乙]这......腐翼大人您不是......想要杀了他吗......", - "\t[腐翼]胡说!!!!我明明是想要你们打着打着\n同归于尽的!!谁占了上风我就“帮”他一下~你\n破坏了我的计划,就给我去死吧!!", + "\t[腐翼]胡说!!!!我明明是想要你们打着打着\n同归于尽的!!谁占了上风我就“帮”他一下~你破坏了我的计划,就给我去死吧!!", "\t[夜兽人乙]这......腐翼大人饶命啊!!!", "\t[腐翼]哈哈~~~让我开心一下吧~~~!!!", { @@ -487,7 +487,7 @@ main.floors.MT21= 8 ], "to": [ - 10, + 11, 3 ], "time": 500, @@ -556,12 +556,12 @@ main.floors.MT21= { "type": "jump", "from": [ - 10, + 11, 3 ], "to": [ - 12, - 2 + 13, + 3 ], "time": 500, "keep": true @@ -571,7 +571,7 @@ main.floors.MT21= "loc": [ [ 13, - 2 + 3 ] ], "remove": true @@ -662,6 +662,11 @@ main.floors.MT21= "time": 0 }, "\t[杰克]那是当然了。那家伙可是“腐翼”啊。", + { + "type": "hideImage", + "code": 6, + "time": 0 + }, { "type": "hideImage", "code": 9, @@ -801,6 +806,26 @@ main.floors.MT21= 2 ] ] + }, + { + "type": "setBlock", + "number": "whiteWall", + "loc": [ + [ + 12, + 2 + ] + ] + }, + { + "type": "setBlock", + "number": "whiteWall", + "loc": [ + [ + 10, + 3 + ] + ] } ] }, @@ -987,14 +1012,37 @@ main.floors.MT21= }, "afterBattle": {}, "afterGetItem": {}, - "afterOpenDoor": {}, + "afterOpenDoor": { + "9,2": [ + { + "type": "if", + "condition": "(switch:A===1)", + "true": [], + "false": [ + { + "type": "playSound", + "name": "se86.ogg" + }, + { + "type": "setBlock", + "number": "81" + }, + { + "type": "setValue", + "name": "switch:A", + "value": "1" + } + ] + } + ] + }, "cannotMove": {}, "ratio": 1, "bgmap": [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], - [ 0, 0, 0, 0, 0, 0, 0,10255, 0, 0, 0, 0, 0, 0, 0], - [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [ 0, 0, 0, 0, 0, 0, 0,10255, 0, 0, 0, 0, 2, 0, 0], + [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0,10247, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], diff --git a/project/floors/MT23.js b/project/floors/MT23.js index a86340e..3acd957 100644 --- a/project/floors/MT23.js +++ b/project/floors/MT23.js @@ -515,11 +515,11 @@ main.floors.MT23= { "type": "jump", "from": [ - 5, + 6, 9 ], "to": [ - 5, + 6, 9 ], "time": 500, diff --git a/project/functions.js b/project/functions.js index b02fd7e..b459195 100644 --- a/project/functions.js +++ b/project/functions.js @@ -1579,44 +1579,45 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = // core.stopAutomaticRoute(); }, "moveDirectly": function (x, y, ignoreSteps) { - // 瞬间移动;x,y为要瞬间移动的点;ignoreSteps为减少的步数,可能之前已经被计算过 - // 返回true代表成功瞬移,false代表没有成功瞬移 + // 瞬间移动;x,y为要瞬间移动的点;ignoreSteps为减少的步数,可能之前已经被计算过 + // 返回true代表成功瞬移,false代表没有成功瞬移 - // 判定能否瞬移到该点 - if (ignoreSteps == null) ignoreSteps = core.canMoveDirectly(x, y); - if (ignoreSteps >= 0) { - // 中毒也允许瞬移 - if (core.hasFlag('poison')) { - var damage = ignoreSteps * core.values.poisonDamage; - if (damage >= core.status.hero.hp) return false; - core.status.hero.statistics.poisonDamage += damage; - core.status.hero.hp -= damage; - } - - core.clearMap('hero'); - // 获得勇士最后的朝向 - var lastDirection = core.status.route[core.status.route.length - 1]; - if (['left', 'right', 'up', 'down'].indexOf(lastDirection) >= 0) - core.setHeroLoc('direction', lastDirection); - // 设置坐标,并绘制 - core.control._moveDirectyFollowers(x, y); - core.status.hero.loc.x = x; - core.status.hero.loc.y = y; - core.drawHero(); - // 记录录像 - core.status.route.push("move:" + x + ":" + y); - // 统计信息 - core.status.hero.statistics.moveDirectly++; - core.status.hero.statistics.ignoreSteps += ignoreSteps; - if (core.hasFlag('poison')) { - core.updateStatusBar(false, true); - } - core.ui.drawStatusBar(); - core.checkRouteFolding(); - return true; - } + // 判定能否瞬移到该点 + if (ignoreSteps == null) ignoreSteps = core.canMoveDirectly(x, y); + if (ignoreSteps >= 0) { + // 中毒也允许瞬移 + if (core.hasFlag('poison')) { return false; - }, + //var damage = ignoreSteps * core.values.poisonDamage; + //if (damage >= core.status.hero.hp) return false; + //core.status.hero.statistics.poisonDamage += damage; + //core.status.hero.hp -= damage; + } + + core.clearMap('hero'); + // 获得勇士最后的朝向 + var lastDirection = core.status.route[core.status.route.length - 1]; + if (['left', 'right', 'up', 'down'].indexOf(lastDirection) >= 0) + core.setHeroLoc('direction', lastDirection); + // 设置坐标,并绘制 + core.control._moveDirectyFollowers(x, y); + core.status.hero.loc.x = x; + core.status.hero.loc.y = y; + core.drawHero(); + // 记录录像 + core.status.route.push("move:" + x + ":" + y); + // 统计信息 + core.status.hero.statistics.moveDirectly++; + core.status.hero.statistics.ignoreSteps += ignoreSteps; + if (core.hasFlag('poison')) { + core.updateStatusBar(false, true); + } + core.ui.drawStatusBar(); + core.checkRouteFolding(); + return true; + } + return false; +}, "parallelDo": function (timestamp) { // 并行事件处理,可以在这里写任何需要并行处理的脚本或事件 // 该函数将被系统反复执行,每次执行间隔视浏览器或设备性能而定,一般约为16.6ms一次