npc任务标志
This commit is contained in:
parent
c284d3f0fc
commit
a841a13fb8
@ -44,6 +44,7 @@ taskEvent_m
|
||||
: '任务描述' EvalString_Multi? BGNL? Newline
|
||||
'需完成的最低子任务数' Int BGNL? Newline
|
||||
tasksList+ Newline
|
||||
'接取任务后事件' BGNL? Newline action+ Newline
|
||||
'完成奖励' BGNL? Newline action+
|
||||
|
||||
|
||||
@ -51,7 +52,7 @@ taskEvent_m
|
||||
colour : this.tasksColor
|
||||
default :["任务描述",1]
|
||||
EvalString_Multi_0=EvalString_Multi_0?(',"text": "'+EvalString_Multi_0+'"'): '';
|
||||
var code = '{"type":"taskEvent"'+EvalString_Multi_0+',"n":'+Int_0+',"info":['+tasksList_0+'\n]'+', "action": [\n' + action_0 + ']}\n'
|
||||
var code = '{"type":"taskEvent"'+EvalString_Multi_0+',"n":'+Int_0+',"info":['+tasksList_0+'\n]'+', "beforeAction": [\n' + action_0 +'], "action": [\n' + action_1 + ']}\n'
|
||||
return code;
|
||||
*/;
|
||||
|
||||
|
@ -2,7 +2,9 @@ MotaActionParser = function () {
|
||||
function ActionParser() {}
|
||||
|
||||
ActionParser.prototype.parse = function (obj, type) {
|
||||
|
||||
switch (type) {
|
||||
|
||||
case "taskEvent": // 设置任务
|
||||
if (!obj) obj = {"type":"taskEvent","text": "任务描述","n":1,"info":[
|
||||
{"type":"checkItem","checkItem":"yellowKey","operator":">=","count":0},
|
||||
@ -11,11 +13,12 @@ MotaActionParser = function () {
|
||||
{"type":"checkBlock","checkBlock":"bat","floorId":["MT1","MT2"],"operator":"<=","count":0},
|
||||
{"type":"kill","operator":">=","count":0},
|
||||
{"type":"killLocs", "loc": [[1,1]],"floorId":"MT1","operator":">=","count":1},
|
||||
{"type":"killSpecial","killSpecial":"61","floorId":["61"],"operator":">=","count":1},
|
||||
{"type":"killSpecial","killSpecial":"61","floorId":["MT1", "MT2"],"operator":">=","count":1},
|
||||
{"type":"killAll","floorId":["MT1"]},
|
||||
{"type":"specialBlock","floorId":["MT1"],"specialBlock":"血网伤害","operator":"<","count":1},
|
||||
{"type":"gosthFloor","floorId":["MT1"],"operator":"<","count":1},
|
||||
{"type":"arrival","floorId":"MT1"},
|
||||
], "beforeAction": [
|
||||
], "action": [
|
||||
]};
|
||||
var that=this
|
||||
@ -82,8 +85,8 @@ MotaActionParser = function () {
|
||||
]);
|
||||
}else if(one.type==="killSpecial"){
|
||||
res = MotaActionBlocks["killSpecial"].xmlText([
|
||||
one.floorId.join(","),
|
||||
one.killSpecial,
|
||||
one.floorId.join(","),
|
||||
one.operator,
|
||||
one.count,
|
||||
one.text||"",
|
||||
@ -121,7 +124,7 @@ MotaActionParser = function () {
|
||||
}
|
||||
return res;
|
||||
};
|
||||
return MotaActionBlocks['taskEvent_m'].xmlText([obj.text||"",obj.n,bulidTaskList(obj.info),this.insertActionList(obj.action)]);
|
||||
return MotaActionBlocks['taskEvent_m'].xmlText([obj.text||"",obj.n,bulidTaskList(obj.info),this.insertActionList(obj.beforeAction),this.insertActionList(obj.action)]);
|
||||
case "event":
|
||||
if (!obj) obj = {};
|
||||
if (typeof obj === typeof "") obj = { data: [obj] };
|
||||
|
@ -740,7 +740,21 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
||||
"_range": "thiseval <= Number.MAX_SAFE_INTEGER && thiseval>=0",
|
||||
"_docs": "宝石血瓶效果",
|
||||
"_data": "每一层的宝石/血瓶效果,即获得宝石和血瓶时框内\"ratio\"的值。"
|
||||
}
|
||||
},
|
||||
"setTasks": {
|
||||
"_leaf": true,
|
||||
"_type": "textarea",
|
||||
"_range": "thiseval instanceof Object && !(thiseval instanceof Array)",
|
||||
"_docs": "任务接取坐标",
|
||||
"_data": "格式为{新手任务:[1,1],task1:[0,3]}"
|
||||
},
|
||||
"mitTasks": {
|
||||
"_leaf": true,
|
||||
"_type": "textarea",
|
||||
"_range": "thiseval instanceof Object && !(thiseval instanceof Array)",
|
||||
"_docs": "任务提交坐标",
|
||||
"_data": "格式为{新手任务:[1,1],task1:[0,3]}"
|
||||
},
|
||||
}
|
||||
},
|
||||
"loc": {
|
||||
@ -861,6 +875,8 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"setTasks": {},
|
||||
"mitTasks": {},
|
||||
"cannotMoveIn": {}
|
||||
}
|
||||
}
|
||||
|
@ -53,6 +53,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"HPGaugeEnemy_B.webp",
|
||||
"LOGO.webp",
|
||||
"aiy00010_06.webp",
|
||||
"aiy00030_00.png",
|
||||
"aiy00030_01.png",
|
||||
"background.webp",
|
||||
"backgroundvertical.webp",
|
||||
"bg_0000.png",
|
||||
@ -458,6 +460,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"lr.webp",
|
||||
"maba.webp",
|
||||
"miwu.webp",
|
||||
"noTask.png",
|
||||
"null.webp",
|
||||
"other_0001.webp",
|
||||
"other_0002.webp",
|
||||
@ -467,7 +470,9 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"sound.webp",
|
||||
"status.webp",
|
||||
"statusBackground.webp",
|
||||
"sucessTask.png",
|
||||
"suiji.webp",
|
||||
"task.png",
|
||||
"tati_020101.webp",
|
||||
"tati_020101a.webp",
|
||||
"tati_020101y.webp",
|
||||
|
@ -11814,7 +11814,8 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 =
|
||||
"type": "killSpecial",
|
||||
"killSpecial": "61",
|
||||
"floorId": [
|
||||
"61"
|
||||
"MT1",
|
||||
"MT2"
|
||||
],
|
||||
"operator": ">=",
|
||||
"count": 1
|
||||
@ -11843,6 +11844,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 =
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"beforeAction": [],
|
||||
"action": []
|
||||
},
|
||||
"task1": {
|
||||
@ -11899,7 +11901,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 =
|
||||
"type": "killSpecial",
|
||||
"killSpecial": "61",
|
||||
"floorId": [
|
||||
"61"
|
||||
"MT1"
|
||||
],
|
||||
"operator": ">=",
|
||||
"count": 1
|
||||
@ -11928,6 +11930,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 =
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"beforeAction": [],
|
||||
"action": []
|
||||
}
|
||||
}
|
||||
|
@ -140,5 +140,7 @@ main.floors.Caimhome=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -134,5 +134,7 @@ main.floors.KTV=
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0,71701,71702, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -106,5 +106,7 @@ main.floors.KTVF2=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -98,5 +98,7 @@ main.floors.bihusuo=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -136,5 +136,7 @@ main.floors.changguan1=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -172,5 +172,7 @@ main.floors.changguan2=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -125,5 +125,7 @@ main.floors.chushi=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -106,5 +106,7 @@ main.floors.goldkey=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -352,5 +352,7 @@ main.floors.guangchang=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -129,5 +129,7 @@ main.floors.guangchang2=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -128,5 +128,7 @@ main.floors.guangchang3=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -134,5 +134,7 @@ main.floors.guangchang4=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -150,5 +150,7 @@ main.floors.guangchang5=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -112,5 +112,7 @@ main.floors.guangchang6=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -281,5 +281,7 @@ main.floors.jiaocheng01=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -336,5 +336,7 @@ main.floors.jiaocheng02=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -171,5 +171,7 @@ main.floors.jiaocheng03=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -123,5 +123,7 @@ main.floors.jiaotang=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -119,5 +119,7 @@ main.floors.jiuguan=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -98,5 +98,7 @@ main.floors.shengnvhome=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -98,5 +98,7 @@ main.floors.shinvhome=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -128,5 +128,7 @@ main.floors.street01=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"mitTasks": {},
|
||||
"setTasks": {}
|
||||
}
|
@ -66,5 +66,7 @@ main.floors.street02=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -113,5 +113,7 @@ main.floors.xiaoxiang01=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -94,5 +94,7 @@ main.floors.xiaoxiang02=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -196,5 +196,7 @@ main.floors.xiaoxiang3=
|
||||
[ 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]
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -117,5 +117,7 @@ main.floors.yiqu1=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -49,5 +49,7 @@ main.floors.yiqu10=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -49,5 +49,7 @@ main.floors.yiqu11=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -49,5 +49,7 @@ main.floors.yiqu12=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -49,5 +49,7 @@ main.floors.yiqu13=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -136,5 +136,7 @@ main.floors.yiqu2=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -126,5 +126,7 @@ main.floors.yiqu3=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -100,5 +100,7 @@ main.floors.yiqu4=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -182,5 +182,7 @@ main.floors.yiqu5=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -72,5 +72,7 @@ main.floors.yiqu6=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -57,5 +57,7 @@ main.floors.yiqu7=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -49,5 +49,7 @@ main.floors.yiqu8=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -49,5 +49,7 @@ main.floors.yiqu9=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -58,5 +58,7 @@ main.floors.yushou=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
@ -102,5 +102,7 @@ main.floors.zhujuejia=
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
],
|
||||
"setTasks": {},
|
||||
"mitTasks": {}
|
||||
}
|
BIN
project/images/noTask.png
Normal file
BIN
project/images/noTask.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 919 B |
BIN
project/images/sucessTask.png
Normal file
BIN
project/images/sucessTask.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 661 B |
BIN
project/images/task.png
Normal file
BIN
project/images/task.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 919 B |
@ -3028,7 +3028,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
core.overupdate()
|
||||
if (main.dom.saveLoad && main.dom.saveLoad.style.display === "block")
|
||||
core.saveLoad.update();
|
||||
if (core.status.event.data?.type == "menu") core.menu.update()
|
||||
if (core.status.event?.data?.type == "menu") core.menu.update()
|
||||
};
|
||||
|
||||
class StatusBar {
|
||||
@ -11914,26 +11914,27 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
"text": "任务描述",
|
||||
"n": 1,
|
||||
"info": [
|
||||
{ "type": "checkItem", "checkItem": "yellowKey", "operator": ">=", "count": 0 },
|
||||
{ "type": "checkStatus", "checkStatus": "atk", "operator": ">=", "count": 10 },
|
||||
{ "type": "checkItem", "checkItem": "yellowKey", "operator": ">=", "count": 0 },
|
||||
{ "type": "checkStatus", "checkStatus": "atk", "operator": ">=", "count": 10 },
|
||||
{ "type": "checkFlag", "checkFlag": "flag1", "operator": "=", "count": "\"value\"" },
|
||||
{ "type": "checkBlock", "checkBlock": "bat", "floorId": ["MT1", "MT2"], "operator": "<=", "count": 0 },
|
||||
{ "type": "kill", "operator": ">=", "count": 0 },
|
||||
{ "type": "checkBlock", "checkBlock": "bat", "floorId": ["MT1", "MT2"], "operator": "<=", "count": 0 },
|
||||
{ "type": "kill", "operator": ">=", "count": 0 },
|
||||
{
|
||||
"type": "killLocs",
|
||||
"loc": [
|
||||
[1, 1]
|
||||
],
|
||||
"floorId": "MT1",
|
||||
"operator": ">=",
|
||||
"operator": ">=",
|
||||
"count": 1
|
||||
},
|
||||
{ "type": "killSpecial", "killSpecial": "61", "floorId": ["61"], "operator": ">=", "count": 1 },
|
||||
{ "type": "killSpecial", "killSpecial": "61", "floorId": ["MT1", "MT2"], "operator": ">=", "count": 1 },
|
||||
{ "type": "killAll", "floorId": ["MT1"] },
|
||||
{ "type": "specialBlock", "floorId": ["MT1"], "specialBlock": "血网伤害", "operator": "<", "count": 1 },
|
||||
{ "type": "gosthFloor", "floorId": ["MT1"], "operator": "<", "count": 1 },
|
||||
{ "type": "specialBlock", "floorId": ["MT1"], "specialBlock": "血网伤害", "operator": "<", "count": 1 },
|
||||
{ "type": "gosthFloor", "floorId": ["MT1"], "operator": "<", "count": 1 },
|
||||
{ "type": "arrival", "floorId": "MT1" },
|
||||
],
|
||||
"beforeAction": [],
|
||||
"action": []
|
||||
},
|
||||
"taskEvent"
|
||||
@ -12356,6 +12357,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
"text1": "新手任务",
|
||||
"text2": "task1,task2",
|
||||
"condition": "'新手任务'.split(',').some(v=>core.plugin.可接取任务.includes(v))||'task1,task2,'.split(',').some(v=>core.taskSystem.tasksInfo.findIndex(a => a.name ===v.name))",
|
||||
"beforeAction": [],
|
||||
"action": [
|
||||
|
||||
]
|
||||
@ -28259,6 +28261,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
if (task && core.plugin.可接取任务.includes(name)) {
|
||||
this.tasksInfo.push({ name, text: task.text, n: task.n, action: task.action, tasks: task.info.map(v => new Task(v)) })
|
||||
this.tasksInfo[this.tasksInfo.length - 1].complter = this.checkTask(this.tasksInfo.length - 1)
|
||||
if (task.beforeAction.length > 0) core.insertAction(task.beforeAction)
|
||||
}
|
||||
}
|
||||
checkTask(index) {
|
||||
@ -28291,7 +28294,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
trymitTask(index) {
|
||||
if (index < 0 || index > this.tasksInfo.length - 1) return
|
||||
if (this.checkTask(index)) {
|
||||
if (this.tasksInfo[i].action) core.insertAction(this.tasksInfo[i].action)
|
||||
if (this.tasksInfo[i].action.length > 0) core.insertAction(this.tasksInfo[i].action)
|
||||
core.plugin.已提交任务.push(this.tasksInfo[i].name)
|
||||
this.removeTask(index)
|
||||
}
|
||||
@ -28301,7 +28304,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
const index = this.tasksInfo.findIndex(v => v.name === name)
|
||||
if (index < 0 || index > this.tasksInfo.length - 1) return
|
||||
if (this.checkTask(index)) {
|
||||
if (this.tasksInfo[i].action) core.insertAction(this.tasksInfo[i].action)
|
||||
if (this.tasksInfo[i].action.length > 0) core.insertAction(this.tasksInfo[i].action)
|
||||
core.plugin.已提交任务.push(name)
|
||||
this.removeTask(index)
|
||||
}
|
||||
@ -29086,5 +29089,75 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
};
|
||||
})();
|
||||
}
|
||||
},
|
||||
"任务提示": function () {
|
||||
// 在此增加新插件
|
||||
let time = 0
|
||||
let ctx
|
||||
let alpha = 0
|
||||
let add = 1
|
||||
core.registerAnimationFrame("taskPic", true, (timestemp) => {
|
||||
if (timestemp - time < 50) return
|
||||
time = timestemp
|
||||
if (!ctx) ctx = core.createCanvas("taskPic", 0, 0, 416, 416, 141)
|
||||
let floorId
|
||||
if (core.status.lockControl && core.status.event.id == "viewMaps") {
|
||||
ctx.canvas.style.zIndex = 141
|
||||
floorId = core.floorIds[core.status.event.data?.index]
|
||||
} else {
|
||||
ctx.canvas.style.zIndex = 66
|
||||
floorId = core.status.floorId
|
||||
}
|
||||
if (!floorId) return
|
||||
let setTasks = core.floors[floorId].setTasks
|
||||
let mitTasks = core.floors[floorId].mitTasks
|
||||
let settask = []
|
||||
let notask = []
|
||||
let seccesstask = []
|
||||
|
||||
core.plugin.可接取任务.forEach(v => {
|
||||
if (setTasks[v]) {
|
||||
if (!settask.some(a => a[0] === setTasks[v][0] && a[1] === setTasks[v][1])) settask.push(setTasks[v])
|
||||
}
|
||||
})
|
||||
let task = core.taskSystem.tasksInfo
|
||||
task.forEach((v, i) => {
|
||||
if (mitTasks[v.name]) {
|
||||
|
||||
if (!settask.some(a => a[0] === setTasks[v.name][0] && a[1] === setTasks[v.name][1])) {
|
||||
let success = task.checkTask(i)
|
||||
if (success && !seccesstask.some(a => a[0] === mitTasks[v.name][0] && a[1] === mitTasks[v.name][1])) {
|
||||
seccesstask.push(mitTasks[v.name])
|
||||
}
|
||||
if (!success && !notask.some(a => a[0] === mitTasks[v.name][0] && a[1] === mitTasks[v.name][1])) {
|
||||
notask.push(mitTasks[v.name])
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
core.clearMap(ctx)
|
||||
core.setAlpha(ctx, alpha)
|
||||
alpha += 0.05 * add
|
||||
if (alpha >= 1) add = -1
|
||||
if (alpha <= 0) add = 1
|
||||
settask.forEach(v => {
|
||||
let block = core.getBlockCls(v[0], v[1], floorId)
|
||||
if (!block) return
|
||||
if (block === "npcs") core.drawImage(ctx, "task.png", v[0] * 32 + 4, v[1] * 32 - 20, 24, 24)
|
||||
if (block === "npc48") core.drawImage(ctx, "task.png", v[0] * 32 + 4, v[1] * 32 - 36, 24, 24)
|
||||
})
|
||||
seccesstask.forEach(v => {
|
||||
let block = core.getBlockCls(v[0], v[1], floorId)
|
||||
if (!block) return
|
||||
if (block === "npcs") core.drawImage(ctx, "sucessTask.png", v[0] * 32 + 4, v[1] * 32 - 20, 24, 24)
|
||||
if (block === "npc48") core.drawImage(ctx, "sucessTask.png", v[0] * 32 + 4, v[1] * 32 - 36, 24, 24)
|
||||
})
|
||||
notask.forEach(v => {
|
||||
let block = core.getBlockCls(v[0], v[1], floorId)
|
||||
if (!block) return
|
||||
if (block === "npcs") core.drawImage(ctx, "noTask.png", v[0] * 32 + 4, v[1] * 32 - 20, 24, 24)
|
||||
if (block === "npc48") core.drawImage(ctx, "noTask.png", v[0] * 32 + 4, v[1] * 32 - 36, 24, 24)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
@ -78,7 +78,7 @@ var task_comment = {
|
||||
"type": "killSpecial",
|
||||
"killSpecial": "61",
|
||||
"floorId": [
|
||||
"61"
|
||||
"MT1","MT2"
|
||||
],
|
||||
"operator": ">=",
|
||||
"count": 1
|
||||
@ -106,7 +106,7 @@ var task_comment = {
|
||||
"operator": "<",
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
],"beforeAction":[],
|
||||
"action": [
|
||||
{
|
||||
"type": "setmusics"
|
||||
|
Loading…
Reference in New Issue
Block a user