This commit is contained in:
wh_zcy 2023-05-25 17:51:13 +08:00
commit b4218fcc0d
25 changed files with 4919 additions and 5348 deletions

View File

@ -79,6 +79,10 @@
"id": 10302,
"drop": 1002
},
{
"id": 10303,
"drop": 1003
},
{
"id": 10401,
"drop": 1001

View File

@ -4,10 +4,10 @@
"scene": "leveldemo_fcamer_1_1",
"levelname": "Look For Blast Air",
"maintask": [
11187001
11187021
],
"subtask": [
11187002
11187022
],
"award": [
{
@ -33,7 +33,7 @@
"n": 1
}
],
"debrisitemid": "16001001",
"debrisitemid": "16004002",
"scenemusic": "scenemusic_leveldemo_fcamer_1_1",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_1"
},
@ -270,10 +270,10 @@
"scene": "leveldemo_fcamer_1_8",
"levelname": "Save the holy tree",
"maintask": [
11187015
11187001
],
"subtask": [
11187016
11187002
],
"award": [
{
@ -299,7 +299,7 @@
"n": 1
}
],
"debrisitemid": "16003002",
"debrisitemid": "16001001",
"scenemusic": "scenemusic_leveldemo_fcamer_1_8",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_8"
},
@ -375,7 +375,7 @@
"n": 1
}
],
"debrisitemid": "",
"debrisitemid": "16004001",
"scenemusic": "scenemusic_leveldemo_fcamer_1_10",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_10"
}

View File

@ -216,11 +216,11 @@
"prize": [
{
"a": "item",
"t": "90002",
"n": 1
"t": "16001001",
"n": 4
}
],
"star": 2,
"star": 1,
"p": 333
},
{
@ -234,7 +234,7 @@
"n": 1
}
],
"star": 2,
"star": 1,
"p": 333
},
{
@ -248,7 +248,7 @@
"n": 1
}
],
"star": 2,
"star": 1,
"p": 333
},
{

View File

@ -2173,7 +2173,7 @@
"betreadd": 0,
"suckblood": 0,
"hpgrow": 2000,
"atkgrow": 1300,
"atkgrow": 4200,
"defgrow": 2000,
"speedgrow": 0
},
@ -2195,7 +2195,7 @@
"betreadd": 0,
"suckblood": 0,
"hpgrow": 2000,
"atkgrow": 1300,
"atkgrow": 4200,
"defgrow": 1500,
"speedgrow": 0
},
@ -2217,7 +2217,7 @@
"betreadd": 0,
"suckblood": 0,
"hpgrow": 2250,
"atkgrow": 1300,
"atkgrow": 4200,
"defgrow": 1500,
"speedgrow": 0
},
@ -2239,7 +2239,7 @@
"betreadd": 0,
"suckblood": 0,
"hpgrow": 2000,
"atkgrow": 1300,
"atkgrow": 4200,
"defgrow": 2000,
"speedgrow": 0
},
@ -2261,7 +2261,7 @@
"betreadd": 0,
"suckblood": 0,
"hpgrow": 2000,
"atkgrow": 1300,
"atkgrow": 4200,
"defgrow": 1500,
"speedgrow": 0
},
@ -2283,7 +2283,7 @@
"betreadd": 0,
"suckblood": 0,
"hpgrow": 2250,
"atkgrow": 1300,
"atkgrow": 4200,
"defgrow": 1500,
"speedgrow": 0
},
@ -2305,7 +2305,7 @@
"betreadd": 0,
"suckblood": 0,
"hpgrow": 1250,
"atkgrow": 1000,
"atkgrow": 4200,
"defgrow": 1250,
"speedgrow": 0
},
@ -2327,7 +2327,7 @@
"betreadd": 0,
"suckblood": 0,
"hpgrow": 1000,
"atkgrow": 1300,
"atkgrow": 4200,
"defgrow": 1250,
"speedgrow": 0
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -34,16 +34,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 6
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 5
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -82,16 +82,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 7
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 6
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -130,16 +130,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 8
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 7
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -178,16 +178,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 9
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 8
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -226,16 +226,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 10
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 9
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -274,16 +274,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 11
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 10
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -322,16 +322,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 12
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 11
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -370,16 +370,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 13
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 12
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -418,16 +418,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 14
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 13
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -466,16 +466,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 15
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 14
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -514,16 +514,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 6
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 5
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -562,16 +562,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 7
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 6
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -610,16 +610,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 8
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 7
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -658,16 +658,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 9
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 8
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -706,16 +706,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 10
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 9
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -754,16 +754,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 11
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 10
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -802,16 +802,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 12
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 11
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -850,16 +850,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 13
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 12
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -898,16 +898,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 14
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 13
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -946,16 +946,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 15
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 14
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -994,16 +994,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 6
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 5
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1042,16 +1042,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 7
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 6
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1090,16 +1090,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 8
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 7
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1138,16 +1138,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 9
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 8
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1186,16 +1186,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 10
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 9
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1234,16 +1234,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 11
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 10
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1282,16 +1282,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 12
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 11
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1330,16 +1330,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 13
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 12
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1378,16 +1378,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 14
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 13
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1426,16 +1426,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 15
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 14
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1474,16 +1474,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 6
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 5
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1522,16 +1522,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 7
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 6
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1570,16 +1570,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 8
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 7
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1618,16 +1618,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 9
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 8
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1666,16 +1666,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 10
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 9
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1714,16 +1714,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 11
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 10
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1762,16 +1762,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 12
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 11
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1810,16 +1810,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 13
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 12
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1858,16 +1858,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 14
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 13
"a": "attr",
"t": "ps",
"n": 1
}
]
},
@ -1906,16 +1906,16 @@
],
"ps_consume": [
{
"a": "item",
"t": "100100",
"n": 15
"a": "attr",
"t": "ps",
"n": 5
}
],
"ps_mg": [
{
"a": "item",
"t": "100100",
"n": 14
"a": "attr",
"t": "ps",
"n": 1
}
]
}

File diff suppressed because it is too large Load Diff

View File

@ -17255,8 +17255,7 @@
"FollowSK": [],
"SucFollowSK": [
244004213,
244004214,
244004215
244004214
],
"FailFollowSK": [],
"MustHit": false,
@ -17296,9 +17295,9 @@
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 3,
"Type": 2,
"Argu": [
390001216,
444004211,
1000,
1,
-1
@ -17346,7 +17345,7 @@
"ExecuteCnt": 1,
"Type": 3,
"Argu": [
390001217,
390001216,
1000,
1,
2
@ -17365,6 +17364,53 @@
{
"Id": 244004313,
"EmitPR": 1000,
"From": 2,
"Where": [],
"Order": "",
"Limit": 10,
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
2,
2,
500
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false,
"DpsRevisiType": 0,
"DpsCondition": "",
"RevisiCondition": "",
"RevisiParams": []
},
{
"Id": 244004314,
"EmitPR": 1000,
"From": 2,
"Where": [],
"Order": "",
"Limit": 10,
"ExecuteCnt": 1,
"Type": 3,
"Argu": [
390001105,
1000,
1,
1
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false,
"DpsRevisiType": 0,
"DpsCondition": "",
"RevisiCondition": "",
"RevisiParams": []
},
{
"Id": 244004315,
"EmitPR": 1000,
"From": 3,
"Where": [],
"Order": "",
@ -21206,7 +21252,7 @@
"Argu": [
1,
4,
1000
3000
],
"FollowSK": [
255005112
@ -21348,7 +21394,7 @@
"Argu": [
1,
4,
4000
8000
],
"FollowSK": [
255005312
@ -21375,7 +21421,7 @@
"Argu": [
1,
4,
8000
12000
],
"FollowSK": [
255005313
@ -21424,7 +21470,7 @@
"Argu": [
1,
4,
2000
4000
],
"FollowSK": [
255006112
@ -21522,7 +21568,7 @@
"Argu": [
1,
4,
2000
4000
],
"FollowSK": [
255006214
@ -21558,6 +21604,50 @@
"RevisiCondition": "",
"RevisiParams": []
},
{
"Id": 255006215,
"EmitPR": 1000,
"From": 2,
"Where": [],
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 41,
"Argu": [
1
],
"FollowSK": [],
"SucFollowSK": [
255006216
],
"FailFollowSK": [],
"MustHit": false,
"DpsRevisiType": 0,
"DpsCondition": "",
"RevisiCondition": "",
"RevisiParams": []
},
{
"Id": 255006216,
"EmitPR": 1000,
"From": 3,
"Where": [],
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 40,
"Argu": [
10
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false,
"DpsRevisiType": 0,
"DpsCondition": "",
"RevisiCondition": "",
"RevisiParams": []
},
{
"Id": 255006311,
"EmitPR": 1000,
@ -21714,7 +21804,7 @@
"Argu": [
1,
4,
2000
4000
],
"FollowSK": [
255007112
@ -21817,10 +21907,7 @@
1,
1
],
"FollowSK": [
255007212,
255007213
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false,
@ -21864,7 +21951,7 @@
"Argu": [
1,
4,
2000
6000
],
"FollowSK": [],
"SucFollowSK": [],
@ -21889,9 +21976,7 @@
1,
1
],
"FollowSK": [
255007215
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false,
@ -21938,9 +22023,7 @@
1,
1
],
"FollowSK": [
255007312
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1690,15 +1690,13 @@
},
{
"Id": 455007312,
"When": 12,
"When": 4,
"FromCheck": "",
"TargetCheck": "Target=3",
"TargetCheck": "Target=3NoBuff=390001415",
"MainSkillCheck": "",
"AfterSkillCheck": "",
"BuffCheck": "",
"AddCon": [
"Hpproless=330"
],
"AddCon": [],
"PasPr": 1000,
"Type": "CallSkillPas",
"MaxEmitTimes": 1,
@ -1709,14 +1707,12 @@
{
"Id": 455007313,
"When": 5,
"FromCheck": "Target=3",
"FromCheck": "Target=3,HasBuff=0",
"TargetCheck": "",
"MainSkillCheck": "",
"AfterSkillCheck": "",
"BuffCheck": "",
"AddCon": [
"Hasbuff=1"
],
"AddCon": [],
"PasPr": 1000,
"Type": "CallSkillPas",
"MaxEmitTimes": 1,
@ -2480,5 +2476,54 @@
"Callback": [
255001212
]
},
{
"Id": 444004211,
"When": 16,
"FromCheck": "Target=3",
"TargetCheck": "Target=2",
"MainSkillCheck": "",
"AfterSkillCheck": "",
"BuffCheck": "",
"AddCon": [],
"PasPr": 1000,
"Type": "DetonateBuff",
"MaxEmitTimes": 1,
"Callback": [
390001216,
99
]
},
{
"Id": 455007411,
"When": 16,
"FromCheck": "Target=3,HasBuff=0",
"TargetCheck": "Target=2",
"MainSkillCheck": "",
"AfterSkillCheck": "",
"BuffCheck": "",
"AddCon": [],
"PasPr": 1000,
"Type": "CallSkillPas",
"MaxEmitTimes": 1,
"Callback": [
255007114
]
},
{
"Id": 455007412,
"When": 2,
"FromCheck": "Target=3",
"TargetCheck": "",
"MainSkillCheck": "",
"AfterSkillCheck": "",
"BuffCheck": "",
"AddCon": [],
"PasPr": 1000,
"Type": "CallSkillPas",
"MaxEmitTimes": 1,
"Callback": [
255007116
]
}
]

File diff suppressed because it is too large Load Diff

View File

@ -523,8 +523,8 @@ const (
Rtype38 TaskType = 38 //xx英雄满级
Rtype39 TaskType = 39 //累计英雄共鸣xx次
Rtype40 TaskType = 40 //将xx个英雄共鸣xx次
Rtype41 TaskType = 41 //xx名英雄穿戴xx件xx星级的装备
Rtype42 TaskType = 42 //xx名英雄穿戴xx件xx等级的装备
Rtype41 TaskType = 41 //任意一名英雄穿戴xx件xx星级的装备
Rtype42 TaskType = 42 //任意一名英雄穿戴xx件xx等级的装备
Rtype43 TaskType = 43 //将xx件装备强化至xx级
Rtype44 TaskType = 44 //任意装备强化到xx级
Rtype45 TaskType = 45 //将xx件xx星【xx】套装装备强化至xx级

View File

@ -56,7 +56,6 @@ func (this *apiComp) AskPass(session comm.IUserSession, req *pb.CombatAskPassReq
resp.Passmaintask = mtaskid
resp.Mainaward = atns
level.Pass = 1
}
}

View File

@ -32,14 +32,16 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.HoroscopeUpgrade
return
}
if conf.CostItem != nil && len(conf.CostItem) > 0 { //可有升级
if conf.Front > 0 {
if front, err = this.module.configure.getHoroscope(conf.Front); err != nil {
code = pb.ErrorCode_ConfigNoFound
return
}
if v, ok := info.Nodes[front.NodeId]; !ok || v < front.Lv {
code = pb.ErrorCode_HoroscopeNotTurnedOn
return
for _, _front := range conf.Front {
if _front > 0 {
if front, err = this.module.configure.getHoroscope(_front); err != nil {
code = pb.ErrorCode_ConfigNoFound
return
}
if v, ok := info.Nodes[front.NodeId]; !ok || v < front.Lv {
code = pb.ErrorCode_HoroscopeNotTurnedOn
return
}
}
}
} else {

View File

@ -445,43 +445,43 @@ func (this *ModuleBase) DispenseRes(session comm.IUserSession, res []*cfg.Gameat
if len(attrs) > 0 { //用户属性资源
code = this.ModuleUser.AddAttributeValues(session, attrs, bPush)
this.Debugf("发放用户资源: %v [%v]", attrs, code)
this.Debugf("发放用户资源: %v code : [%v]", attrs, code)
}
if len(items) > 0 { //道具资源
_, code = this.ModuleItems.AddItems(session, items, bPush)
this.Debugf("发放道具资源: %v [%v]", items, code)
this.Debugf("发放道具资源: %v code : [%v]", items, code)
}
if len(heros) > 0 { //卡片资源
_, _, code = this.ModuleHero.CreateRepeatHeros(session, heros, bPush)
this.Debugf("发放英雄资源: %v [%v]", heros, code)
this.Debugf("发放英雄资源: %v code : [%v]", heros, code)
}
if len(equips) > 0 {
_, code = this.ModuleEquipment.AddNewEquipments(session, equips, bPush)
this.Debugf("发放装备资源: %v [%v]", equips, code)
this.Debugf("发放装备资源: %v code : [%v]", equips, code)
}
if len(vip) > 0 { //卡片资源
for k := range vip {
code, _ = this.ModulePrivilege.Delivery(session, k)
this.Debugf("发放月卡资源: %v [%v]", k, code)
this.Debugf("发放月卡资源: %v code : [%v]", k, code)
}
}
if len(atlas) > 0 {
for k := range atlas {
this.ModuleSmithy.CheckActivateAtlasCollect(session.GetUserId(), k)
this.Debugf("发放图鉴资源: %v [%v]", k, code)
this.Debugf("发放图鉴资源: %v code : [%v]", k, code)
}
}
if len(panda) > 0 {
code = this.ModulePractice.AddItems(session, panda, bPush)
this.Debugf("发放武馆资源: %v [%v]", panda, code)
this.Debugf("发放武馆资源: %v code : [%v]", panda, code)
}
if len(mts) > 0 {
code = this.ModuleParkour.AddMounts(session, mts, bPush)
this.Debugf("发放捕羊大赛资源: %v [%v]", mts, code)
this.Debugf("发放捕羊大赛资源: %v code : [%v]", mts, code)
}
if len(per) > 0 {
code = this.ModuleUser.AddPer(session, per, bPush)
this.Debugf("发放用户皮肤资源资源: %v [%v]", mts, code)
this.Debugf("发放用户皮肤资源资源: %v code : [%v]", mts, code)
}
return
}

View File

@ -144,6 +144,6 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
return
}
// 任务相关
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype168, conf.Tab, pagoda.Data[conf.Tab]))
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype168, pagoda.Data[conf.Tab], conf.Tab))
return
}

View File

@ -374,6 +374,7 @@ func (this *Practice) RPC_ModulePracticeUnLockPillar(ctx context.Context, args *
this.atlas.CheckActivatePandaAtlasCollect(args.Param1, "100001")
break
}
go this.ModuleRtask.TriggerTask(args.Param1, comm.GettaskParam(comm.Rtype152, 1))
// for _, v := range configure {
// if v.UnlockCondition == int32(taskid) {
// switch v.Id {

View File

@ -283,9 +283,9 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com
}
if !ok {
this.Debug("验证失败", log.Field{Key: "uid", Value: uid},
log.Field{Key: "params", Value: params},
log.Field{Key: "conf", Value: conf})
// this.Debug("验证失败", log.Field{Key: "uid", Value: uid},
// log.Field{Key: "params", Value: params},
// log.Field{Key: "conf", Value: conf})
continue
}
if handle.update != nil {
@ -311,7 +311,9 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com
}
for _, condId := range condIds {
if code = this.CheckCondi(uid, condId, params...); code == pb.ErrorCode_Success {
r, _ := record.Vals[condId]
conf, _ := this.configure.getRtaskTypeById(condId)
if r.Data[0] >= conf.Data1 {
module, err := this.service.GetModule(comm.ModuleWorldtask)
if err == nil {
//世界任务
@ -402,15 +404,15 @@ func (this *ModuleRtask) CheckCondi(uid string, condiId int32, params ...int32)
return
}
func (this *ModuleRtask) CheckCondis(uid string, condiIds ...int32) (condIds []int32) {
func (this *ModuleRtask) CheckCondis(uid string, condiIds ...int32) (cids []int32) {
record := this.modelRtaskRecord.getRecord(uid)
if record == nil {
return
}
for _, condId := range condIds {
for _, condId := range condiIds {
if _, ok := this.modelRtask.checkCondi(uid, condId, record); ok {
condIds = append(condIds, condId)
cids = append(cids, condId)
}
}

View File

@ -167,25 +167,25 @@ func (this *ModelRtaskRecord) verifyThirdGreatEqualParam(uid string, record *pb.
// two params (first-Equal second-Equal)
func (this *ModelRtaskRecord) veriftyEqualParam(uid string, record *pb.DBRtaskRecord, cfg *cfg.GameRdtaskCondiData, params ...int32) (ok bool, count int32, err error) {
if len(params) == 0 {
if len(params) != 2 {
err = errors.New("玩家参数数据缺失")
return
}
var paramLen int
if paramLen, err = lenParam(cfg, params...); err == nil {
// var paramLen int
if _, err = lenParam(cfg, params...); err == nil {
//参数比较,默认第一个参数soGreateEqual,其它soEqual
switch paramLen {
case 1:
ok, err = soGreat(params[0], cfg.Data1)
// switch paramLen {
// case 1:
// ok, err = soGreat(params[0], cfg.Data1)
// return
// case 2:
// if ok, err = soGreat(params[0], cfg.Data1); !ok {
// return
// }
if ok, err = soEqual(params[1], cfg.Data2); !ok {
return
case 2:
if ok, err = soGreat(params[0], cfg.Data1); !ok {
return
}
if ok, err = soEqual(params[1], cfg.Data2); !ok {
return
}
}
// }
}
return
}

View File

@ -320,7 +320,7 @@ func (this *Viking) AutoBattleOver(session comm.IUserSession, Report *pb.BattleR
// this.ModuleRtask.SendToRtask(session, comm.Rtype73, difficulty, bossId, 1)
// this.ModuleRtask.SendToRtask(session, comm.Rtype74, difficulty, bossId)
// this.ModuleRtask.SendToRtask(session, comm.Rtype78, difficulty, bossId, Report.Costtime)
tasks = append(tasks, comm.GettaskParam(comm.Rtype73, difficulty, bossId, 1))
tasks = append(tasks, comm.GettaskParam(comm.Rtype73, 1, bossId, difficulty))
tasks = append(tasks, comm.GettaskParam(comm.Rtype74, difficulty, bossId))
tasks = append(tasks, comm.GettaskParam(comm.Rtype78, difficulty, bossId, Report.Costtime))
if Report != nil && Report.Info != nil && len(Report.Info.Redflist) > 0 {

View File

@ -81,4 +81,6 @@ const (
GameBuffType_INNOCENCE = 69
GameBuffType_FANGS = 70
GameBuffType_HACKER_FORESIGHT = 71
GameBuffType_FROST_STONE = 72
GameBuffType_BLEED = 73
)

View File

@ -13,11 +13,13 @@ import "errors"
type GameHoroscopeData struct {
Id int32
Type int32
TypeName string
GrowType int32
NodeId int32
Front []int32
NodeType int32
PreNode int32
NodeDirection int32
NodeLong int32
Name string
Icon string
Comicon string
Lv int32
CostItem []*Gameatn
@ -25,9 +27,6 @@ type GameHoroscopeData struct {
AddClassify int32
Text string
Upgrade []*Gameatr
Position string
Front int32
Behind string
}
const TypeId_GameHoroscopeData = 1230895646
@ -39,11 +38,26 @@ func (*GameHoroscopeData) GetTypeId() int32 {
func (_v *GameHoroscopeData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["type_name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.TypeName error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.TypeName, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["grow_type"].(float64); !_ok_ { err = errors.New("grow_type error"); return }; _v.GrowType = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["node_id"].(float64); !_ok_ { err = errors.New("node_id error"); return }; _v.NodeId = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["front"].([]interface{}); !_ok_ { err = errors.New("front error"); return }
_v.Front = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Front = append(_v.Front, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["node_type"].(float64); !_ok_ { err = errors.New("node_type error"); return }; _v.NodeType = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pre_node"].(float64); !_ok_ { err = errors.New("pre_node error"); return }; _v.PreNode = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["node_direction"].(float64); !_ok_ { err = errors.New("node_direction error"); return }; _v.NodeDirection = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["node_long"].(float64); !_ok_ { err = errors.New("node_long error"); return }; _v.NodeLong = int32(_tempNum_) }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{ var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } }
{ var _ok_ bool; if _v.Comicon, _ok_ = _buf["comicon"].(string); !_ok_ { err = errors.New("comicon error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lv"].(float64); !_ok_ { err = errors.New("lv error"); return }; _v.Lv = int32(_tempNum_) }
{
@ -77,9 +91,6 @@ func (_v *GameHoroscopeData)Deserialize(_buf map[string]interface{}) (err error)
}
}
{ var _ok_ bool; if _v.Position, _ok_ = _buf["position"].(string); !_ok_ { err = errors.New("position error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["front"].(float64); !_ok_ { err = errors.New("front error"); return }; _v.Front = int32(_tempNum_) }
{ var _ok_ bool; if _v.Behind, _ok_ = _buf["behind"].(string); !_ok_ { err = errors.New("behind error"); return } }
return
}

View File

@ -196,7 +196,6 @@ type Tables struct {
RuleDesc *GameRuleDesc
HeroTalent *GameHeroTalent
TalentBox *GameTalentBox
BuriedCondi *GameBuriedCondi
}
func NewTables(loader JsonLoader) (*Tables, error) {
@ -1314,11 +1313,5 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.TalentBox, err = NewGameTalentBox(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_buriedcondi") ; err != nil {
return nil, err
}
if tables.BuriedCondi, err = NewGameBuriedCondi(buf) ; err != nil {
return nil, err
}
return tables, nil
}