feat(skill): 添加新技能资源并修复伤害计算问题

添加新的技能动画、预制体和字体资源,用于支持新技能效果。
修复技能伤害计算未取整的问题,确保伤害值为整数。
更新技能buff提示UI的字体和布局,提升显示效果。
This commit is contained in:
walkpan
2026-03-24 09:23:41 +08:00
parent 3fc94dbc3f
commit 9a68ef957d
14 changed files with 2154 additions and 2343 deletions

View File

@@ -0,0 +1,22 @@
info face="ThaleahFat" size=72 bold=0 italic=0 charset="32,43,45-46,48-57,75,77,107,109" unicode=1 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=1,1 outline=0
common lineHeight=72 base=48 scaleW=151 scaleH=151 pages=1 packed=0 alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4
page id=0 file="FAT.png"
chars count=18
char id=32 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=23 page=0 chnl=15
char id=43 x=114 y=38 width=28 height=28 xoffset=-2 yoffset=19 xadvance=27 page=0 chnl=15
char id=45 x=114 y=105 width=23 height=14 xoffset=-2 yoffset=28 xadvance=23 page=0 chnl=15
char id=46 x=114 y=120 width=14 height=14 xoffset=-2 yoffset=37 xadvance=14 page=0 chnl=15
char id=48 x=0 y=0 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=49 x=114 y=67 width=23 height=37 xoffset=-2 yoffset=14 xadvance=23 page=0 chnl=15
char id=50 x=0 y=38 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=51 x=0 y=76 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=52 x=0 y=114 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=53 x=38 y=0 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=54 x=38 y=38 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=55 x=38 y=76 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=56 x=38 y=114 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=57 x=76 y=0 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=75 x=76 y=76 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=77 x=76 y=114 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=107 x=76 y=38 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15
char id=109 x=114 y=0 width=37 height=37 xoffset=-2 yoffset=14 xadvance=36 page=0 chnl=15

View File

@@ -0,0 +1,220 @@
{
"ver": "1.0.6",
"importer": "bitmap-font",
"imported": true,
"uuid": "eca7fc51-87d0-4bb0-89e1-aa9c39411bc6",
"files": [
".json"
],
"subMetas": {},
"userData": {
"_fntConfig": {
"commonHeight": 72,
"fontSize": 72,
"atlasName": "FAT.png",
"fontDefDictionary": {
"32": {
"rect": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 23
},
"43": {
"rect": {
"x": 114,
"y": 38,
"width": 28,
"height": 28
},
"xOffset": -2,
"yOffset": 19,
"xAdvance": 27
},
"45": {
"rect": {
"x": 114,
"y": 105,
"width": 23,
"height": 14
},
"xOffset": -2,
"yOffset": 28,
"xAdvance": 23
},
"46": {
"rect": {
"x": 114,
"y": 120,
"width": 14,
"height": 14
},
"xOffset": -2,
"yOffset": 37,
"xAdvance": 14
},
"48": {
"rect": {
"x": 0,
"y": 0,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"49": {
"rect": {
"x": 114,
"y": 67,
"width": 23,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 23
},
"50": {
"rect": {
"x": 0,
"y": 38,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"51": {
"rect": {
"x": 0,
"y": 76,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"52": {
"rect": {
"x": 0,
"y": 114,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"53": {
"rect": {
"x": 38,
"y": 0,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"54": {
"rect": {
"x": 38,
"y": 38,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"55": {
"rect": {
"x": 38,
"y": 76,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"56": {
"rect": {
"x": 38,
"y": 114,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"57": {
"rect": {
"x": 76,
"y": 0,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"75": {
"rect": {
"x": 76,
"y": 76,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"77": {
"rect": {
"x": 76,
"y": 114,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"107": {
"rect": {
"x": 76,
"y": 38,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
},
"109": {
"rect": {
"x": 114,
"y": 0,
"width": 37,
"height": 37
},
"xOffset": -2,
"yOffset": 14,
"xAdvance": 36
}
},
"kerningDict": {}
},
"fontSize": 72,
"textureUuid": "a8feaaf5-3473-43d0-bd79-529b9b5bede8"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a8feaaf5-3473-43d0-bd79-529b9b5bede8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a8feaaf5-3473-43d0-bd79-529b9b5bede8@6c48a",
"displayName": "FAT",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a8feaaf5-3473-43d0-bd79-529b9b5bede8",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "a8feaaf5-3473-43d0-bd79-529b9b5bede8@f9941",
"displayName": "FAT",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 149,
"height": 149,
"rawWidth": 151,
"rawHeight": 151,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-74.5,
-74.5,
0,
74.5,
-74.5,
0,
-74.5,
74.5,
0,
74.5,
74.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
1,
150,
150,
150,
1,
1,
150,
1
],
"nuv": [
0.006622516556291391,
0.006622516556291391,
0.9933774834437086,
0.006622516556291391,
0.006622516556291391,
0.9933774834437086,
0.9933774834437086,
0.9933774834437086
],
"minPos": [
-74.5,
-74.5,
0
],
"maxPos": [
74.5,
74.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a8feaaf5-3473-43d0-bd79-529b9b5bede8@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a8feaaf5-3473-43d0-bd79-529b9b5bede8@6c48a"
}
}