From 78d4b10a88327c91e9d10a551c88a6f7d07b1c52 Mon Sep 17 00:00:00 2001 From: panw Date: Tue, 24 Mar 2026 10:09:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(skill):=20=E4=BF=AE=E6=AD=A3=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E6=94=BB=E5=87=BB=E5=8A=9B=E8=AE=A1=E7=AE=97=E6=9C=AA?= =?UTF-8?q?=E9=99=A4=E4=BB=A5100=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复技能攻击力(AP)计算时未将百分比转换为小数的问题。原代码直接使用 sAp (百分比值) 与基础攻击力相乘,导致计算结果过大。现在将 sAp 除以 100 以正确计算实际攻击力值。 --- .../resources/game/skill/buff/tooltip.prefab | 904 +++++++++++++----- assets/script/game/skill/Skill.ts | 2 +- 2 files changed, 684 insertions(+), 222 deletions(-) diff --git a/assets/resources/game/skill/buff/tooltip.prefab b/assets/resources/game/skill/buff/tooltip.prefab index f5c85017..ca2c6ce3 100644 --- a/assets/resources/game/skill/buff/tooltip.prefab +++ b/assets/resources/game/skill/buff/tooltip.prefab @@ -28,38 +28,41 @@ "__id__": 38 }, { - "__id__": 64 + "__id__": 56 }, { - "__id__": 76 + "__id__": 82 }, { - "__id__": 86 + "__id__": 94 }, { - "__id__": 96 + "__id__": 104 }, { - "__id__": 112 + "__id__": 114 }, { - "__id__": 128 + "__id__": 130 + }, + { + "__id__": 146 } ], "_active": true, "_components": [ { - "__id__": 146 + "__id__": 164 }, { - "__id__": 148 + "__id__": 166 }, { - "__id__": 150 + "__id__": 168 } ], "_prefab": { - "__id__": 152 + "__id__": 170 }, "_lpos": { "__type__": "cc.Vec3", @@ -92,7 +95,7 @@ }, { "__type__": "cc.Node", - "_name": "loss_life", + "_name": "hloss", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -103,7 +106,7 @@ "__id__": 3 } ], - "_active": false, + "_active": true, "_components": [ { "__id__": 17 @@ -204,7 +207,7 @@ "__id__": 3 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { "__id__": 5 @@ -221,7 +224,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": -38.61234375, + "x": -26.94734375, "y": 0, "z": 0 }, @@ -262,8 +265,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 7.29, - "height": 30 + "width": 8.75, + "height": 35 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -274,7 +277,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "2ajrO1xTFEYZuYSqyA/gFk" + "fileId": "81Hd5FCmNKELbTy3PUR0Ga" }, { "__type__": "cc.Label", @@ -293,18 +296,18 @@ "_dstBlendFactor": 4, "_color": { "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, + "r": 247, + "g": 133, + "b": 133, "a": 255 }, "_string": "-", "_horizontalAlign": 2, "_verticalAlign": 1, - "_actualFontSize": 25, - "_fontSize": 25, + "_actualFontSize": 30, + "_fontSize": 30, "_fontFamily": "Arial", - "_lineHeight": 30, + "_lineHeight": 35, "_overflow": 0, "_enableWrapText": true, "_font": { @@ -345,7 +348,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "5blJTGFB5Nr7RaOdgY7oSl" + "fileId": "8cYaMikZtKAo5zVDcuh7fG" }, { "__type__": "cc.Widget", @@ -361,7 +364,7 @@ }, "_alignFlags": 8, "_target": null, - "_left": -11.00734375, + "_left": -11.73734375, "_right": 0, "_top": 0, "_bottom": 0, @@ -381,7 +384,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "2bzZSFzzNHsr1gOfSoasCQ" + "fileId": "32wpgDC0BBV758yjr4s+r+" }, { "__type__": "cc.PrefabInfo", @@ -391,7 +394,7 @@ "asset": { "__id__": 0 }, - "fileId": "64+y/YDVRNJLoFjvaUMODr", + "fileId": "5clIOO919D4JsHp6rnR+ot", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -410,8 +413,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 62.5, - "height": 30 + "width": 39.17, + "height": 35 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -422,7 +425,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "4fnaaefIBPd5VZkadvVuL+" + "fileId": "e9OugIC/pDHpANqS/vmzCi" }, { "__type__": "cc.Label", @@ -442,17 +445,17 @@ "_color": { "__type__": "cc.Color", "r": 255, - "g": 255, - "b": 255, + "g": 68, + "b": 68, "a": 255 }, - "_string": "10.0kK", + "_string": "10K", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 25, - "_fontSize": 25, + "_actualFontSize": 30, + "_fontSize": 30, "_fontFamily": "Arial", - "_lineHeight": 30, + "_lineHeight": 35, "_overflow": 0, "_enableWrapText": true, "_font": { @@ -493,7 +496,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "9eU3zaRn9LQaYvHbXZrQOn" + "fileId": "7618CoHGdFnLKZwqySHp4r" }, { "__type__": "cc.PrefabInfo", @@ -503,7 +506,7 @@ "asset": { "__id__": 0 }, - "fileId": "56T8q4G/xCpo4gdb82Y18Y", + "fileId": "9cuYQ4TQVJ87f84GeMDR/D", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -534,7 +537,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "48URscTW9Mj7bFwcYDjafC" + "fileId": "0aZKwYHpFGOKdsh7OwWNIX" }, { "__type__": "cc.PrefabInfo", @@ -544,14 +547,14 @@ "asset": { "__id__": 0 }, - "fileId": "79aw18DVlI1rY7RmoSUkYE", + "fileId": "d2kKoCvhtGNr8P0juBog+I", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { "__type__": "cc.Node", - "_name": "add_life", + "_name": "loss_life", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -562,7 +565,7 @@ "__id__": 21 } ], - "_active": false, + "_active": true, "_components": [ { "__id__": 35 @@ -663,7 +666,7 @@ "__id__": 21 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { "__id__": 23 @@ -680,7 +683,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": -24.35, + "x": -19.44734375, "y": 0, "z": 0 }, @@ -721,8 +724,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 9.03, - "height": 30 + "width": 8.75, + "height": 35 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -733,7 +736,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "5e+vN/MtNJPZBTWtMoNeVb" + "fileId": "2ajrO1xTFEYZuYSqyA/gFk" }, { "__type__": "cc.Label", @@ -750,6 +753,465 @@ "_customMaterial": null, "_srcBlendFactor": 2, "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "-", + "_horizontalAlign": 2, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 35, + "_overflow": 0, + "_enableWrapText": true, + "_font": { + "__uuid__": "eca7fc51-87d0-4bb0-89e1-aa9c39411bc6", + "__expectedType__": "cc.BitmapFont" + }, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_enableOutline": true, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 1, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5blJTGFB5Nr7RaOdgY7oSl" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 28 + }, + "_alignFlags": 8, + "_target": null, + "_left": -11.73734375, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2bzZSFzzNHsr1gOfSoasCQ" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "64+y/YDVRNJLoFjvaUMODr", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 21 + }, + "_enabled": true, + "__prefab": { + "__id__": 31 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 24.17, + "height": 35 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4fnaaefIBPd5VZkadvVuL+" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 21 + }, + "_enabled": true, + "__prefab": { + "__id__": 33 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "10", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 35, + "_overflow": 0, + "_enableWrapText": true, + "_font": { + "__uuid__": "eca7fc51-87d0-4bb0-89e1-aa9c39411bc6", + "__expectedType__": "cc.BitmapFont" + }, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_enableOutline": true, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 1, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "9eU3zaRn9LQaYvHbXZrQOn" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "56T8q4G/xCpo4gdb82Y18Y", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 20 + }, + "_enabled": true, + "__prefab": { + "__id__": 36 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "48URscTW9Mj7bFwcYDjafC" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "79aw18DVlI1rY7RmoSUkYE", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "add_life", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 39 + } + ], + "_active": false, + "_components": [ + { + "__id__": 53 + } + ], + "_prefab": { + "__id__": 55 + }, + "_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": 1, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "hp", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 38 + }, + "_children": [ + { + "__id__": 40 + } + ], + "_active": true, + "_components": [ + { + "__id__": 48 + }, + { + "__id__": 50 + } + ], + "_prefab": { + "__id__": 52 + }, + "_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": 1, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 39 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 41 + }, + { + "__id__": 43 + }, + { + "__id__": 45 + } + ], + "_prefab": { + "__id__": 47 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -29.231, + "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": 1, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 40 + }, + "_enabled": true, + "__prefab": { + "__id__": 42 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 12.64, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5e+vN/MtNJPZBTWtMoNeVb" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 40 + }, + "_enabled": true, + "__prefab": { + "__id__": 44 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, "_color": { "__type__": "cc.Color", "r": 82, @@ -760,10 +1222,10 @@ "_string": "+", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 25, - "_fontSize": 25, + "_actualFontSize": 35, + "_fontSize": 35, "_fontFamily": "Arial", - "_lineHeight": 30, + "_lineHeight": 40, "_overflow": 0, "_enableWrapText": true, "_font": { @@ -812,15 +1274,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 40 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 46 }, "_alignFlags": 8, "_target": null, - "_left": -10.290000000000003, + "_left": -13.261000000000006, "_right": 0, "_top": 0, "_bottom": 0, @@ -861,16 +1323,16 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 21 + "__id__": 39 }, "_enabled": true, "__prefab": { - "__id__": 31 + "__id__": 49 }, "_contentSize": { "__type__": "cc.Size", - "width": 37.15, - "height": 30 + "width": 44.58, + "height": 35 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -889,11 +1351,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 21 + "__id__": 39 }, "_enabled": true, "__prefab": { - "__id__": 33 + "__id__": 51 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -908,10 +1370,10 @@ "_string": "500", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 25, - "_fontSize": 25, + "_actualFontSize": 30, + "_fontSize": 30, "_fontFamily": "Arial", - "_lineHeight": 30, + "_lineHeight": 35, "_overflow": 0, "_enableWrapText": true, "_font": { @@ -973,11 +1435,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 20 + "__id__": 38 }, "_enabled": true, "__prefab": { - "__id__": 36 + "__id__": 54 }, "_contentSize": { "__type__": "cc.Size", @@ -1018,17 +1480,17 @@ }, "_children": [ { - "__id__": 39 + "__id__": 57 } ], "_active": false, "_components": [ { - "__id__": 61 + "__id__": 79 } ], "_prefab": { - "__id__": 63 + "__id__": 81 }, "_lpos": { "__type__": "cc.Vec3", @@ -1065,27 +1527,27 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 38 + "__id__": 56 }, "_children": [ { - "__id__": 40 + "__id__": 58 }, { - "__id__": 48 + "__id__": 66 } ], "_active": true, "_components": [ { - "__id__": 56 + "__id__": 74 }, { - "__id__": 58 + "__id__": 76 } ], "_prefab": { - "__id__": 60 + "__id__": 78 }, "_lpos": { "__type__": "cc.Vec3", @@ -1122,27 +1584,27 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 39 + "__id__": 57 }, "_children": [], "_active": true, "_components": [ { - "__id__": 41 + "__id__": 59 }, { - "__id__": 43 + "__id__": 61 }, { - "__id__": 45 + "__id__": 63 } ], "_prefab": { - "__id__": 47 + "__id__": 65 }, "_lpos": { "__type__": "cc.Vec3", - "x": -54.79, + "x": -64.72, "y": 3.745, "z": 0 }, @@ -1175,11 +1637,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 40 + "__id__": 58 }, "_enabled": true, "__prefab": { - "__id__": 42 + "__id__": 60 }, "_contentSize": { "__type__": "cc.Size", @@ -1203,11 +1665,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 40 + "__id__": 58 }, "_enabled": true, "__prefab": { - "__id__": 44 + "__id__": 62 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1251,11 +1713,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 40 + "__id__": 58 }, "_enabled": true, "__prefab": { - "__id__": 46 + "__id__": 64 }, "_alignFlags": 8, "_target": null, @@ -1300,23 +1762,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 39 + "__id__": 57 }, "_children": [], "_active": false, "_components": [ { - "__id__": 49 + "__id__": 67 }, { - "__id__": 51 + "__id__": 69 }, { - "__id__": 53 + "__id__": 71 } ], "_prefab": { - "__id__": 55 + "__id__": 73 }, "_lpos": { "__type__": "cc.Vec3", @@ -1353,11 +1815,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 48 + "__id__": 66 }, "_enabled": true, "__prefab": { - "__id__": 50 + "__id__": 68 }, "_contentSize": { "__type__": "cc.Size", @@ -1381,11 +1843,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 48 + "__id__": 66 }, "_enabled": true, "__prefab": { - "__id__": 52 + "__id__": 70 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1449,11 +1911,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 48 + "__id__": 66 }, "_enabled": true, "__prefab": { - "__id__": 54 + "__id__": 72 }, "_alignFlags": 8, "_target": null, @@ -1498,15 +1960,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 39 + "__id__": 57 }, "_enabled": true, "__prefab": { - "__id__": 57 + "__id__": 75 }, "_contentSize": { "__type__": "cc.Size", - "width": 59.58, + "width": 79.44, "height": 40 }, "_anchorPoint": { @@ -1526,11 +1988,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 39 + "__id__": 57 }, "_enabled": true, "__prefab": { - "__id__": 59 + "__id__": 77 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1538,15 +2000,15 @@ "_color": { "__type__": "cc.Color", "r": 255, - "g": 0, - "b": 0, + "g": 68, + "b": 68, "a": 255 }, "_string": "9999", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 30, - "_fontSize": 30, + "_actualFontSize": 40, + "_fontSize": 40, "_fontFamily": "Arial", "_lineHeight": 40, "_overflow": 0, @@ -1610,11 +2072,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 38 + "__id__": 56 }, "_enabled": true, "__prefab": { - "__id__": 62 + "__id__": 80 }, "_contentSize": { "__type__": "cc.Size", @@ -1655,20 +2117,20 @@ }, "_children": [ { - "__id__": 65 + "__id__": 83 } ], "_active": false, "_components": [ { - "__id__": 71 + "__id__": 89 }, { - "__id__": 73 + "__id__": 91 } ], "_prefab": { - "__id__": 75 + "__id__": 93 }, "_lpos": { "__type__": "cc.Vec3", @@ -1705,20 +2167,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 64 + "__id__": 82 }, "_children": [], "_active": true, "_components": [ { - "__id__": 66 + "__id__": 84 }, { - "__id__": 68 + "__id__": 86 } ], "_prefab": { - "__id__": 70 + "__id__": 88 }, "_lpos": { "__type__": "cc.Vec3", @@ -1755,11 +2217,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 65 + "__id__": 83 }, "_enabled": true, "__prefab": { - "__id__": 67 + "__id__": 85 }, "_contentSize": { "__type__": "cc.Size", @@ -1783,11 +2245,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 65 + "__id__": 83 }, "_enabled": true, "__prefab": { - "__id__": 69 + "__id__": 87 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1864,11 +2326,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 64 + "__id__": 82 }, "_enabled": true, "__prefab": { - "__id__": 72 + "__id__": 90 }, "_contentSize": { "__type__": "cc.Size", @@ -1892,11 +2354,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 64 + "__id__": 82 }, "_enabled": true, "__prefab": { - "__id__": 74 + "__id__": 92 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1951,17 +2413,17 @@ }, "_children": [ { - "__id__": 77 + "__id__": 95 } ], "_active": false, "_components": [ { - "__id__": 83 + "__id__": 101 } ], "_prefab": { - "__id__": 85 + "__id__": 103 }, "_lpos": { "__type__": "cc.Vec3", @@ -1998,20 +2460,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 76 + "__id__": 94 }, "_children": [], "_active": true, "_components": [ { - "__id__": 78 + "__id__": 96 }, { - "__id__": 80 + "__id__": 98 } ], "_prefab": { - "__id__": 82 + "__id__": 100 }, "_lpos": { "__type__": "cc.Vec3", @@ -2048,11 +2510,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 77 + "__id__": 95 }, "_enabled": true, "__prefab": { - "__id__": 79 + "__id__": 97 }, "_contentSize": { "__type__": "cc.Size", @@ -2076,11 +2538,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 77 + "__id__": 95 }, "_enabled": true, "__prefab": { - "__id__": 81 + "__id__": 99 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2157,11 +2619,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 76 + "__id__": 94 }, "_enabled": true, "__prefab": { - "__id__": 84 + "__id__": 102 }, "_contentSize": { "__type__": "cc.Size", @@ -2202,17 +2664,17 @@ }, "_children": [ { - "__id__": 87 + "__id__": 105 } ], "_active": false, "_components": [ { - "__id__": 93 + "__id__": 111 } ], "_prefab": { - "__id__": 95 + "__id__": 113 }, "_lpos": { "__type__": "cc.Vec3", @@ -2249,20 +2711,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 86 + "__id__": 104 }, "_children": [], "_active": true, "_components": [ { - "__id__": 88 + "__id__": 106 }, { - "__id__": 90 + "__id__": 108 } ], "_prefab": { - "__id__": 92 + "__id__": 110 }, "_lpos": { "__type__": "cc.Vec3", @@ -2299,11 +2761,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 87 + "__id__": 105 }, "_enabled": true, "__prefab": { - "__id__": 89 + "__id__": 107 }, "_contentSize": { "__type__": "cc.Size", @@ -2327,11 +2789,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 87 + "__id__": 105 }, "_enabled": true, "__prefab": { - "__id__": 91 + "__id__": 109 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2408,11 +2870,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 86 + "__id__": 104 }, "_enabled": true, "__prefab": { - "__id__": 94 + "__id__": 112 }, "_contentSize": { "__type__": "cc.Size", @@ -2453,20 +2915,20 @@ }, "_children": [ { - "__id__": 97 + "__id__": 115 }, { - "__id__": 103 + "__id__": 121 } ], "_active": false, "_components": [ { - "__id__": 109 + "__id__": 127 } ], "_prefab": { - "__id__": 111 + "__id__": 129 }, "_lpos": { "__type__": "cc.Vec3", @@ -2503,20 +2965,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 96 + "__id__": 114 }, "_children": [], "_active": true, "_components": [ { - "__id__": 98 + "__id__": 116 }, { - "__id__": 100 + "__id__": 118 } ], "_prefab": { - "__id__": 102 + "__id__": 120 }, "_lpos": { "__type__": "cc.Vec3", @@ -2553,11 +3015,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 115 }, "_enabled": true, "__prefab": { - "__id__": 99 + "__id__": 117 }, "_contentSize": { "__type__": "cc.Size", @@ -2581,11 +3043,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 115 }, "_enabled": true, "__prefab": { - "__id__": 101 + "__id__": 119 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2642,20 +3104,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 96 + "__id__": 114 }, "_children": [], "_active": true, "_components": [ { - "__id__": 104 + "__id__": 122 }, { - "__id__": 106 + "__id__": 124 } ], "_prefab": { - "__id__": 108 + "__id__": 126 }, "_lpos": { "__type__": "cc.Vec3", @@ -2692,11 +3154,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 103 + "__id__": 121 }, "_enabled": true, "__prefab": { - "__id__": 105 + "__id__": 123 }, "_contentSize": { "__type__": "cc.Size", @@ -2720,11 +3182,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 103 + "__id__": 121 }, "_enabled": true, "__prefab": { - "__id__": 107 + "__id__": 125 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2801,11 +3263,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 96 + "__id__": 114 }, "_enabled": true, "__prefab": { - "__id__": 110 + "__id__": 128 }, "_contentSize": { "__type__": "cc.Size", @@ -2846,20 +3308,20 @@ }, "_children": [ { - "__id__": 113 + "__id__": 131 }, { - "__id__": 119 + "__id__": 137 } ], "_active": false, "_components": [ { - "__id__": 125 + "__id__": 143 } ], "_prefab": { - "__id__": 127 + "__id__": 145 }, "_lpos": { "__type__": "cc.Vec3", @@ -2896,20 +3358,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 112 + "__id__": 130 }, "_children": [], "_active": true, "_components": [ { - "__id__": 114 + "__id__": 132 }, { - "__id__": 116 + "__id__": 134 } ], "_prefab": { - "__id__": 118 + "__id__": 136 }, "_lpos": { "__type__": "cc.Vec3", @@ -2946,11 +3408,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 113 + "__id__": 131 }, "_enabled": true, "__prefab": { - "__id__": 115 + "__id__": 133 }, "_contentSize": { "__type__": "cc.Size", @@ -2974,11 +3436,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 113 + "__id__": 131 }, "_enabled": true, "__prefab": { - "__id__": 117 + "__id__": 135 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3035,20 +3497,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 112 + "__id__": 130 }, "_children": [], "_active": true, "_components": [ { - "__id__": 120 + "__id__": 138 }, { - "__id__": 122 + "__id__": 140 } ], "_prefab": { - "__id__": 124 + "__id__": 142 }, "_lpos": { "__type__": "cc.Vec3", @@ -3085,11 +3547,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 119 + "__id__": 137 }, "_enabled": true, "__prefab": { - "__id__": 121 + "__id__": 139 }, "_contentSize": { "__type__": "cc.Size", @@ -3113,11 +3575,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 119 + "__id__": 137 }, "_enabled": true, "__prefab": { - "__id__": 123 + "__id__": 141 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3194,11 +3656,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 112 + "__id__": 130 }, "_enabled": true, "__prefab": { - "__id__": 126 + "__id__": 144 }, "_contentSize": { "__type__": "cc.Size", @@ -3239,17 +3701,17 @@ }, "_children": [ { - "__id__": 129 + "__id__": 147 } ], "_active": false, "_components": [ { - "__id__": 143 + "__id__": 161 } ], "_prefab": { - "__id__": 145 + "__id__": 163 }, "_lpos": { "__type__": "cc.Vec3", @@ -3286,24 +3748,24 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 128 + "__id__": 146 }, "_children": [ { - "__id__": 130 + "__id__": 148 } ], "_active": true, "_components": [ { - "__id__": 138 + "__id__": 156 }, { - "__id__": 140 + "__id__": 158 } ], "_prefab": { - "__id__": 142 + "__id__": 160 }, "_lpos": { "__type__": "cc.Vec3", @@ -3340,23 +3802,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 129 + "__id__": 147 }, "_children": [], "_active": true, "_components": [ { - "__id__": 131 + "__id__": 149 }, { - "__id__": 133 + "__id__": 151 }, { - "__id__": 135 + "__id__": 153 } ], "_prefab": { - "__id__": 137 + "__id__": 155 }, "_lpos": { "__type__": "cc.Vec3", @@ -3393,11 +3855,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 130 + "__id__": 148 }, "_enabled": true, "__prefab": { - "__id__": 132 + "__id__": 150 }, "_contentSize": { "__type__": "cc.Size", @@ -3421,11 +3883,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 130 + "__id__": 148 }, "_enabled": true, "__prefab": { - "__id__": 134 + "__id__": 152 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3492,11 +3954,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 130 + "__id__": 148 }, "_enabled": true, "__prefab": { - "__id__": 136 + "__id__": 154 }, "_alignFlags": 8, "_target": null, @@ -3541,11 +4003,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 129 + "__id__": 147 }, "_enabled": true, "__prefab": { - "__id__": 139 + "__id__": 157 }, "_contentSize": { "__type__": "cc.Size", @@ -3569,11 +4031,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 129 + "__id__": 147 }, "_enabled": true, "__prefab": { - "__id__": 141 + "__id__": 159 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3653,11 +4115,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 128 + "__id__": 146 }, "_enabled": true, "__prefab": { - "__id__": 144 + "__id__": 162 }, "_contentSize": { "__type__": "cc.Size", @@ -3698,7 +4160,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 147 + "__id__": 165 }, "_contentSize": { "__type__": "cc.Size", @@ -3726,7 +4188,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 149 + "__id__": 167 }, "_id": "" }, @@ -3744,7 +4206,7 @@ }, "_enabled": false, "__prefab": { - "__id__": 151 + "__id__": 169 }, "playOnLoad": true, "_clips": [ diff --git a/assets/script/game/skill/Skill.ts b/assets/script/game/skill/Skill.ts index af6e0e0a..c6e2f69c 100644 --- a/assets/script/game/skill/Skill.ts +++ b/assets/script/game/skill/Skill.ts @@ -210,7 +210,7 @@ export class Skill extends ecs.Entity { const sBck = (config.bck ?? 0)+SUp.bck*skill_lv; const sAp =config.ap+SUp.ap*skill_lv; const sHit=config.hit_count+SUp.hit_count*skill_lv + cAttrsComp.puncture - sDataCom.Attrs[Attrs.ap] = Math.floor(cAttrsComp.ap*sAp); + sDataCom.Attrs[Attrs.ap] = Math.floor(cAttrsComp.ap*sAp/100); sDataCom.Attrs[Attrs.critical] = cAttrsComp.critical + sCrt; sDataCom.Attrs[Attrs.freeze_chance] = cAttrsComp.freeze_chance + sFrz; sDataCom.Attrs[Attrs.back_chance] = cAttrsComp.back_chance + sBck;