dd
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "hp",
|
||||
"_name": "ct",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
@@ -99,8 +99,8 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 85,
|
||||
"x": -300,
|
||||
"y": 35,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -205,7 +205,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "c9T8vIgO1IGYjhofmb98k0"
|
||||
"fileId": "6cJ2s3RoBMQ7xd30yoc8hW"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
@@ -273,7 +273,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "5c5iovKpxNDqzuBIw+dj4i"
|
||||
"fileId": "2bPJK91yJH44n5cCEu0rK/"
|
||||
},
|
||||
{
|
||||
"__type__": "545c05XsG9GDJispEGWKvYv",
|
||||
@@ -288,14 +288,14 @@
|
||||
"__id__": 9
|
||||
},
|
||||
"templateMode": false,
|
||||
"watchPath": "data.mission.hp",
|
||||
"watchPath": "data.mission.ap",
|
||||
"labelType": "cc.Label",
|
||||
"watchPathArr": [],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "006KQ8zxpOEog74qm2gk0k"
|
||||
"fileId": "a9iaStQGxGOa95e0JRqMe0"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -305,7 +305,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "73MlXPY2NPIL0MVUPpSqhA",
|
||||
"fileId": "edGd3d7aFM96nK1jRQyHl/",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -386,7 +386,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "0debtnVXlMy7rOG6lVAQn7"
|
||||
"fileId": "8d8EteNwlKGZayGkr6vBa1"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
@@ -411,7 +411,7 @@
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@e2859",
|
||||
"__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@90fa8",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 0,
|
||||
@@ -431,7 +431,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "38IY35uPZNwaZk27BJXxNE"
|
||||
"fileId": "14jSDV3yFC2oN0NsJdJjQl"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -441,7 +441,9 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "54rUdjjR5CnquWWSrFYjxu",
|
||||
"fileId": "18pxPg+0RDkaJ+LXb8kLhp",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
@@ -458,7 +460,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 80,
|
||||
"width": 100,
|
||||
"height": 30
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -470,7 +472,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "06bhdWouBGF55hR0EW6lKj"
|
||||
"fileId": "fbOM2exMBMWrtRBmmsqsy6"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -480,14 +482,14 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "0c9pFAstVMq5zqLUJShZkZ",
|
||||
"fileId": "d8O+ub8HBFxoAEnSJ3x4Gs",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "def",
|
||||
"_name": "hp",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
@@ -512,8 +514,8 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 80,
|
||||
"y": 85,
|
||||
"x": -200,
|
||||
"y": 35,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -618,7 +620,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "d1At0bX1VOGZipHlz/0t6u"
|
||||
"fileId": "c9T8vIgO1IGYjhofmb98k0"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
@@ -686,7 +688,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "f2Y7iE6s5GzIRFEJRWGPK6"
|
||||
"fileId": "5c5iovKpxNDqzuBIw+dj4i"
|
||||
},
|
||||
{
|
||||
"__type__": "545c05XsG9GDJispEGWKvYv",
|
||||
@@ -701,14 +703,14 @@
|
||||
"__id__": 27
|
||||
},
|
||||
"templateMode": false,
|
||||
"watchPath": "data.mission.def",
|
||||
"watchPath": "data.mission.hp",
|
||||
"labelType": "cc.Label",
|
||||
"watchPathArr": [],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "faJBpXny5L5phGTSFGRr7O"
|
||||
"fileId": "006KQ8zxpOEog74qm2gk0k"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -718,7 +720,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "e6dW5Gor1Ga7bk+TD8B2eS",
|
||||
"fileId": "73MlXPY2NPIL0MVUPpSqhA",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -799,7 +801,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "0e4NFHusZMg5Is4+/Z/lR5"
|
||||
"fileId": "0debtnVXlMy7rOG6lVAQn7"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
@@ -819,12 +821,12 @@
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 238,
|
||||
"g": 124,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@eba03",
|
||||
"__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@e2859",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 0,
|
||||
@@ -844,7 +846,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "7c4Q+T83FCWbMDD5I3gf1v"
|
||||
"fileId": "38IY35uPZNwaZk27BJXxNE"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -854,7 +856,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a7esDkd5VJEKGOY6Ck/z+F",
|
||||
"fileId": "54rUdjjR5CnquWWSrFYjxu",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -873,7 +875,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 80,
|
||||
"width": 100,
|
||||
"height": 30
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -885,7 +887,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "68L9fZB8xCaKivMIK7/nu3"
|
||||
"fileId": "06bhdWouBGF55hR0EW6lKj"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -895,14 +897,14 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "3asnEzjilM/7uuj+IjHKud",
|
||||
"fileId": "0c9pFAstVMq5zqLUJShZkZ",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "ap",
|
||||
"_name": "def",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
@@ -927,8 +929,8 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 160,
|
||||
"y": 85,
|
||||
"x": -100,
|
||||
"y": 35,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -1033,7 +1035,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "ebBKHHJa9JQoUoOHRSX7tf"
|
||||
"fileId": "d1At0bX1VOGZipHlz/0t6u"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
@@ -1101,7 +1103,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "fbYzOKQ2xBrLJvwhNSwdBG"
|
||||
"fileId": "f2Y7iE6s5GzIRFEJRWGPK6"
|
||||
},
|
||||
{
|
||||
"__type__": "545c05XsG9GDJispEGWKvYv",
|
||||
@@ -1116,14 +1118,14 @@
|
||||
"__id__": 45
|
||||
},
|
||||
"templateMode": false,
|
||||
"watchPath": "data.mission.ap",
|
||||
"watchPath": "data.mission.def",
|
||||
"labelType": "cc.Label",
|
||||
"watchPathArr": [],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "572haDLQpHZ5/cLGVk6nue"
|
||||
"fileId": "faJBpXny5L5phGTSFGRr7O"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -1133,7 +1135,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "80G0/4yv9CrLoPFtu29kkR",
|
||||
"fileId": "e6dW5Gor1Ga7bk+TD8B2eS",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -1214,7 +1216,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "e8sLfpW/ZEvopuIyOS6v/m"
|
||||
"fileId": "0e4NFHusZMg5Is4+/Z/lR5"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
@@ -1233,13 +1235,13 @@
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 152,
|
||||
"b": 238,
|
||||
"r": 238,
|
||||
"g": 124,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@2725c",
|
||||
"__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@eba03",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 0,
|
||||
@@ -1259,7 +1261,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "2ddB9miWxC4qO3o3yaS7wn"
|
||||
"fileId": "7c4Q+T83FCWbMDD5I3gf1v"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -1269,7 +1271,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "d1AOULrExJXaz/5AHGnhle",
|
||||
"fileId": "a7esDkd5VJEKGOY6Ck/z+F",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -1288,7 +1290,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 80,
|
||||
"width": 100,
|
||||
"height": 30
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -1300,7 +1302,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "3aNrw//rdBzo9jxZbacgx2"
|
||||
"fileId": "68L9fZB8xCaKivMIK7/nu3"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -1310,14 +1312,14 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "3cXj9WX1RIC53/vTxEu0Nd",
|
||||
"fileId": "3asnEzjilM/7uuj+IjHKud",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "ct",
|
||||
"_name": "ap",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
@@ -1343,7 +1345,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 55,
|
||||
"y": 35,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -1448,7 +1450,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "6cJ2s3RoBMQ7xd30yoc8hW"
|
||||
"fileId": "ebBKHHJa9JQoUoOHRSX7tf"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
@@ -1516,7 +1518,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "2bPJK91yJH44n5cCEu0rK/"
|
||||
"fileId": "fbYzOKQ2xBrLJvwhNSwdBG"
|
||||
},
|
||||
{
|
||||
"__type__": "545c05XsG9GDJispEGWKvYv",
|
||||
@@ -1538,7 +1540,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "a9iaStQGxGOa95e0JRqMe0"
|
||||
"fileId": "572haDLQpHZ5/cLGVk6nue"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -1548,7 +1550,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "edGd3d7aFM96nK1jRQyHl/",
|
||||
"fileId": "80G0/4yv9CrLoPFtu29kkR",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -1629,7 +1631,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "8d8EteNwlKGZayGkr6vBa1"
|
||||
"fileId": "e8sLfpW/ZEvopuIyOS6v/m"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
@@ -1648,13 +1650,13 @@
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 238,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"r": 0,
|
||||
"g": 152,
|
||||
"b": 238,
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@90fa8",
|
||||
"__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@2725c",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 0,
|
||||
@@ -1674,7 +1676,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "14jSDV3yFC2oN0NsJdJjQl"
|
||||
"fileId": "2ddB9miWxC4qO3o3yaS7wn"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -1684,7 +1686,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "18pxPg+0RDkaJ+LXb8kLhp",
|
||||
"fileId": "d1AOULrExJXaz/5AHGnhle",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -1703,7 +1705,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 80,
|
||||
"width": 100,
|
||||
"height": 30
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -1715,7 +1717,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "fbOM2exMBMWrtRBmmsqsy6"
|
||||
"fileId": "3aNrw//rdBzo9jxZbacgx2"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -1725,7 +1727,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "d8O+ub8HBFxoAEnSJ3x4Gs",
|
||||
"fileId": "3cXj9WX1RIC53/vTxEu0Nd",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -1744,12 +1746,12 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 300,
|
||||
"height": 200
|
||||
"width": 600,
|
||||
"height": 100
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": ""
|
||||
@@ -1774,7 +1776,7 @@
|
||||
"_layoutType": 3,
|
||||
"_cellSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 80,
|
||||
"width": 100,
|
||||
"height": 30
|
||||
},
|
||||
"_startAxis": 0,
|
||||
@@ -1787,7 +1789,7 @@
|
||||
"_verticalDirection": 1,
|
||||
"_horizontalDirection": 0,
|
||||
"_constraint": 2,
|
||||
"_constraintNum": 3,
|
||||
"_constraintNum": 6,
|
||||
"_affectedByScale": false,
|
||||
"_isAlign": false,
|
||||
"_id": ""
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -99,40 +99,26 @@ export class MissionComp extends CCComp {
|
||||
smc.vmdata.mission.mdef=0
|
||||
this.msk={ on :false, uuid:1001,type:1,lv: 1}
|
||||
this.mmsk={ on :false, uuid:1001,type:1,lv: 1}
|
||||
let exp_n=this.node.getChildByName("exp")
|
||||
let nexp_n=this.node.getChildByName("mexp")
|
||||
|
||||
exp_n.getChildByName("ap").active = false;
|
||||
nexp_n.getChildByName("ap").active = false;
|
||||
exp_n.getChildByName("def").active = false;
|
||||
nexp_n.getChildByName("def").active = false;
|
||||
exp_n.getChildByName("hp").active = false;
|
||||
nexp_n.getChildByName("hp").active = false;
|
||||
switch(smc.vmdata.mission.mbt){
|
||||
case 1:
|
||||
exp_n.getChildByName("ap").active = true;
|
||||
smc.vmdata.mission.exp_max=MBSet.ap_exp-smc.vmdata.mission.ap_exp;
|
||||
break;
|
||||
case 2:
|
||||
exp_n.getChildByName("def").active = true;
|
||||
smc.vmdata.mission.exp_max=MBSet.def_exp-smc.vmdata.mission.def_exp;
|
||||
break;
|
||||
case 3:
|
||||
exp_n.getChildByName("hp").active = true;
|
||||
smc.vmdata.mission.exp_max=MBSet.hp_exp-smc.vmdata.mission.hp_exp;
|
||||
break;
|
||||
}
|
||||
switch(smc.vmdata.mission.mmbt){
|
||||
case 1:
|
||||
nexp_n.getChildByName("ap").active = true;
|
||||
smc.vmdata.mission.m_exp_max=MBSet.ap_exp+smc.vmdata.mission.map_exp;
|
||||
break;
|
||||
case 2:
|
||||
nexp_n.getChildByName("def").active = true;
|
||||
smc.vmdata.mission.m_exp_max=MBSet.def_exp+smc.vmdata.mission.mdef_exp;
|
||||
break;
|
||||
case 3:
|
||||
nexp_n.getChildByName("hp").active = true;
|
||||
smc.vmdata.mission.m_exp_max=MBSet.hp_exp+smc.vmdata.mission.mhp_exp;
|
||||
break;
|
||||
}
|
||||
@@ -206,14 +192,9 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
if(smc.vmdata.mission.m_exp >= smc.vmdata.mission.m_exp_max){
|
||||
smc.vmdata.mission.m_exp-=smc.vmdata.mission.m_exp_max
|
||||
// this.node.getChildByName("mexp").setScale(1.2,1.2)
|
||||
// this.scheduleOnce(function(){
|
||||
// this.node.getChildByName("mexp").setScale(1,1)
|
||||
// },0.2)
|
||||
switch(smc.vmdata.mission.mmbt){
|
||||
case 1:
|
||||
smc.vmdata.mission.map+=smc.vmdata.mission.map_up+MBSet.ap_add
|
||||
console.log("mission map",smc.vmdata.mission.map)
|
||||
break;
|
||||
case 2:
|
||||
smc.vmdata.mission.mdef+=smc.vmdata.mission.mdef_up+MBSet.def_add
|
||||
|
||||
Reference in New Issue
Block a user