中毒禁用瞬移
修复20层回忆开始前画面被黑 修复21层各种BUG 修复23层剧情水银人没有跳起来
This commit is contained in:
parent
ca90208d5e
commit
e3c22c265b
@ -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,
|
||||
|
@ -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],
|
||||
|
@ -515,11 +515,11 @@ main.floors.MT23=
|
||||
{
|
||||
"type": "jump",
|
||||
"from": [
|
||||
5,
|
||||
6,
|
||||
9
|
||||
],
|
||||
"to": [
|
||||
5,
|
||||
6,
|
||||
9
|
||||
],
|
||||
"time": 500,
|
||||
|
@ -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一次
|
||||
|
Loading…
Reference in New Issue
Block a user