This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-17 00:05:44 +08:00
parent 68e0f81616
commit 8ad2313502
57 changed files with 12231 additions and 2286 deletions

View File

@@ -4,7 +4,7 @@
"data": {
"level": 1,
"childLevel": 1,
"petLevel": 0,
"petLevel": 1,
"petSize": 1,
"oddsId": 1
}
@@ -14,7 +14,7 @@
"data": {
"level": 1,
"childLevel": 2,
"petLevel": 0,
"petLevel": 1,
"petSize": 2,
"oddsId": 1
}
@@ -24,7 +24,7 @@
"data": {
"level": 1,
"childLevel": 3,
"petLevel": 0,
"petLevel": 1,
"petSize": 3,
"oddsId": 1
}
@@ -34,7 +34,7 @@
"data": {
"level": 1,
"childLevel": 4,
"petLevel": 0,
"petLevel": 1,
"petSize": 4,
"oddsId": 1
}
@@ -44,7 +44,7 @@
"data": {
"level": 1,
"childLevel": 5,
"petLevel": 0,
"petLevel": 1,
"petSize": 5,
"oddsId": 1
}
@@ -54,7 +54,7 @@
"data": {
"level": 1,
"childLevel": 6,
"petLevel": 0,
"petLevel": 1,
"petSize": 6,
"oddsId": 1
}
@@ -64,7 +64,7 @@
"data": {
"level": 2,
"childLevel": 1,
"petLevel": 1,
"petLevel": 2,
"petSize": 1,
"oddsId": 1
}
@@ -74,7 +74,7 @@
"data": {
"level": 2,
"childLevel": 2,
"petLevel": 1,
"petLevel": 2,
"petSize": 2,
"oddsId": 1
}
@@ -84,7 +84,7 @@
"data": {
"level": 2,
"childLevel": 3,
"petLevel": 1,
"petLevel": 2,
"petSize": 3,
"oddsId": 1
}
@@ -94,7 +94,7 @@
"data": {
"level": 2,
"childLevel": 4,
"petLevel": 1,
"petLevel": 2,
"petSize": 4,
"oddsId": 1
}
@@ -104,7 +104,7 @@
"data": {
"level": 2,
"childLevel": 5,
"petLevel": 1,
"petLevel": 2,
"petSize": 5,
"oddsId": 1
}
@@ -114,7 +114,7 @@
"data": {
"level": 2,
"childLevel": 6,
"petLevel": 1,
"petLevel": 2,
"petSize": 6,
"oddsId": 1
}
@@ -124,7 +124,7 @@
"data": {
"level": 3,
"childLevel": 1,
"petLevel": 2,
"petLevel": 3,
"petSize": 1,
"oddsId": 1
}
@@ -134,7 +134,7 @@
"data": {
"level": 3,
"childLevel": 2,
"petLevel": 2,
"petLevel": 3,
"petSize": 2,
"oddsId": 1
}
@@ -144,7 +144,7 @@
"data": {
"level": 3,
"childLevel": 3,
"petLevel": 2,
"petLevel": 3,
"petSize": 3,
"oddsId": 1
}
@@ -154,7 +154,7 @@
"data": {
"level": 3,
"childLevel": 4,
"petLevel": 2,
"petLevel": 3,
"petSize": 4,
"oddsId": 1
}
@@ -164,7 +164,7 @@
"data": {
"level": 3,
"childLevel": 5,
"petLevel": 2,
"petLevel": 3,
"petSize": 5,
"oddsId": 1
}
@@ -174,7 +174,7 @@
"data": {
"level": 3,
"childLevel": 6,
"petLevel": 2,
"petLevel": 3,
"petSize": 6,
"oddsId": 1
}
@@ -184,7 +184,7 @@
"data": {
"level": 4,
"childLevel": 1,
"petLevel": 3,
"petLevel": 4,
"petSize": 1,
"oddsId": 1
}
@@ -194,7 +194,7 @@
"data": {
"level": 4,
"childLevel": 2,
"petLevel": 3,
"petLevel": 4,
"petSize": 2,
"oddsId": 1
}
@@ -204,7 +204,7 @@
"data": {
"level": 4,
"childLevel": 3,
"petLevel": 3,
"petLevel": 4,
"petSize": 3,
"oddsId": 1
}
@@ -214,7 +214,7 @@
"data": {
"level": 4,
"childLevel": 4,
"petLevel": 3,
"petLevel": 4,
"petSize": 4,
"oddsId": 1
}
@@ -224,7 +224,7 @@
"data": {
"level": 4,
"childLevel": 5,
"petLevel": 3,
"petLevel": 4,
"petSize": 5,
"oddsId": 1
}
@@ -234,7 +234,7 @@
"data": {
"level": 4,
"childLevel": 6,
"petLevel": 3,
"petLevel": 4,
"petSize": 6,
"oddsId": 1
}
@@ -244,7 +244,7 @@
"data": {
"level": 5,
"childLevel": 1,
"petLevel": 4,
"petLevel": 5,
"petSize": 1,
"oddsId": 1
}
@@ -254,7 +254,7 @@
"data": {
"level": 5,
"childLevel": 2,
"petLevel": 4,
"petLevel": 5,
"petSize": 2,
"oddsId": 1
}
@@ -264,7 +264,7 @@
"data": {
"level": 5,
"childLevel": 3,
"petLevel": 4,
"petLevel": 5,
"petSize": 3,
"oddsId": 1
}
@@ -274,7 +274,7 @@
"data": {
"level": 5,
"childLevel": 4,
"petLevel": 4,
"petLevel": 5,
"petSize": 4,
"oddsId": 1
}
@@ -284,7 +284,7 @@
"data": {
"level": 5,
"childLevel": 5,
"petLevel": 4,
"petLevel": 5,
"petSize": 5,
"oddsId": 1
}
@@ -294,7 +294,7 @@
"data": {
"level": 5,
"childLevel": 6,
"petLevel": 4,
"petLevel": 5,
"petSize": 6,
"oddsId": 1
}
@@ -304,7 +304,7 @@
"data": {
"level": 6,
"childLevel": 1,
"petLevel": 5,
"petLevel": 6,
"petSize": 1,
"oddsId": 1
}
@@ -314,7 +314,7 @@
"data": {
"level": 6,
"childLevel": 2,
"petLevel": 5,
"petLevel": 6,
"petSize": 2,
"oddsId": 1
}
@@ -324,7 +324,7 @@
"data": {
"level": 6,
"childLevel": 3,
"petLevel": 5,
"petLevel": 6,
"petSize": 3,
"oddsId": 1
}
@@ -334,7 +334,7 @@
"data": {
"level": 6,
"childLevel": 4,
"petLevel": 5,
"petLevel": 6,
"petSize": 4,
"oddsId": 1
}
@@ -344,7 +344,7 @@
"data": {
"level": 6,
"childLevel": 5,
"petLevel": 5,
"petLevel": 6,
"petSize": 5,
"oddsId": 1
}
@@ -354,7 +354,7 @@
"data": {
"level": 6,
"childLevel": 6,
"petLevel": 5,
"petLevel": 6,
"petSize": 6,
"oddsId": 1
}
@@ -364,7 +364,7 @@
"data": {
"level": 7,
"childLevel": 1,
"petLevel": 6,
"petLevel": 7,
"petSize": 1,
"oddsId": 1
}
@@ -374,7 +374,7 @@
"data": {
"level": 7,
"childLevel": 2,
"petLevel": 6,
"petLevel": 7,
"petSize": 2,
"oddsId": 1
}
@@ -384,7 +384,7 @@
"data": {
"level": 7,
"childLevel": 3,
"petLevel": 6,
"petLevel": 7,
"petSize": 3,
"oddsId": 1
}
@@ -394,7 +394,7 @@
"data": {
"level": 7,
"childLevel": 4,
"petLevel": 6,
"petLevel": 7,
"petSize": 4,
"oddsId": 1
}
@@ -404,7 +404,7 @@
"data": {
"level": 7,
"childLevel": 5,
"petLevel": 6,
"petLevel": 7,
"petSize": 5,
"oddsId": 1
}
@@ -414,7 +414,7 @@
"data": {
"level": 7,
"childLevel": 6,
"petLevel": 6,
"petLevel": 7,
"petSize": 6,
"oddsId": 1
}
@@ -424,7 +424,7 @@
"data": {
"level": 8,
"childLevel": 1,
"petLevel": 7,
"petLevel": 8,
"petSize": 1,
"oddsId": 1
}
@@ -434,7 +434,7 @@
"data": {
"level": 8,
"childLevel": 2,
"petLevel": 7,
"petLevel": 8,
"petSize": 2,
"oddsId": 1
}
@@ -444,7 +444,7 @@
"data": {
"level": 8,
"childLevel": 3,
"petLevel": 7,
"petLevel": 8,
"petSize": 3,
"oddsId": 1
}
@@ -454,7 +454,7 @@
"data": {
"level": 8,
"childLevel": 4,
"petLevel": 7,
"petLevel": 8,
"petSize": 4,
"oddsId": 1
}
@@ -464,7 +464,7 @@
"data": {
"level": 8,
"childLevel": 5,
"petLevel": 7,
"petLevel": 8,
"petSize": 5,
"oddsId": 1
}
@@ -474,7 +474,7 @@
"data": {
"level": 8,
"childLevel": 6,
"petLevel": 7,
"petLevel": 8,
"petSize": 6,
"oddsId": 1
}
@@ -484,7 +484,7 @@
"data": {
"level": 9,
"childLevel": 1,
"petLevel": 8,
"petLevel": 9,
"petSize": 1,
"oddsId": 1
}
@@ -494,7 +494,7 @@
"data": {
"level": 9,
"childLevel": 2,
"petLevel": 8,
"petLevel": 9,
"petSize": 2,
"oddsId": 1
}
@@ -504,7 +504,7 @@
"data": {
"level": 9,
"childLevel": 3,
"petLevel": 8,
"petLevel": 9,
"petSize": 3,
"oddsId": 1
}
@@ -514,7 +514,7 @@
"data": {
"level": 9,
"childLevel": 4,
"petLevel": 8,
"petLevel": 9,
"petSize": 4,
"oddsId": 1
}
@@ -524,7 +524,7 @@
"data": {
"level": 9,
"childLevel": 5,
"petLevel": 8,
"petLevel": 9,
"petSize": 5,
"oddsId": 1
}
@@ -534,7 +534,7 @@
"data": {
"level": 9,
"childLevel": 6,
"petLevel": 8,
"petLevel": 9,
"petSize": 6,
"oddsId": 1
}
@@ -544,7 +544,7 @@
"data": {
"level": 10,
"childLevel": 1,
"petLevel": 9,
"petLevel": 10,
"petSize": 1,
"oddsId": 1
}
@@ -554,7 +554,7 @@
"data": {
"level": 10,
"childLevel": 2,
"petLevel": 9,
"petLevel": 10,
"petSize": 2,
"oddsId": 1
}
@@ -564,7 +564,7 @@
"data": {
"level": 10,
"childLevel": 3,
"petLevel": 9,
"petLevel": 10,
"petSize": 3,
"oddsId": 1
}
@@ -574,7 +574,7 @@
"data": {
"level": 10,
"childLevel": 4,
"petLevel": 9,
"petLevel": 10,
"petSize": 4,
"oddsId": 1
}
@@ -584,7 +584,7 @@
"data": {
"level": 10,
"childLevel": 5,
"petLevel": 9,
"petLevel": 10,
"petSize": 5,
"oddsId": 1
}
@@ -594,7 +594,7 @@
"data": {
"level": 10,
"childLevel": 6,
"petLevel": 9,
"petLevel": 10,
"petSize": 6,
"oddsId": 1
}
@@ -604,7 +604,7 @@
"data": {
"level": 11,
"childLevel": 1,
"petLevel": 10,
"petLevel": 11,
"petSize": 1,
"oddsId": 1
}
@@ -614,7 +614,7 @@
"data": {
"level": 11,
"childLevel": 2,
"petLevel": 10,
"petLevel": 11,
"petSize": 2,
"oddsId": 1
}
@@ -624,7 +624,7 @@
"data": {
"level": 11,
"childLevel": 3,
"petLevel": 10,
"petLevel": 11,
"petSize": 3,
"oddsId": 1
}
@@ -634,7 +634,7 @@
"data": {
"level": 11,
"childLevel": 4,
"petLevel": 10,
"petLevel": 11,
"petSize": 4,
"oddsId": 1
}
@@ -644,7 +644,7 @@
"data": {
"level": 11,
"childLevel": 5,
"petLevel": 10,
"petLevel": 11,
"petSize": 5,
"oddsId": 1
}
@@ -654,7 +654,7 @@
"data": {
"level": 11,
"childLevel": 6,
"petLevel": 10,
"petLevel": 11,
"petSize": 6,
"oddsId": 1
}
@@ -664,7 +664,7 @@
"data": {
"level": 12,
"childLevel": 1,
"petLevel": 11,
"petLevel": 12,
"petSize": 1,
"oddsId": 1
}
@@ -674,7 +674,7 @@
"data": {
"level": 12,
"childLevel": 2,
"petLevel": 11,
"petLevel": 12,
"petSize": 2,
"oddsId": 1
}
@@ -684,7 +684,7 @@
"data": {
"level": 12,
"childLevel": 3,
"petLevel": 11,
"petLevel": 12,
"petSize": 3,
"oddsId": 1
}
@@ -694,7 +694,7 @@
"data": {
"level": 12,
"childLevel": 4,
"petLevel": 11,
"petLevel": 12,
"petSize": 4,
"oddsId": 1
}
@@ -704,7 +704,7 @@
"data": {
"level": 12,
"childLevel": 5,
"petLevel": 11,
"petLevel": 12,
"petSize": 5,
"oddsId": 1
}
@@ -714,7 +714,7 @@
"data": {
"level": 12,
"childLevel": 6,
"petLevel": 11,
"petLevel": 12,
"petSize": 6,
"oddsId": 1
}
@@ -724,7 +724,7 @@
"data": {
"level": 13,
"childLevel": 1,
"petLevel": 12,
"petLevel": 13,
"petSize": 1,
"oddsId": 1
}
@@ -734,7 +734,7 @@
"data": {
"level": 13,
"childLevel": 2,
"petLevel": 12,
"petLevel": 13,
"petSize": 2,
"oddsId": 1
}
@@ -744,7 +744,7 @@
"data": {
"level": 13,
"childLevel": 3,
"petLevel": 12,
"petLevel": 13,
"petSize": 3,
"oddsId": 1
}
@@ -754,7 +754,7 @@
"data": {
"level": 13,
"childLevel": 4,
"petLevel": 12,
"petLevel": 13,
"petSize": 4,
"oddsId": 1
}
@@ -764,7 +764,7 @@
"data": {
"level": 13,
"childLevel": 5,
"petLevel": 12,
"petLevel": 13,
"petSize": 5,
"oddsId": 1
}
@@ -774,7 +774,7 @@
"data": {
"level": 13,
"childLevel": 6,
"petLevel": 12,
"petLevel": 13,
"petSize": 6,
"oddsId": 1
}
@@ -784,7 +784,7 @@
"data": {
"level": 14,
"childLevel": 1,
"petLevel": 13,
"petLevel": 14,
"petSize": 1,
"oddsId": 1
}
@@ -794,7 +794,7 @@
"data": {
"level": 14,
"childLevel": 2,
"petLevel": 13,
"petLevel": 14,
"petSize": 2,
"oddsId": 1
}
@@ -804,7 +804,7 @@
"data": {
"level": 14,
"childLevel": 3,
"petLevel": 13,
"petLevel": 14,
"petSize": 3,
"oddsId": 1
}
@@ -814,7 +814,7 @@
"data": {
"level": 14,
"childLevel": 4,
"petLevel": 13,
"petLevel": 14,
"petSize": 4,
"oddsId": 1
}
@@ -824,7 +824,7 @@
"data": {
"level": 14,
"childLevel": 5,
"petLevel": 13,
"petLevel": 14,
"petSize": 5,
"oddsId": 1
}
@@ -834,7 +834,7 @@
"data": {
"level": 14,
"childLevel": 6,
"petLevel": 13,
"petLevel": 14,
"petSize": 6,
"oddsId": 1
}
@@ -844,7 +844,7 @@
"data": {
"level": 15,
"childLevel": 1,
"petLevel": 14,
"petLevel": 15,
"petSize": 1,
"oddsId": 1
}
@@ -854,7 +854,7 @@
"data": {
"level": 15,
"childLevel": 2,
"petLevel": 14,
"petLevel": 15,
"petSize": 2,
"oddsId": 1
}
@@ -864,7 +864,7 @@
"data": {
"level": 15,
"childLevel": 3,
"petLevel": 14,
"petLevel": 15,
"petSize": 3,
"oddsId": 1
}
@@ -874,7 +874,7 @@
"data": {
"level": 15,
"childLevel": 4,
"petLevel": 14,
"petLevel": 15,
"petSize": 4,
"oddsId": 1
}
@@ -884,7 +884,7 @@
"data": {
"level": 15,
"childLevel": 5,
"petLevel": 14,
"petLevel": 15,
"petSize": 5,
"oddsId": 1
}
@@ -894,7 +894,7 @@
"data": {
"level": 15,
"childLevel": 6,
"petLevel": 14,
"petLevel": 15,
"petSize": 6,
"oddsId": 1
}
@@ -904,7 +904,7 @@
"data": {
"level": 16,
"childLevel": 1,
"petLevel": 15,
"petLevel": 16,
"petSize": 1,
"oddsId": 1
}
@@ -914,7 +914,7 @@
"data": {
"level": 16,
"childLevel": 2,
"petLevel": 15,
"petLevel": 16,
"petSize": 2,
"oddsId": 1
}
@@ -924,7 +924,7 @@
"data": {
"level": 16,
"childLevel": 3,
"petLevel": 15,
"petLevel": 16,
"petSize": 3,
"oddsId": 1
}
@@ -934,7 +934,7 @@
"data": {
"level": 16,
"childLevel": 4,
"petLevel": 15,
"petLevel": 16,
"petSize": 4,
"oddsId": 1
}
@@ -944,7 +944,7 @@
"data": {
"level": 16,
"childLevel": 5,
"petLevel": 15,
"petLevel": 16,
"petSize": 5,
"oddsId": 1
}
@@ -954,7 +954,7 @@
"data": {
"level": 16,
"childLevel": 6,
"petLevel": 15,
"petLevel": 16,
"petSize": 6,
"oddsId": 1
}
@@ -964,7 +964,7 @@
"data": {
"level": 17,
"childLevel": 1,
"petLevel": 16,
"petLevel": 17,
"petSize": 1,
"oddsId": 1
}

View File

@@ -1,902 +0,0 @@
[
{
"grade": 1,
"materials": [
{
"id": 90001,
"value": 100
}
]
},
{
"grade": 2,
"materials": [
{
"id": 90001,
"value": 400
}
]
},
{
"grade": 3,
"materials": [
{
"id": 90001,
"value": 900
}
]
},
{
"grade": 4,
"materials": [
{
"id": 90001,
"value": 1600
}
]
},
{
"grade": 5,
"materials": [
{
"id": 90001,
"value": 2500
}
]
},
{
"grade": 6,
"materials": [
{
"id": 90001,
"value": 3600
}
]
},
{
"grade": 7,
"materials": [
{
"id": 90001,
"value": 4900
}
]
},
{
"grade": 8,
"materials": [
{
"id": 90001,
"value": 6400
}
]
},
{
"grade": 9,
"materials": [
{
"id": 90001,
"value": 8100
}
]
},
{
"grade": 10,
"materials": [
{
"id": 90001,
"value": 10000
}
]
},
{
"grade": 11,
"materials": [
{
"id": 90001,
"value": 12100
}
]
},
{
"grade": 12,
"materials": [
{
"id": 90001,
"value": 14400
}
]
},
{
"grade": 13,
"materials": [
{
"id": 90001,
"value": 16900
}
]
},
{
"grade": 14,
"materials": [
{
"id": 90001,
"value": 19600
}
]
},
{
"grade": 15,
"materials": [
{
"id": 90001,
"value": 22500
}
]
},
{
"grade": 16,
"materials": [
{
"id": 90001,
"value": 25600
}
]
},
{
"grade": 17,
"materials": [
{
"id": 90001,
"value": 28900
}
]
},
{
"grade": 18,
"materials": [
{
"id": 90001,
"value": 32400
}
]
},
{
"grade": 19,
"materials": [
{
"id": 90001,
"value": 36100
}
]
},
{
"grade": 20,
"materials": [
{
"id": 90001,
"value": 40000
}
]
},
{
"grade": 21,
"materials": [
{
"id": 90001,
"value": 44100
}
]
},
{
"grade": 22,
"materials": [
{
"id": 90001,
"value": 48400
}
]
},
{
"grade": 23,
"materials": [
{
"id": 90001,
"value": 52900
}
]
},
{
"grade": 24,
"materials": [
{
"id": 90001,
"value": 57600
}
]
},
{
"grade": 25,
"materials": [
{
"id": 90001,
"value": 62500
}
]
},
{
"grade": 26,
"materials": [
{
"id": 90001,
"value": 67600
}
]
},
{
"grade": 27,
"materials": [
{
"id": 90001,
"value": 72900
}
]
},
{
"grade": 28,
"materials": [
{
"id": 90001,
"value": 78400
}
]
},
{
"grade": 29,
"materials": [
{
"id": 90001,
"value": 84100
}
]
},
{
"grade": 30,
"materials": [
{
"id": 90001,
"value": 90000
}
]
},
{
"grade": 31,
"materials": [
{
"id": 90001,
"value": 96100
}
]
},
{
"grade": 32,
"materials": [
{
"id": 90001,
"value": 102400
}
]
},
{
"grade": 33,
"materials": [
{
"id": 90001,
"value": 108900
}
]
},
{
"grade": 34,
"materials": [
{
"id": 90001,
"value": 115600
}
]
},
{
"grade": 35,
"materials": [
{
"id": 90001,
"value": 122500
}
]
},
{
"grade": 36,
"materials": [
{
"id": 90001,
"value": 129600
}
]
},
{
"grade": 37,
"materials": [
{
"id": 90001,
"value": 136900
}
]
},
{
"grade": 38,
"materials": [
{
"id": 90001,
"value": 144400
}
]
},
{
"grade": 39,
"materials": [
{
"id": 90001,
"value": 152100
}
]
},
{
"grade": 40,
"materials": [
{
"id": 90001,
"value": 160000
}
]
},
{
"grade": 41,
"materials": [
{
"id": 90001,
"value": 168100
}
]
},
{
"grade": 42,
"materials": [
{
"id": 90001,
"value": 176400
}
]
},
{
"grade": 43,
"materials": [
{
"id": 90001,
"value": 184900
}
]
},
{
"grade": 44,
"materials": [
{
"id": 90001,
"value": 193600
}
]
},
{
"grade": 45,
"materials": [
{
"id": 90001,
"value": 202500
}
]
},
{
"grade": 46,
"materials": [
{
"id": 90001,
"value": 211600
}
]
},
{
"grade": 47,
"materials": [
{
"id": 90001,
"value": 220900
}
]
},
{
"grade": 48,
"materials": [
{
"id": 90001,
"value": 230400
}
]
},
{
"grade": 49,
"materials": [
{
"id": 90001,
"value": 240100
}
]
},
{
"grade": 50,
"materials": [
{
"id": 90001,
"value": 250000
}
]
},
{
"grade": 51,
"materials": [
{
"id": 90001,
"value": 260100
}
]
},
{
"grade": 52,
"materials": [
{
"id": 90001,
"value": 270400
}
]
},
{
"grade": 53,
"materials": [
{
"id": 90001,
"value": 280900
}
]
},
{
"grade": 54,
"materials": [
{
"id": 90001,
"value": 291600
}
]
},
{
"grade": 55,
"materials": [
{
"id": 90001,
"value": 302500
}
]
},
{
"grade": 56,
"materials": [
{
"id": 90001,
"value": 313600
}
]
},
{
"grade": 57,
"materials": [
{
"id": 90001,
"value": 324900
}
]
},
{
"grade": 58,
"materials": [
{
"id": 90001,
"value": 336400
}
]
},
{
"grade": 59,
"materials": [
{
"id": 90001,
"value": 348100
}
]
},
{
"grade": 60,
"materials": [
{
"id": 90001,
"value": 360000
}
]
},
{
"grade": 61,
"materials": [
{
"id": 90001,
"value": 372100
}
]
},
{
"grade": 62,
"materials": [
{
"id": 90001,
"value": 384400
}
]
},
{
"grade": 63,
"materials": [
{
"id": 90001,
"value": 396900
}
]
},
{
"grade": 64,
"materials": [
{
"id": 90001,
"value": 409600
}
]
},
{
"grade": 65,
"materials": [
{
"id": 90001,
"value": 422500
}
]
},
{
"grade": 66,
"materials": [
{
"id": 90001,
"value": 435600
}
]
},
{
"grade": 67,
"materials": [
{
"id": 90001,
"value": 448900
}
]
},
{
"grade": 68,
"materials": [
{
"id": 90001,
"value": 462400
}
]
},
{
"grade": 69,
"materials": [
{
"id": 90001,
"value": 476100
}
]
},
{
"grade": 70,
"materials": [
{
"id": 90001,
"value": 490000
}
]
},
{
"grade": 71,
"materials": [
{
"id": 90001,
"value": 504100
}
]
},
{
"grade": 72,
"materials": [
{
"id": 90001,
"value": 518400
}
]
},
{
"grade": 73,
"materials": [
{
"id": 90001,
"value": 532900
}
]
},
{
"grade": 74,
"materials": [
{
"id": 90001,
"value": 547600
}
]
},
{
"grade": 75,
"materials": [
{
"id": 90001,
"value": 562500
}
]
},
{
"grade": 76,
"materials": [
{
"id": 90001,
"value": 577600
}
]
},
{
"grade": 77,
"materials": [
{
"id": 90001,
"value": 592900
}
]
},
{
"grade": 78,
"materials": [
{
"id": 90001,
"value": 608400
}
]
},
{
"grade": 79,
"materials": [
{
"id": 90001,
"value": 624100
}
]
},
{
"grade": 80,
"materials": [
{
"id": 90001,
"value": 640000
}
]
},
{
"grade": 81,
"materials": [
{
"id": 90001,
"value": 656100
}
]
},
{
"grade": 82,
"materials": [
{
"id": 90001,
"value": 672400
}
]
},
{
"grade": 83,
"materials": [
{
"id": 90001,
"value": 688900
}
]
},
{
"grade": 84,
"materials": [
{
"id": 90001,
"value": 705600
}
]
},
{
"grade": 85,
"materials": [
{
"id": 90001,
"value": 722500
}
]
},
{
"grade": 86,
"materials": [
{
"id": 90001,
"value": 739600
}
]
},
{
"grade": 87,
"materials": [
{
"id": 90001,
"value": 756900
}
]
},
{
"grade": 88,
"materials": [
{
"id": 90001,
"value": 774400
}
]
},
{
"grade": 89,
"materials": [
{
"id": 90001,
"value": 792100
}
]
},
{
"grade": 90,
"materials": [
{
"id": 90001,
"value": 810000
}
]
},
{
"grade": 91,
"materials": [
{
"id": 90001,
"value": 828100
}
]
},
{
"grade": 92,
"materials": [
{
"id": 90001,
"value": 846400
}
]
},
{
"grade": 93,
"materials": [
{
"id": 90001,
"value": 864900
}
]
},
{
"grade": 94,
"materials": [
{
"id": 90001,
"value": 883600
}
]
},
{
"grade": 95,
"materials": [
{
"id": 90001,
"value": 902500
}
]
},
{
"grade": 96,
"materials": [
{
"id": 90001,
"value": 921600
}
]
},
{
"grade": 97,
"materials": [
{
"id": 90001,
"value": 940900
}
]
},
{
"grade": 98,
"materials": [
{
"id": 90001,
"value": 960400
}
]
},
{
"grade": 99,
"materials": [
{
"id": 90001,
"value": 980100
}
]
},
{
"grade": 100,
"materials": [
{
"id": 90001,
"value": 1000000
}
]
}
]

View File

@@ -0,0 +1,14 @@
[
{
"id": 160001,
"name": "钻石副本",
"banner": "",
"tigs": "TbGSysDungeon160001"
},
{
"id": 160002,
"name": "锻造石副本",
"banner": "",
"tigs": "TbGSysDungeon160002"
}
]

View File

@@ -2,7 +2,7 @@
"ver": "2.0.1",
"importer": "json",
"imported": true,
"uuid": "e973f307-a0ab-478d-85eb-36e1310007a7",
"uuid": "1cb2c6cc-f994-477b-9d23-66de699a9717",
"files": [
".json"
],

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +0,0 @@
[
{
"id": 160001,
"name": "钻石副本"
},
{
"id": 160002,
"name": "锻造石副本"
}
]

View File

@@ -1,11 +0,0 @@
{
"ver": "2.0.1",
"importer": "json",
"imported": true,
"uuid": "5bbb967f-bbcc-4ccb-b75e-b320759baf58",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

View File

@@ -8405,7 +8405,7 @@
},
"component": "",
"_componentId": "b51bfKvsidNPKBbFirAFgQI",
"handler": "onClickNotOpen",
"handler": "onClickDungeon",
"customEventData": ""
},
{

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "35b79fc9-a87d-47ee-ae95-d86f88171f6a",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,709 @@
[
{
"__type__": "cc.Prefab",
"_name": "副本展示节点",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "副本展示节点",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 26
},
{
"__id__": 28
},
{
"__id__": 30
}
],
"_prefab": {
"__id__": 32
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -145,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "标题",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 41.647,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 84,
"height": 54.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "26mhljXOxNx4MCqkAla9NC"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "副本名称",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 20,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c0tIIVeJRM+JJi9GxePuJX"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "19Eht674FDkbl6vAnTVjJy"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "falxbOsM9Aqrkp2XrRqmqp",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "进入副本",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 11
}
],
"_active": true,
"_components": [
{
"__id__": 19
},
{
"__id__": 21
},
{
"__id__": 23
}
],
"_prefab": {
"__id__": 25
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -29.519,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 14
},
{
"__id__": 16
}
],
"_prefab": {
"__id__": 18
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 13
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b1XrsmwWpNf665vbe6+m3P"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "战斗",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 25,
"_fontSize": 25,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 1,
"_enableWrapText": false,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5eSL20CENNE6B9lYY/T4Yc"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a5xGUW+hlHP6ZV8uYSH2X2"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "fbWU00oYtB47PUwUVgsp9A",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 20
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 50
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "27rj9faItNwYchilFhfp9Q"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 22
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 75,
"g": 75,
"b": 75,
"a": 255
},
"_spriteFrame": {
"__uuid__": "b730527c-3233-41c2-aaf7-7cdab58f9749@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a9KSVgBEJIia+jXwPQzF22"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 24
},
"clickEvents": [],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 214,
"g": 214,
"b": 214,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": {
"__id__": 10
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3aBwLMe2dMPZR18jNcYNNR"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c8ZEjT1rNKK6LaL+iTVzrQ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 27
},
"_contentSize": {
"__type__": "cc.Size",
"width": 500,
"height": 250
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b3qF3LEG9As7WScGexhbC8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 29
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 218,
"g": 218,
"b": 218,
"a": 255
},
"_spriteFrame": {
"__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "38rO6rql9GxZ5bmIG26Qij"
},
{
"__type__": "337e3LHVYBIl5JbGd62Yh00",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 31
},
"title": {
"__id__": 5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4cP+xhsrJI+68jpsYfr7qo"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "2cQ/L7p91EJqiIiCAr7Zgd",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.49",
"importer": "prefab",
"imported": true,
"uuid": "c1398a05-9332-4b27-8942-6ecebc81c256",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "副本展示节点"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.49",
"importer": "prefab",
"imported": true,
"uuid": "09f197da-5edf-4010-a728-36a1f38ea4ca",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "副本页面"
}
}

View File

@@ -6,20 +6,18 @@ import { Node } from "cc";
import { instantiate } from "cc";
import { TD, app } from "../App";
import { JNFrameInfo, JNSyncFrameEvent } from "../../../extensions/ngame/assets/ngame/sync/frame/JNSyncFrame";
import { CCObject } from "cc";
import { Env, EnvCurrent } from "../Env";
import { TB } from "../config/data/schema";
import BattleResource from "../tools/BattleResource";
import { director } from "cc";
import { game } from "cc";
export enum BattleMode{
//无尽模式
OnHook = 0,
OnHook = "OnHook",
//PVP 模式
PVP = 1,
PVP = "PVP",
//阵营守护
CampGuardian = 2,
CampGuardian = "CampGuardian",
//副本
GDungeonMode = "GDungeonMode",
}
export interface GBattleModeInfo{

View File

@@ -41,7 +41,7 @@ export default class GPetAttribute extends GAttributeBase{
if(!baseAttribute[attr.sign] || !grow[attr.sign]) return;
//计算 累加 ((base * value) * level)
this.attributes[attr.id] += (baseAttribute[attr.sign] * grow[attr.sign]) * level;
this.attributes[attr.id] = (baseAttribute[attr.sign] * grow[attr.sign]) * level;
})

View File

@@ -125,7 +125,7 @@ export default class GCampGuardianMode extends GBaseMode<{},{}>{
entity.addKillBackEvent(this.onRoleKillBack.bind(this))
//添加宠物属性
entity.onEffectiveValue(new GPetAttribute({
entity.onEffectiveValues(new GPetAttribute({
petId:info.id,
petPlayerId:0,
petTbId:info.id,

View File

@@ -0,0 +1,105 @@
import { _decorator } from "cc";
import GBaseMode from "../GBaseMode";
import { TB, TbGEntity } from "../../config/data/schema";
import PlayerTacticalData from "../../data/PlayerTacticalData";
import PlayerPetData from "../../data/PlayerPetData";
import { TD, app } from "../../App";
import { GUI } from "../../ui/UIConfig";
import { GOnHookModePlayerEnum } from "./GOnHookMode";
import GRoleDefault from "../base/role/GRoleDefault";
const { ccclass, property } = _decorator;
//角色
export enum GDungeonModeEnum{
PLAYER, //玩家
ENEMY, //怪物
}
/**
* 副本(默认) 模式
*/
@ccclass('GDungeonMode')
export default class GDungeonMode extends GBaseMode<{},TbGEntity.TDungeon>{
//生成玩家宠物
onGenPlayerPet(index:number,petId:number){
//获取玩家阵容
let infos = PlayerTacticalData.getIns().getTacticalInfo();
infos.forEach(petId => {
//获取要生成的宠物
let info = PlayerPetData.getIns().petIdQueryPetInfo(petId);
if(!info){
app.layer.Open(GUI.Tips,{text:"未拥有当前上阵的宠物"});
return;
}
let role = this.onGenRole(GOnHookModePlayerEnum.PLAYER,index,TD.TbGRole.get(info.petTbId));
})
//如果场上有这个宠物则更新阵法位置
let passRole:GRoleDefault;
this.playerRoles.forEach(role => {
if(role.getComponent(GRoleOnHookPlayerExpand).petId == petId)
passRole = role;
})
if(passRole){
//更新宠物阵法位置
passRole.tacticalIndex = index;
return;
}
if(!info){
app.layer.Open(GUI.Tips,{text:"未拥有当前上阵的宠物"});
return;
}
let role = this.onGenRole(GOnHookModePlayerEnum.PLAYER,index,TD.TbGRole.get(info.petTbId));
//向宠物添加 OnHook 扩展
let expand = role.node.addComponent(GRoleOnHookPlayerExpand);
expand.petId = petId;
//添加宠物属性
role.onEffectiveValue(GBattleData.getIns().data.getPetAttribute(petId));
}
//生成宠物
onGenRole(type: GOnHookModePlayerEnum,index:number,info:TB.TbGRole):GRoleDefault {
let tactical = this.getInfo(type).tactical;
let pos:Vec2 = this.getInfo(type).tactical.getPosition(index);
if(!pos) return;
let role = instantiate(this.rolePrefab);
let entity = role.getComponent(GRoleDefault);
//初始化
entity.onInit(type,info,tactical,index);
//绑定寻敌
entity.onQueryEunmy = () => {
return this.getEnumy(entity,type);
}
//绑定死亡回调
entity.addKillBackEvent(this.onRoleKillBack.bind(this))
//绑定受击回调
entity.addHitCallback(this.onHitBack.bind(this));
this.addGObject(entity,tactical.getPosition(index));
this.getOnesRole(type).push(entity);
return entity;
}
}

View File

@@ -0,0 +1,44 @@
import { TB } from "../../../config/data/schema";
import GRoleDefault from "../../base/role/GRoleDefault";
import GDefaultMode from "./GDefaultMode";
//角色
export enum GNormalModeEnum{
PLAYER, //玩家
ENEMY, //怪物
}
export default class GNormalModeBase extends GDefaultMode<{},{}>{
//生成宠物
onGenRole(type: GNormalModeEnum,index:number,info:TB.TbGRole):GRoleDefault {
let tactical = this.getInfo(type).tactical;
let pos:Vec2 = this.getInfo(type).tactical.getPosition(index);
if(!pos) return;
let role = instantiate(this.rolePrefab);
let entity = role.getComponent(GRoleDefault);
//初始化
entity.onInit(type,info,tactical,index);
//绑定寻敌
entity.onQueryEunmy = () => {
return this.getEnumy(entity,type);
}
//绑定死亡回调
entity.addKillBackEvent(this.onRoleKillBack.bind(this))
//绑定受击回调
entity.addHitCallback(this.onHitBack.bind(this));
this.addGObject(entity,tactical.getPosition(index));
this.getOnesRole(type).push(entity);
return entity;
}
}

View File

@@ -315,63 +315,6 @@ export class TbGResource {
}
export namespace TB {
export class TbGRoleUpLevel {
constructor(_json_: any) {
if (_json_.grade === undefined) { throw new Error() }
this.grade = _json_.grade
if (_json_.materials === undefined) { throw new Error() }
{ this.materials = []; for(let _ele of _json_.materials) { let _e; _e = new TbGEntity.TResource(_ele); this.materials.push(_e);}}
}
/**
* 宠物等级
*/
readonly grade: number
/**
* 消耗的材料
*/
readonly materials: TbGEntity.TResource[]
resolve(tables:Tables)
{
}
}
}
export namespace TbGEntity {
/**
* 资源信息
*/
export class TResource {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.value === undefined) { throw new Error() }
this.value = _json_.value
}
/**
* 资源Id
*/
readonly id: number
/**
* 资源数量
*/
readonly value: number
resolve(tables:Tables)
{
}
}
}
export namespace TB {
export class TbGRoleUpStar {
@@ -918,6 +861,36 @@ export class TbGRoleEquipQuality {
}
export namespace TbGEntity {
/**
* 资源信息
*/
export class TResource {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.value === undefined) { throw new Error() }
this.value = _json_.value
}
/**
* 资源Id
*/
readonly id: number
/**
* 资源数量
*/
readonly value: number
resolve(tables:Tables)
{
}
}
}
export namespace TB {
export class TbGRoleEquipType {
@@ -946,13 +919,17 @@ export class TbGRoleEquipType {
export namespace TB {
export class TbGSysFuben {
export class TbGSysDungeon {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.name === undefined) { throw new Error() }
this.name = _json_.name
if (_json_.banner === undefined) { throw new Error() }
this.banner = _json_.banner
if (_json_.tigs === undefined) { throw new Error() }
this.tigs = _json_.tigs
}
/**
@@ -963,6 +940,110 @@ export class TbGSysFuben {
* 副本名称
*/
readonly name: string
/**
* 副本封面
*/
readonly banner: string
/**
* 类标识
*/
readonly tigs: string
resolve(tables:Tables)
{
}
}
}
export namespace TB {
export class TbGSysDungeon160001 {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.data === undefined) { throw new Error() }
this.data = new TbGEntity.TDungeon(_json_.data)
}
/**
* id
*/
readonly id: number
/**
* 副本关卡
*/
readonly data: TbGEntity.TDungeon
resolve(tables:Tables)
{
}
}
}
export namespace TbGEntity {
/**
* 普通副本信息
*/
export class TDungeon {
constructor(_json_: any) {
if (_json_.level === undefined) { throw new Error() }
this.level = _json_.level
if (_json_.boss === undefined) { throw new Error() }
this.boss = _json_.boss
if (_json_.attributes === undefined) { throw new Error() }
{ this.attributes = []; for(let _ele of _json_.attributes) { let _e; _e = new TbGEntity.TAttributeValue(_ele); this.attributes.push(_e);}}
if (_json_.rewards === undefined) { throw new Error() }
{ this.rewards = []; for(let _ele of _json_.rewards) { let _e; _e = new TbGEntity.TResource(_ele); this.rewards.push(_e);}}
}
/**
* 副本关卡
*/
readonly level: number
/**
* BOSS ID
*/
readonly boss: number
/**
* BOSS 属性
*/
readonly attributes: TbGEntity.TAttributeValue[]
/**
* 关卡奖励
*/
readonly rewards: TbGEntity.TResource[]
resolve(tables:Tables)
{
}
}
}
export namespace TB {
export class TbGSysDungeon160002 {
constructor(_json_: any) {
if (_json_.id === undefined) { throw new Error() }
this.id = _json_.id
if (_json_.data === undefined) { throw new Error() }
this.data = new TbGEntity.TDungeon(_json_.data)
}
/**
* id
*/
readonly id: number
/**
* 副本关卡
*/
readonly data: TbGEntity.TDungeon
resolve(tables:Tables)
{
@@ -1198,38 +1279,6 @@ export class TbGResource{
export class TbGRoleUpLevel{
private _dataMap: Map<number, TB.TbGRoleUpLevel>
private _dataList: TB.TbGRoleUpLevel[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGRoleUpLevel>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGRoleUpLevel
_v = new TB.TbGRoleUpLevel(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.grade, _v)
}
}
getDataMap(): Map<number, TB.TbGRoleUpLevel> { return this._dataMap; }
getDataList(): TB.TbGRoleUpLevel[] { return this._dataList; }
get(key: number): TB.TbGRoleUpLevel | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbGRoleUpStar{
private _dataMap: Map<number, TB.TbGRoleUpStar>
private _dataList: TB.TbGRoleUpStar[]
@@ -1646,24 +1695,88 @@ export class TbGRoleEquipType{
export class TbGSysFuben{
private _dataMap: Map<number, TB.TbGSysFuben>
private _dataList: TB.TbGSysFuben[]
export class TbGSysDungeon{
private _dataMap: Map<number, TB.TbGSysDungeon>
private _dataList: TB.TbGSysDungeon[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGSysFuben>()
this._dataMap = new Map<number, TB.TbGSysDungeon>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGSysFuben
_v = new TB.TbGSysFuben(_json2_)
let _v: TB.TbGSysDungeon
_v = new TB.TbGSysDungeon(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbGSysFuben> { return this._dataMap; }
getDataList(): TB.TbGSysFuben[] { return this._dataList; }
getDataMap(): Map<number, TB.TbGSysDungeon> { return this._dataMap; }
getDataList(): TB.TbGSysDungeon[] { return this._dataList; }
get(key: number): TB.TbGSysFuben | undefined { return this._dataMap.get(key); }
get(key: number): TB.TbGSysDungeon | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbGSysDungeon160001{
private _dataMap: Map<number, TB.TbGSysDungeon160001>
private _dataList: TB.TbGSysDungeon160001[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGSysDungeon160001>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGSysDungeon160001
_v = new TB.TbGSysDungeon160001(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbGSysDungeon160001> { return this._dataMap; }
getDataList(): TB.TbGSysDungeon160001[] { return this._dataList; }
get(key: number): TB.TbGSysDungeon160001 | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
for(let data of this._dataList)
{
data.resolve(tables)
}
}
}
export class TbGSysDungeon160002{
private _dataMap: Map<number, TB.TbGSysDungeon160002>
private _dataList: TB.TbGSysDungeon160002[]
constructor(_json_: any) {
this._dataMap = new Map<number, TB.TbGSysDungeon160002>()
this._dataList = []
for(var _json2_ of _json_) {
let _v: TB.TbGSysDungeon160002
_v = new TB.TbGSysDungeon160002(_json2_)
this._dataList.push(_v)
this._dataMap.set(_v.id, _v)
}
}
getDataMap(): Map<number, TB.TbGSysDungeon160002> { return this._dataMap; }
getDataList(): TB.TbGSysDungeon160002[] { return this._dataList; }
get(key: number): TB.TbGSysDungeon160002 | undefined { return this._dataMap.get(key); }
resolve(tables:Tables)
{
@@ -1695,8 +1808,6 @@ export class Tables {
get TbGOnHookGlobal(): TbGOnHookGlobal { return this._TbGOnHookGlobal;}
private _TbGResource: TbGResource
get TbGResource(): TbGResource { return this._TbGResource;}
private _TbGRoleUpLevel: TbGRoleUpLevel
get TbGRoleUpLevel(): TbGRoleUpLevel { return this._TbGRoleUpLevel;}
private _TbGRoleUpStar: TbGRoleUpStar
get TbGRoleUpStar(): TbGRoleUpStar { return this._TbGRoleUpStar;}
private _TbGRoleUpGrow: TbGRoleUpGrow
@@ -1723,8 +1834,12 @@ export class Tables {
get TbGRoleEquipQuality(): TbGRoleEquipQuality { return this._TbGRoleEquipQuality;}
private _TbGRoleEquipType: TbGRoleEquipType
get TbGRoleEquipType(): TbGRoleEquipType { return this._TbGRoleEquipType;}
private _TbGSysFuben: TbGSysFuben
get TbGSysFuben(): TbGSysFuben { return this._TbGSysFuben;}
private _TbGSysDungeon: TbGSysDungeon
get TbGSysDungeon(): TbGSysDungeon { return this._TbGSysDungeon;}
private _TbGSysDungeon160001: TbGSysDungeon160001
get TbGSysDungeon160001(): TbGSysDungeon160001 { return this._TbGSysDungeon160001;}
private _TbGSysDungeon160002: TbGSysDungeon160002
get TbGSysDungeon160002(): TbGSysDungeon160002 { return this._TbGSysDungeon160002;}
constructor(loader: JsonLoader) {
this._TbGGlobal = new TbGGlobal(loader('tbgglobal'))
@@ -1734,7 +1849,6 @@ export class Tables {
this._TbGMap = new TbGMap(loader('tbgmap'))
this._TbGOnHookGlobal = new TbGOnHookGlobal(loader('tbgonhookglobal'))
this._TbGResource = new TbGResource(loader('tbgresource'))
this._TbGRoleUpLevel = new TbGRoleUpLevel(loader('tbgroleuplevel'))
this._TbGRoleUpStar = new TbGRoleUpStar(loader('tbgroleupstar'))
this._TbGRoleUpGrow = new TbGRoleUpGrow(loader('tbgroleupgrow'))
this._TbSServerInfo = new TbSServerInfo(loader('tbsserverinfo'))
@@ -1748,7 +1862,9 @@ export class Tables {
this._TbGRoleEquipLevel = new TbGRoleEquipLevel(loader('tbgroleequiplevel'))
this._TbGRoleEquipQuality = new TbGRoleEquipQuality(loader('tbgroleequipquality'))
this._TbGRoleEquipType = new TbGRoleEquipType(loader('tbgroleequiptype'))
this._TbGSysFuben = new TbGSysFuben(loader('tbgsysfuben'))
this._TbGSysDungeon = new TbGSysDungeon(loader('tbgsysdungeon'))
this._TbGSysDungeon160001 = new TbGSysDungeon160001(loader('tbgsysdungeon160001'))
this._TbGSysDungeon160002 = new TbGSysDungeon160002(loader('tbgsysdungeon160002'))
this._TbGGlobal.resolve(this)
this._TbGRole.resolve(this)
@@ -1757,7 +1873,6 @@ export class Tables {
this._TbGMap.resolve(this)
this._TbGOnHookGlobal.resolve(this)
this._TbGResource.resolve(this)
this._TbGRoleUpLevel.resolve(this)
this._TbGRoleUpStar.resolve(this)
this._TbGRoleUpGrow.resolve(this)
this._TbSServerInfo.resolve(this)
@@ -1771,6 +1886,8 @@ export class Tables {
this._TbGRoleEquipLevel.resolve(this)
this._TbGRoleEquipQuality.resolve(this)
this._TbGRoleEquipType.resolve(this)
this._TbGSysFuben.resolve(this)
this._TbGSysDungeon.resolve(this)
this._TbGSysDungeon160001.resolve(this)
this._TbGSysDungeon160002.resolve(this)
}
}

View File

@@ -89,10 +89,11 @@ export default class PlayerPetData extends BaseData{
//刷新返回宠物
onUpdateOV(operation:number,resource:PlayerPetOV){
resource.petLevel = PetEquipData.getIns().getForgingBenchPetLevel(resource.petId);
//如果没有刷新的宠物 则 返回
if(!resource) return;
resource.petLevel = PetEquipData.getIns().getForgingBenchPetLevel(resource.petId);
if(operation == ResourceUpdateType.UPDATE){
//更新资源

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "a02d7ff0-fe8f-4970-be6d-5d7c6be4c220",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,28 @@
import { _decorator, Component, Node } from 'cc';
import JNScrollViewItem from '../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollViewItem';
import { TB } from '../../config/data/schema';
import { Label } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('DungeonShowItem')
export class DungeonShowItem extends JNScrollViewItem<TB.TbGSysDungeon> {
//副本名称
@property(Label)
title:Label;
onInit(){
this.onUpdateView();
}
onUpdateView(){
this.title.string = this.data.name;
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "337e32c7-5580-4897-925b-19deb6621d34",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,27 @@
import { _decorator, Component, Node } from 'cc';
import { JNGLayerBase } from '../../components/JNComponent';
import { TD } from '../../App';
import JNScrollView from '../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollView';
const { ccclass, property } = _decorator;
@ccclass('DungeonView')
export class DungeonView extends JNGLayerBase {
@property(JNScrollView)
views:JNScrollView
onJNLoad(data?: any): void {
super.onJNLoad(data);
this.onUpdateView();
}
onUpdateView(){
//显示全部副本
this.views.refreshData(TD.TbGSysDungeon.getDataList());
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "aa8b9c47-a4d4-49bb-a26e-2b78a7f60d0b",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -116,6 +116,11 @@ export class MainView extends JNGLayerBase {
GOnHookManager.getIns().onNextLevel();
}
//点击进入副本
onClickDungeon(){
app.layer.Open(GUI.DungeonView);
}
}

View File

@@ -25,6 +25,9 @@ export enum GUI{
MainOnHookView = "MainOnHookView", //挂机弹窗
MapSelectView = "MapSelectView", //地图选择页面
/** 副本 */
DungeonView = "DungeonView", //副本页面
/**宠物 */
PetUpStarView = "PetUpStarView", //宠物升星页面
@@ -158,6 +161,15 @@ const UINoviceConfig:{ [key: string]: JNLayerInfo; } = {
}
//副本页面
const UIDungeonConfig:{ [key: string]: JNLayerInfo; } = {
[GUI.DungeonView]:{
layer:GLayer.Popup,
uri: "prefab/ui/副本页面/副本页面",
anims:BackOutScale
}
}
//游戏模式页面
const UIGModeConfig:{ [key: string]: JNLayerInfo; } = {
@@ -214,6 +226,7 @@ export const UIConfig:{ [key: string]: JNLayerInfo; } = {
...UINoviceConfig, //新手引导页面
...UIMainConfig, //主页面
...UIPetConfig, //宠物页面
...UIDungeonConfig, //副本页面
...UIGModeConfig, //游戏模式页面
}