Merge branch 'noAnimate' into hasAnimate

This commit is contained in:
bdf1 2022-11-13 01:01:26 +13:00
commit 9ca08dfe1b
12 changed files with 941 additions and 535 deletions

View File

@ -1 +1 @@
{"viewportLoc":[0,0],"editorLastFloorId":"U1"} {"viewportLoc":[0,0],"editorLastFloorId":"MT9","lastUsed":[{"idnum":554,"id":"N554","images":"npcs","y":42,"recent":1668243635497,"frequent":2},{"idnum":551,"id":"N551","images":"npcs","y":41,"recent":1668243645267,"frequent":2},{"idnum":46,"id":"fly","images":"items","y":12,"recent":1668239925419,"frequent":1},{"idnum":45,"id":"book","images":"items","y":9,"recent":1668238365160,"frequent":1}]}

View File

@ -197,7 +197,7 @@ enemys.prototype.getDamageString = function (enemy, x, y, floorId) {
color = '#FF2222'; color = '#FF2222';
} }
else { else {
if (damage <= 0) color = '#11FF11'; if (damage < 0) color = '#11FF11';
else if (damage < core.status.hero.hp / 3) color = '#FFFFFF'; else if (damage < core.status.hero.hp / 3) color = '#FFFFFF';
else if (damage < core.status.hero.hp * 2 / 3) color = '#FFFF00'; else if (damage < core.status.hero.hp * 2 / 3) color = '#FFFF00';
else if (damage < core.status.hero.hp) color = '#FF9933'; else if (damage < core.status.hero.hp) color = '#FF9933';

View File

@ -1524,7 +1524,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"extendToolbar": false, "extendToolbar": false,
"flyNearStair": true, "flyNearStair": true,
"flyRecordPosition": false, "flyRecordPosition": false,
"itemFirstText": false, "itemFirstText": true,
"equipboxButton": false, "equipboxButton": false,
"enableAddPoint": false, "enableAddPoint": false,
"enableNegativeDamage": false, "enableNegativeDamage": false,

View File

@ -16,7 +16,7 @@ main.floors.MT0=
[ 0,348, 4, 4, 4, 2, 0, 2, 23, 2, 4, 4, 4,352, 0], [ 0,348, 4, 4, 4, 2, 0, 2, 23, 2, 4, 4, 4,352, 0],
[ 0,348, 4, 4, 4, 2, 0, 2, 22, 2, 4, 4, 4,352, 0], [ 0,348, 4, 4, 4, 2, 0, 2, 22, 2, 4, 4, 4,352, 0],
[ 0,348, 4, 4, 4, 2, 0, 2, 21, 2, 2, 4, 4,352, 0], [ 0,348, 4, 4, 4, 2, 0, 2, 21, 2, 2, 4, 4,352, 0],
[ 0,348, 4, 4, 4, 2, 0, 0,124,124, 2, 4, 4,352, 0], [ 0,348, 4, 4, 4, 2, 0, 0, 0, 0, 2, 4, 4,352, 0],
[ 0,348, 4, 4, 4, 2, 2, 2, 0, 2, 2, 4, 4,352, 0], [ 0,348, 4, 4, 4, 2, 2, 2, 0, 2, 2, 4, 4,352, 0],
[ 0,348, 4, 4, 4, 4, 4, 2, 0, 2, 4, 4, 4,352, 0], [ 0,348, 4, 4, 4, 4, 4, 2, 0, 2, 4, 4, 4,352, 0],
[ 0,348, 4, 4, 4, 4, 2, 2, 0, 2, 2, 2, 2,352, 0], [ 0,348, 4, 4, 4, 4, 2, 2, 0, 2, 2, 2, 2,352, 0],
@ -27,12 +27,6 @@ main.floors.MT0=
[ 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]
], ],
"firstArrive": [ "firstArrive": [
{
"type": "setValue",
"name": "item:I530",
"operator": "+=",
"value": "1"
},
{ {
"type": "setValue", "type": "setValue",
"name": "flag:juqing", "name": "flag:juqing",
@ -68,39 +62,33 @@ main.floors.MT0=
10 10
] ]
}, },
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[邵虎]..........现在还打不开它。"
],
"false": [
{
"type": "setValue",
"name": "switch:A",
"value": "true"
},
"\t[邵虎]............", "\t[邵虎]............",
"\t[邵虎](梅花为底,淡蓝色的屏障)......", "\t[邵虎](梅花为底,淡蓝色的屏障)......",
"\t[邵虎]............", "\t[邵虎]............",
"\t[邵虎](这是《古代密要》中的“梅障结界”)....", "\t[邵虎](这是《古代密要》中的“梅障结界”)....",
"\t[邵虎](看来天塔里面不是那么简单啊)....", "\t[邵虎](看来天塔里面不是那么简单啊)....",
"\t[邵虎](以我现在的能力怕是无法破解这层障壁了......还是先不要管它为好。)", "\t[邵虎](以我现在的能力怕是无法破解这层障壁了......还是先不要管它为好。)"
]
},
{ {
"type": "hideImage", "type": "hideImage",
"code": 1, "code": 1,
"time": 0 "time": 0
} }
], ],
"8,6": { "9,6": [
"trigger": null,
"enable": false,
"noPass": null,
"displayDamage": true,
"data": []
},
"9,6": {
"trigger": null,
"enable": false,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": [
{ {
"type": "comment", "type": "comment",
"text": "JS脚本判定0fFairy的值" "text": "JS脚本判定0fFairy的值"
@ -129,12 +117,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzi.png", "image": "xianzi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -169,12 +164,19 @@ main.floors.MT0=
"value": "flag:juqing+1" "value": "flag:juqing+1"
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzi.png", "image": "xianzi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -212,12 +214,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzi.png", "image": "xianzi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -246,12 +255,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzi.png", "image": "xianzi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -280,12 +296,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianziwunai.png", "image": "xianziwunai.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -314,12 +337,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianziwunai.png", "image": "xianziwunai.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -348,12 +378,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzilianhong.png", "image": "xianzilianhong.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -382,12 +419,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzilianhong.png", "image": "xianzilianhong.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -416,12 +460,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzi.png", "image": "xianzi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -436,12 +487,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzileng.png", "image": "xianzileng.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
0 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -461,8 +519,7 @@ main.floors.MT0=
} }
] ]
} }
] ],
},
"8,8": [ "8,8": [
{ {
"type": "choices", "type": "choices",
@ -473,20 +530,12 @@ main.floors.MT0=
"action": [ "action": [
{ {
"type": "hide", "type": "hide",
"remove": true,
"time": 500 "time": 500
}, },
{ {
"type": "hide", "type": "setBlock",
"loc": [ "number": "fairy",
[
8,
6
]
],
"time": 500
},
{
"type": "show",
"loc": [ "loc": [
[ [
9, 9,
@ -560,7 +609,17 @@ main.floors.MT0=
"stop": true "stop": true
}, },
{ {
"type": "show", "type": "animate",
"name": "STzhanshen",
"loc": [
8,
6
],
"async": true
},
{
"type": "setBlock",
"number": "fairy",
"loc": [ "loc": [
[ [
8, 8,
@ -574,12 +633,19 @@ main.floors.MT0=
"time": 2000 "time": 2000
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzileng.png", "image": "xianzileng.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
170, 330,
50 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 500 "time": 500
@ -640,12 +706,19 @@ main.floors.MT0=
"time": 1000 "time": 1000
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzi.png", "image": "xianzi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
170, 330,
50 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 500 "time": 500
@ -666,12 +739,19 @@ main.floors.MT0=
"\t[守塔仙子]你.......你是指.........", "\t[守塔仙子]你.......你是指.........",
"\t[邵虎]我想守护的人和教我怎样守护别人的人在里面,我怕他们有危险,所以我必须走这一趟。", "\t[邵虎]我想守护的人和教我怎样守护别人的人在里面,我怕他们有危险,所以我必须走这一趟。",
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzileng.png", "image": "xianzileng.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
170, 330,
50 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 500 "time": 500
@ -691,12 +771,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianzileng.png", "image": "xianzileng.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
170, 330,
50 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 500 "time": 500
@ -704,12 +791,19 @@ main.floors.MT0=
"\t[守塔仙子](是为了爱的坚持吗......", "\t[守塔仙子](是为了爱的坚持吗......",
"\t[守塔仙子](我没理由阻拦他呢......", "\t[守塔仙子](我没理由阻拦他呢......",
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "xianziwunai.png", "image": "xianziwunai.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
170, 330,
50 50,
320,
480
], ],
"opacity": 1, "opacity": 1,
"time": 500 "time": 500
@ -751,23 +845,10 @@ main.floors.MT0=
6 6
], ],
"time": 500, "time": 500,
"keep": true,
"steps": [ "steps": [
"right:1" "right:1"
] ]
},
{
"type": "show",
"loc": [
[
9,
6
]
],
"time": 500
},
{
"type": "hide",
"time": 0
} }
] ]
} }
@ -790,12 +871,19 @@ main.floors.MT0=
"condition": "((flag:hard==1 )||(( flag:hard==2 )||( flag:hard==5)))", "condition": "((flag:hard==1 )||(( flag:hard==2 )||( flag:hard==5)))",
"true": [ "true": [
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "npcnv.png", "image": "npcnv.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
40 70,
"287.2",
"417.6"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -842,15 +930,20 @@ main.floors.MT0=
], ],
"1,3": [ "1,3": [
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "shaohusikao.png", "image": "shaohusikao.png",
"loc": [ "sloc": [
0, 0,
20 0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
], ],
"dw": 100,
"dh": 100,
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
}, },
@ -926,12 +1019,19 @@ main.floors.MT0=
"condition": "(flag:344==1)", "condition": "(flag:344==1)",
"true": [ "true": [
{ {
"type": "showImage", "type": "showImage2",
"code": 7, "code": 7,
"image": "gongzhuzhending.png", "image": "gongzhuzhending.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
40 90,
"319.2",
"389.6"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -951,12 +1051,19 @@ main.floors.MT0=
"condition": "(flag:1fgongzhu==1)", "condition": "(flag:1fgongzhu==1)",
"true": [ "true": [
{ {
"type": "showImage", "type": "showImage2",
"code": 6, "code": 6,
"image": "gongzhubuzaihu.png", "image": "gongzhuzaihu.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
40 90,
"319.2",
"389.6"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -978,12 +1085,19 @@ main.floors.MT0=
"number": "princess" "number": "princess"
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "gongzhupinghe.png", "image": "gongzhupinghe.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
40 90,
"319.2",
"389.6"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -991,12 +1105,19 @@ main.floors.MT0=
"\t[公主]...............", "\t[公主]...............",
"\t[公主].......看看塔外面,还真的有点想家。", "\t[公主].......看看塔外面,还真的有点想家。",
{ {
"type": "showImage", "type": "showImage2",
"code": 2, "code": 2,
"image": "shaohuzixin.png", "image": "shaohuzixin.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
-30, 80,
20 50,
"291.2",
"466.4"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -1008,12 +1129,19 @@ main.floors.MT0=
"time": 0 "time": 0
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 3, "code": 3,
"image": "gongzhuzhending.png", "image": "gongzhuzhending.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
40 90,
"319.2",
"389.6"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -1025,12 +1153,19 @@ main.floors.MT0=
"time": 0 "time": 0
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 4, "code": 4,
"image": "shaohusikao.png", "image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
-30, 80,
20 50,
"291.2",
"466.4"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -1057,12 +1192,19 @@ main.floors.MT0=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 5, "code": 5,
"image": "gongzhulianhong.png", "image": "gongzhulianhong.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
180, 330,
40 90,
"319.2",
"389.6"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0

View File

@ -295,14 +295,14 @@ main.floors.MT1=
[ 0,348, 21, 2, 31, 2, 88, 2, 27, 2, 31, 2, 28,352, 0], [ 0,348, 21, 2, 31, 2, 88, 2, 27, 2, 31, 2, 28,352, 0],
[ 0,348,205, 81, 0, 0, 0, 2, 21,209, 0,209, 32,352, 0], [ 0,348,205, 81, 0, 0, 0, 2, 21,209, 0,209, 32,352, 0],
[ 0,348, 21, 2,201, 2, 2, 2, 2, 2, 81, 2, 2,352, 0], [ 0,348, 21, 2,201, 2, 2, 2, 2, 2, 81, 2, 2,352, 0],
[ 0,348, 2, 2, 0,121, 2, 0, 22, 2,209, 0, 2,352, 0], [ 0,348, 2, 2, 0,121, 2, 0, 45, 2,209, 22, 2,352, 0],
[ 0,348, 31,202, 0, 0,202, 0, 0, 0, 0, 0, 2,352, 0], [ 0,348, 31,202, 0, 0,202, 0, 0, 0, 0, 0, 2,352, 0],
[ 0,348, 2, 2,210, 2, 2, 2, 82, 2, 2, 0, 2,352, 0], [ 0,348, 2, 2,210, 2, 2, 2, 82, 2, 2, 0, 2,352, 0],
[ 0,348, 31, 21,209, 0, 21, 0,209, 32, 2, 0, 87,352, 0], [ 0,348, 31, 21,209, 0, 21, 0,209, 32, 2, 0, 87,352, 0],
[ 0,348, 2, 2, 2, 2,209, 2, 2, 2, 2, 2, 2,352, 0], [ 0,348, 2, 2, 2, 2,209, 2, 2, 2, 2, 2, 2,352, 0],
[ 0,348, 21, 0, 2, 21,205, 2, 0, 28, 2, 0, 27,352, 0], [ 0,348, 21, 0, 2, 21,205, 2, 0, 28, 2, 0, 27,352, 0],
[ 0,348, 21,205, 81, 0, 0, 81,217, 31, 81,210, 0,352, 0], [ 0,348, 21,205, 81, 0, 0, 81,217, 31, 81,210, 31,352, 0],
[ 0,348, 22, 0, 2, 0, 21, 2, 0, 21, 2, 0, 31,352, 0], [ 0,348, 22, 0, 2, 0, 21, 2, 0, 21, 2, 0, 46,352, 0],
[ 0,349,346,346,346,346,346,346,346,346,346,346,346,347, 0], [ 0,349,346,346,346,346,346,346,346,346,346,346,346,347, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0] [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

View File

@ -155,7 +155,7 @@ main.floors.MT10=
"time": 500 "time": 500
}, },
"\t[嗜骨]...................如果我说了的话...你可不可以放过我啊........", "\t[嗜骨]...................如果我说了的话...你可不可以放过我啊........",
"\t[邵虎]当然,看你的态度可以。", "\t[邵虎]当然,看你的态度可以。",
{ {
"type": "sleep", "type": "sleep",
"time": 1000 "time": 1000

View File

@ -45,7 +45,7 @@ main.floors.MT21=
{ {
"type": "moveHero", "type": "moveHero",
"steps": [ "steps": [
"down" "down:1"
] ]
}, },
{ {
@ -136,24 +136,38 @@ main.floors.MT21=
"text": "否", "text": "否",
"action": [ "action": [
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "shaohuyilv.png", "image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
-30, 80,
20 50,
"291.2",
"466.4"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
}, },
"\t[邵虎]这...这是!?", "\t[邵虎]这...这是!?",
{ {
"type": "showImage", "type": "showImage2",
"code": 2, "code": 2,
"image": "jiekexiaohei.png", "image": "jiekexiaohei.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -184,7 +198,7 @@ main.floors.MT21=
"time": 500, "time": 500,
"keep": true, "keep": true,
"steps": [ "steps": [
"down" "down:1"
] ]
}, },
{ {
@ -208,7 +222,7 @@ main.floors.MT21=
"time": 500, "time": 500,
"keep": true, "keep": true,
"steps": [ "steps": [
"down" "down:1"
] ]
}, },
"\t[蓝衣老者]......可恶的魔物!竟然如此嚣张跋扈!今天我就要以联盟的名义将你们消灭!", "\t[蓝衣老者]......可恶的魔物!竟然如此嚣张跋扈!今天我就要以联盟的名义将你们消灭!",
@ -221,7 +235,7 @@ main.floors.MT21=
"time": 500, "time": 500,
"keep": true, "keep": true,
"steps": [ "steps": [
"up" "up:1"
] ]
}, },
"\t[蓝衣老者]游荡于空间之中的雷元素啊!我以双手为引,心灵为介,呼唤你伟大的能量!无上之雷元素聚集-------裁决之雷!", "\t[蓝衣老者]游荡于空间之中的雷元素啊!我以双手为引,心灵为介,呼唤你伟大的能量!无上之雷元素聚集-------裁决之雷!",
@ -260,7 +274,7 @@ main.floors.MT21=
"time": 500, "time": 500,
"keep": true, "keep": true,
"steps": [ "steps": [
"up" "up:1"
] ]
}, },
"\t[蓝衣老者]哼......马上就气急败坏了呢。", "\t[蓝衣老者]哼......马上就气急败坏了呢。",
@ -301,12 +315,19 @@ main.floors.MT21=
}, },
"\t[蓝衣老者].....你...你是.....", "\t[蓝衣老者].....你...你是.....",
{ {
"type": "showImage", "type": "showImage2",
"code": 3, "code": 3,
"image": "jiekedajiao.png", "image": "jiekedajiao.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -319,12 +340,19 @@ main.floors.MT21=
}, },
"\t[蓝衣老者].....啊....全身使不出力气.....", "\t[蓝衣老者].....啊....全身使不出力气.....",
{ {
"type": "showImage", "type": "showImage2",
"code": 4, "code": 4,
"image": "fuyi.png", "image": "fuyi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
220, 400,
80 100,
192,
300
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -341,24 +369,38 @@ main.floors.MT21=
"time": 0 "time": 0
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 5, "code": 5,
"image": "jiekedajiao2.png", "image": "jiekedajiao2.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
}, },
"\t[杰克]老大咱们快走!!被抓住就麻烦了!!", "\t[杰克]老大咱们快走!!被抓住就麻烦了!!",
{ {
"type": "showImage", "type": "showImage2",
"code": 6, "code": 6,
"image": "shaohuyilv.png", "image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
-30, 80,
20 50,
"291.2",
"466.4"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -377,12 +419,19 @@ main.floors.MT21=
"time": 0 "time": 0
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 7, "code": 7,
"image": "fuyi.png", "image": "fuyi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
220, 400,
80 100,
192,
300
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -473,12 +522,19 @@ main.floors.MT21=
"time": 300 "time": 300
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 8, "code": 8,
"image": "fuyi.png", "image": "fuyi.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
220, 400,
80 100,
192,
300
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -562,24 +618,38 @@ main.floors.MT21=
"time": 300 "time": 300
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 9, "code": 6,
"image": "shaohusikao.png", "image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
-30, 80,
20 50,
"291.2",
"466.4"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
}, },
"\t[邵虎]........刚才的那个家伙......虽然体型不大,但我能感觉到是个非常难缠的对手.....实力恐怕要比嗜骨和毒尾还高......", "\t[邵虎]........刚才的那个家伙......虽然体型不大,但我能感觉到是个非常难缠的对手.....实力恐怕要比嗜骨和毒尾还高......",
{ {
"type": "showImage", "type": "showImage2",
"code": 10, "code": 10,
"image": "jiekezixin.png", "image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -591,12 +661,19 @@ main.floors.MT21=
"time": 0 "time": 0
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 11, "code": 11,
"image": "shaohuyilv.png", "image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
-30, 80,
20 50,
"291.2",
"466.4"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -629,7 +706,7 @@ main.floors.MT21=
"time": 500, "time": 500,
"keep": true, "keep": true,
"steps": [ "steps": [
"right" "right:1"
] ]
}, },
{ {
@ -641,12 +718,19 @@ main.floors.MT21=
] ]
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 12, "code": 12,
"image": "jiekeyilv.png", "image": "jiekeyilv.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -658,12 +742,19 @@ main.floors.MT21=
"time": 0 "time": 0
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 13, "code": 13,
"image": "jiekezixin.png", "image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -762,12 +853,19 @@ main.floors.MT21=
"condition": "(flag:21fnpc==1)", "condition": "(flag:21fnpc==1)",
"true": [ "true": [
{ {
"type": "showImage", "type": "showImage2",
"code": 4, "code": 4,
"image": "jiekedajiao.png", "image": "jiekedajiao.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -792,12 +890,19 @@ main.floors.MT21=
"text": "否", "text": "否",
"action": [ "action": [
{ {
"type": "showImage", "type": "showImage2",
"code": 1, "code": 1,
"image": "jiekedajiao.png", "image": "jiekedajiao.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -809,12 +914,19 @@ main.floors.MT21=
"time": 300 "time": 300
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 2, "code": 2,
"image": "shaohuzixin.png", "image": "shaohuzixin.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
-30, 80,
20 50,
"291.2",
"466.4"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0
@ -826,12 +938,19 @@ main.floors.MT21=
"time": 0 "time": 0
}, },
{ {
"type": "showImage", "type": "showImage2",
"code": 3, "code": 3,
"image": "jiekeyilv.png", "image": "jiekeyilv.png",
"sloc": [
0,
0,
null
],
"loc": [ "loc": [
200, 330,
40 70,
"289.6",
"376.8"
], ],
"opacity": 1, "opacity": 1,
"time": 0 "time": 0

View File

@ -139,7 +139,7 @@ main.floors.MT9=
}, },
{ {
"type": "animate", "type": "animate",
"name": "han", "name": "hanyou",
"loc": [ "loc": [
8, 8,
3 3
@ -244,7 +244,7 @@ main.floors.MT9=
[ 0,345,350,350,350,350,350,350,350,350,350,350,350,351, 0], [ 0,345,350,350,350,350,350,350,350,350,350,350,350,351, 0],
[ 0,348, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,352, 0], [ 0,348, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,352, 0],
[ 0,348, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2,352, 0], [ 0,348, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2,352, 0],
[ 0,348, 4, 4, 4, 2, 0, 0,211,301, 0, 0, 0,352, 0], [ 0,348, 4, 4, 4, 2, 0, 0,551,554, 0, 0, 0,352, 0],
[ 0,348, 4, 4, 4, 2, 0, 2, 0, 0, 0, 0, 89,352, 0], [ 0,348, 4, 4, 4, 2, 0, 2, 0, 0, 0, 0, 89,352, 0],
[ 0,348, 4, 4, 4, 2, 0, 2, 2, 2, 2, 2, 2,352, 0], [ 0,348, 4, 4, 4, 2, 0, 2, 2, 2, 2, 2, 2,352, 0],
[ 0,348, 4, 4, 4, 2, 0, 2, 4, 4, 4, 4, 4,352, 0], [ 0,348, 4, 4, 4, 2, 0, 2, 4, 4, 4, 4, 4,352, 0],

View File

@ -260,7 +260,8 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"N519": 38, "N519": 38,
"N529": 39, "N529": 39,
"N547": 40, "N547": 40,
"N551": 41 "N551": 41,
"N554": 42
}, },
"npc48": { "npc48": {
"npc0": 0, "npc0": 0,

View File

@ -438,5 +438,6 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"550": {"cls":"terrains","id":"T550","canPass":false}, "550": {"cls":"terrains","id":"T550","canPass":false},
"551": {"cls":"npcs","id":"N551"}, "551": {"cls":"npcs","id":"N551"},
"552": {"cls":"animates","id":"A552"}, "552": {"cls":"animates","id":"A552"},
"553": {"cls":"animates","id":"A553","trigger":"openDoor","doorInfo":{"time":160,"openSound":"045-Push01.mp3","closeSound":"045-Push01.mp3","keys":{}},"animate":1} "553": {"cls":"animates","id":"A553","trigger":"openDoor","doorInfo":{"time":160,"openSound":"045-Push01.mp3","closeSound":"045-Push01.mp3","keys":{}},"animate":1},
"554": {"cls":"npcs","id":"N554"}
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -496,6 +496,38 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
} }
return; return;
} }
////// 获得某个物品 //////
core.events.getItem = function (id, num, x, y, isGentleClick, callback) {
if (num == null) num = 1;
var itemCls = core.material.items[id].cls;
core.removeBlock(x, y);
core.items.getItemEffect(id, num);
var text = '获得 ' + core.material.items[id].name;
if (num > 1) text += "x" + num;
if (itemCls === 'items' && num == 1) text += core.items.getItemEffectTip(id);
core.drawTip(text, id);
// --- 首次获得道具的提示
if (!core.hasFlag("__itemHint__")) core.setFlag("__itemHint__", []);
var itemHint = core.getFlag("__itemHint__");
if (core.flags.itemFirstText && itemHint.indexOf(id) < 0 && itemCls != 'items') {
var hint = core.material.items[id].text || "该道具暂无描述";
try {
hint = core.replaceText(hint);
} catch (e) { }
if (!core.status.event.id || core.status.event.id == 'action') {
core.insertAction("\t[" + core.material.items[id].name + "," + id + "]\b[center]" + hint + "\n"
+ (id.endsWith('Key') ? "(钥匙类道具,遇到对应的门时自动打开)"
: itemCls == 'tools' ? "消耗类道具请按T在道具栏使用"
: itemCls == 'constants' ? "永久类道具请按T在道具栏使用"
: itemCls == 'equips' ? "装备类道具请按Q在装备栏进行装备" : ""));
}
itemHint.push(id);
}
this.afterGetItem(id, x, y, isGentleClick);
if (callback) callback();
}
}, },
"drawLight": function () { "drawLight": function () {
@ -2847,5 +2879,116 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
} }
animateHwnd.start(); animateHwnd.start();
} }
},
"怪物手册和显伤": function () {
// 在此增加新插件
////// 获得所有特殊属性的名称 /////
enemys.prototype.getSpecialText = function (enemy) {
if (typeof enemy == 'string') enemy = core.material.enemys[enemy];
if (!enemy) return [];
var special = enemy.special;
var text = [];
var specials = this.getSpecials();
if (specials) {
for (var i = 0; i < specials.length; i++) {
if (this.hasSpecial(special, specials[i][0]))
text.push(this._calSpecialContent(enemy, specials[i][1]));
}
}
if (special === 0) {
text.push('普通'); ///////无特殊属性时增加“普通”属性显示
}
return text;
}
////// 获得所有特殊属性的颜色 //////
enemys.prototype.getSpecialColor = function (enemy) {
if (typeof enemy == 'string') enemy = core.material.enemys[enemy];
if (!enemy) return [];
var special = enemy.special;
var colors = [];
var specials = this.getSpecials();
if (specials) {
for (var i = 0; i < specials.length; i++) {
if (this.hasSpecial(special, specials[i][0]))
colors.push(specials[i][3] || null);
}
}
if (special === 0) {
colors.push("#ffffff"); ////“普通”属性显示为白色
}
return colors;
}
ui.prototype._drawBook_drawDamage = function (index, enemy, offset, position) {
core.setTextAlign('ui', 'center');
var damage = enemy.damage,
color = '#FFFF00';
if (damage == null) {
damage = '????'; ////////无法战斗怪物手册中改为????显示
color = '#FF2222';
} else {
if (damage >= core.status.hero.hp) color = '#FF2222';
else if (damage >= core.status.hero.hp * 2 / 3) color = '#FF9933';
else if (damage <= 0) color = '#11FF11';
damage = core.formatBigNumber(damage);
if (core.enemys.hasSpecial(enemy, 19)) damage += "+";
if (core.enemys.hasSpecial(enemy, 21)) damage += "-";
if (core.enemys.hasSpecial(enemy, 11)) damage += "^";
}
if (enemy.notBomb) damage += "[b]";
core.fillText('ui', damage, offset, position, color, this._buildFont(13, true));
}
},
"楼传界面": function () {
// 在此增加新插件
////// 绘制楼层传送器 //////
ui.prototype.drawFly = function (page) {
core.status.event.data = page;
var floorId = core.floorIds[page];
var title = core.status.maps[floorId].title;
core.clearMap('ui');
core.setAlpha('ui', 0.85);
core.fillRect('ui', 0, 0, core._PX_, core._PY_, '#000000');
core.setAlpha('ui', 1);
core.setTextAlign('ui', 'center');
core.fillText('ui', '楼层跳跃', core._PX_ / 2, 48, '#FFFFFF', this._buildFont(28, true));
core.fillText('ui', '返回游戏', core._PX_ / 2, core._PY_ - 13, null, this._buildFont(15, true))
core.setTextAlign('ui', 'right');
core.fillText('ui', '浏览地图时也', core._PX_ - 10, core._PY_ - 23, '#aaaaaa', this._buildFont(10, false));
core.fillText('ui', '可楼层跳跃!', core._PX_ - 10, core._PY_ - 11, null, this._buildFont(10, false));
core.setTextAlign('ui', 'center');
var middle = core._PY_ / 2 + 39;
// 换行
var lines = core.splitLines('ui', title, 120, this._buildFont(16, true));
var start_y = middle - (lines.length - 1) * 11;
for (var i in lines) {
core.fillText('ui', lines[i], core._PX_ - 60, start_y, '#FFFFFF');
start_y += 22;
}
if (core.actions._getNextFlyFloor(1) != page) {
core.fillText('ui', '▲', core._PX_ - 60, middle - 64, null, this._buildFont(17, false));
core.fillText('ui', '▲', core._PX_ - 60, middle - 96);
core.fillText('ui', '▲', core._PX_ - 60, middle - 96 - 7);
}
if (core.actions._getNextFlyFloor(-1) != page) {
core.fillText('ui', '▼', core._PX_ - 60, middle + 64, null, this._buildFont(17, false));
core.fillText('ui', '▼', core._PX_ - 60, middle + 96);
core.fillText('ui', '▼', core._PX_ - 60, middle + 96 + 7);
}
var size = 0.75;
core.strokeRect('ui', 16, 64, size * core._PX_, size * core._PY_, '#FFFFFF', 2);
core.drawThumbnail(floorId, null, { ctx: 'ui', x: 16, y: 64, size: size, damage: true, all: true });
}
} }
} }