仿RM渐变插件bug修复

16层剧情修改
经验商店格式修改
This commit is contained in:
爱的天使Erdnase 2023-03-15 20:58:04 +08:00
parent 95d24b114d
commit 80730a6891
4 changed files with 251 additions and 84 deletions

View File

@ -66,7 +66,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -136,7 +136,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -206,7 +206,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -276,7 +276,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -346,7 +346,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -416,7 +416,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -486,7 +486,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -556,7 +556,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -626,7 +626,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -696,7 +696,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -766,7 +766,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -836,7 +836,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -906,7 +906,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -985,7 +985,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -1450,7 +1450,7 @@ main.floors.MT16=
"opacity": 1,
"time": 0
},
"\t[杰克]这里似乎封印着类似于11层东南角的机遗迹一样的东西。",
"\t[杰克]这里似乎封印着类似于11层东南角的机遗迹一样的东西。",
"\t[邵虎]..........好吧......我会注意的。",
{
"type": "hideImage",
@ -1483,60 +1483,71 @@ main.floors.MT16=
]
}
],
"11,7": [
{
"type": "if",
"condition": "(flag:xianjie2==1)",
"true": [
{
"type": "setBlock",
"number": "339",
"loc": [
[
11,
7
]
]
},
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "if",
"condition": "(flag:xianjie==15)",
"true": [
{
"type": "setBlock",
"number": "89",
"loc": [
[
12,
1
"11,7": {
"trigger": "action",
"enable": true,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": [
{
"type": "if",
"condition": "(flag:xianjie2==1)",
"true": [
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "if",
"condition": "(flag:xianjie==15)",
"true": [
{
"type": "openDoor",
"loc": [
11,
7
]
]
},
{
"type": "setValue",
"name": "flag:xianjie",
"operator": "+=",
"value": "1",
"norefresh": true
},
{
"type": "setValue",
"name": "flag:xianjie2",
"operator": "+=",
"value": "1"
}
],
"false": []
}
]
}
],
},
{
"type": "setBlock",
"number": "89",
"loc": [
[
12,
1
]
]
},
{
"type": "setValue",
"name": "flag:xianjie",
"operator": "+=",
"value": "1",
"norefresh": true
},
{
"type": "setValue",
"name": "flag:xianjie2",
"operator": "+=",
"value": "1"
}
],
"false": []
}
]
}
]
},
"6,1": [
{
"type": "function",
@ -1593,7 +1604,7 @@ main.floors.MT16=
"true": [
{
"type": "setBlock",
"number": "339",
"number": "372",
"loc": [
[
11,
@ -1606,7 +1617,133 @@ main.floors.MT16=
}
]
}
]
],
"8,8": {
"trigger": "action",
"enable": true,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": [
{
"type": "if",
"condition": "flag:112",
"true": [
{
"type": "vibrate",
"direction": "horizontal",
"time": 1000,
"speed": 10,
"power": 10,
"async": true
},
{
"type": "openDoor",
"loc": [
8,
8
]
},
{
"type": "openDoor",
"loc": [
5,
4
]
},
{
"type": "openDoor",
"loc": [
9,
4
]
},
{
"type": "openDoor",
"loc": [
5,
8
]
},
{
"type": "openDoor",
"loc": [
9,
8
]
}
],
"false": []
}
]
},
"5,4": {
"trigger": "action",
"enable": true,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": []
},
"5,8": {
"trigger": "action",
"enable": true,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": []
},
"9,4": {
"trigger": "action",
"enable": true,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": []
},
"9,8": {
"trigger": "action",
"enable": true,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": []
}
},
"changeFloor": {
"8,4": {
@ -1620,7 +1757,25 @@ main.floors.MT16=
"time": 200
}
},
"afterBattle": {},
"afterBattle": {
"6,4": [
{
"type": "setValue",
"name": "flag:112",
"value": "true"
},
{
"type": "setBlock",
"number": "372",
"loc": [
[
8,
8
]
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"cannotMove": {},
@ -1630,11 +1785,11 @@ main.floors.MT16=
[ 0,348,475, 0, 28, 0,475, 0, 2,475,475,218, 0,352, 0],
[ 0,348,218, 0, 2, 0, 0, 21, 2,206, 0, 0, 32,352, 0],
[ 0,348, 0,475, 2, 2, 2, 2, 2, 81, 2, 2, 27,352, 0],
[ 0,348, 0,206, 81,372,213, 0, 87,372, 2,475, 31,352, 0],
[ 0,348, 0,206, 81,361,213, 0, 87,361, 2,475, 31,352, 0],
[ 0,348, 2, 2, 2, 32, 0, 0, 0,206, 2, 0, 0,352, 0],
[ 0,348,475, 21, 2, 2, 2, 32, 2, 2, 2, 21,475,352, 0],
[ 0,348, 0, 0, 2,206, 0, 0, 0, 32, 2, 2, 2,352, 0],
[ 0,348, 31,475, 2,372, 88,123,372,372, 81,206, 0,352, 0],
[ 0,348, 31,475, 2,361, 88,123,361,361, 81,206, 0,352, 0],
[ 0,348, 27, 2, 2, 81, 2, 2, 2, 2, 2,475, 0,352, 0],
[ 0,348, 32,475, 0,206, 2, 21, 0, 0, 2,475,218,352, 0],
[ 0,348, 0,218, 0,475, 2,475,475, 0, 28, 0, 0,352, 0],

View File

@ -11,10 +11,20 @@ main.floors.XIANJIE=
"firstArrive": [],
"events": {
"7,1": [
{
"type": "setValue",
"name": "flag:isRMshop",
"value": "true"
},
{
"type": "openShop",
"id": "expShop1",
"open": true
},
{
"type": "setValue",
"name": "flag:isRMshop",
"value": "false"
}
]
},

View File

@ -246,14 +246,14 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"358": {"cls":"animates","id":"A358"},
"359": {"cls":"animates","id":"A359"},
"360": {"cls":"animates","id":"A360"},
"361": {"cls":"animates","id":"A361"},
"361": {"cls":"animates","id":"A361","animate":1,"trigger":"openDoor","doorInfo":{"time":160,"openSound":"door.mp3","closeSound":"door.mp3","keys":{}}},
"362": {"cls":"animates","id":"A362"},
"363": {"cls":"animates","id":"A363"},
"364": {"cls":"animates","id":"A364"},
"365": {"cls":"animates","id":"A365"},
"366": {"cls":"animates","id":"A366"},
"367": {"cls":"animates","id":"A367","event":null,"canPass":true},
"368": {"cls":"animates","id":"A368"},
"368": {"cls":"animates","id":"A368","trigger":"openDoor","animate":1,"doorInfo":{"time":160,"openSound":"door.mp3","closeSound":"door.mp3","keys":{}}},
"369": {"cls":"animates","id":"A369"},
"370": {"cls":"animates","id":"A370"},
"371": {"cls":"npcs","id":"N371"},

View File

@ -3902,19 +3902,21 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
// 准备渐变
this.maskPrepare = function () {
// 执行后画面将凝固
core.ui.createCanvas2("mask", 0, 0, core.__PIXELS__, core.__PIXELS__, 155);
for (var m in core.canvas) {
core.dymCanvas.mask.drawImage(core.canvas[m].canvas, 0, 0);
};
var mask = core.ui.createCanvas2("mask", 0, 0, core.__PIXELS__ + 161, core.__PIXELS__, 200);
core.drawThumbnail(core.status.floorId, null, { ctx: mask, x: 161, y: 0, size: 1, damage: false, all: true });
core.drawImage('mask', 'caidan.png', 0, 0);
// for (var m in core.canvas) {
// core.dymCanvas.mask.drawImage(core.canvas[m].canvas, 0, 0);
// };
}
// 执行渐变
this.maskFliter = function (time, sample) { // sample为渐变图名称渐变图需要在全塔属性注册
var tempCanvas = core.bigmap.tempCanvas;
var tempWidth = core.__PIXELS__,
tempHeight = core.__PIXELS__;
tempCanvas.canvas.width = tempWidth;
tempCanvas.canvas.height = tempHeight;
var tempCanvas = core.ui.createCanvas2("mask2", 0, 0, core.__PIXELS__ + 161, core.__PIXELS__, 200);
var tempWidth = tempCanvas.canvas.width,
tempHeight = tempCanvas.canvas.height;
//tempCanvas.canvas.width = tempWidth;
//tempCanvas.canvas.height = tempHeight;
tempCanvas.clearRect(0, 0, tempWidth, tempHeight);
tempCanvas.drawImage(core.material.images.images[sample], 0, 0, tempWidth, tempHeight);
// 读取渐变图开始处理