From a111340cd833dda27087006a2dc1ecc77ccdba7d Mon Sep 17 00:00:00 2001 From: Tanimodori Date: Sat, 24 Feb 2024 03:18:50 +0800 Subject: [PATCH] feat: skill translations --- packages/renderer/src/locales/en_US.json | 229 +++++++ packages/renderer/src/locales/zh_CN.json | 627 ++++++++++++++++++ packages/renderer/src/utils/enums.ts | 23 +- .../views/stats/StatsDetailActionTable.vue | 3 +- 4 files changed, 878 insertions(+), 4 deletions(-) diff --git a/packages/renderer/src/locales/en_US.json b/packages/renderer/src/locales/en_US.json index c518bca..480ceb5 100644 --- a/packages/renderer/src/locales/en_US.json +++ b/packages/renderer/src/locales/en_US.json @@ -106,6 +106,235 @@ "d16cfbde": "Vaseraga", "8056abcd": "Id" }, + "actions": { + "common": { + "-1": "Link Attack", + "-2": "SBA", + "-3": "Supplementary Damage", + "-256": "DoT", + "5000": "Ether Round", + "5010": "Charged Shot" + }, + "34d4fd8f": { + "_comment": "Katalina", + "100": "X", + "101": "(X) X", + "102": "(XX) X", + "103": "(XXX) X-X Rapid Input", + "104": "(XXX X~X) X", + "110": "(X) Y", + "120": "(XX) Y", + "130": "(XXX) Y", + "140": "(XXXX) Y", + "200": "Y", + "201": "(Y) Y", + "202": "(YY) Y", + "245": "(Ares) Y1", + "250": "(Ares) Y2", + "252": "(Ares) Y3", + "253": "(Ares) Y4", + "254": "(Ares) Y5", + "255": "(Ares) Y6", + "259": "(Ares) Y7", + "300": "(jump) X1", + "301": "(jump) X2", + "302": "(jump) X3", + "303": "(jump)(XXX) Y", + "400": "Launch", + "410": "(jump) Y", + "1100": "Enchanted Lands", + "1200": "Winter's Rain", + "1400": "Sacred Winds", + "1500": "Azure Sword", + "1700": "Frost Blade" + }, + "f96a90c2": { + "_comment": "Vane", + "100": "X", + "101": "(X) X", + "102": "(XX) X", + "103": "(XXX) Y", + "104": "Combo Finisher", + "110": "(X) Y", + "111": "(XY) Y", + "120": "(XX) Y", + "121": "(XXY) Y", + "200": "Y1", + "201": "Y2", + "202": "Y3", + "203": "Y4", + "204": "Y5", + "300": "(jump) X1", + "301": "(jump) X2", + "302": "(jump) X3", + "400": "Launch", + "410": "(jump) Y", + "1100": "Rift Divider", + "1300": "Arm Destruction", + "1400": "Heroic Beat", + "1600": "Energy Destruction" + }, + "c3155079": { + "_comment": "Zeta", + "100": "X", + "101": "(X) X", + "102": "(XX) X", + "110": "(XXX) X", + "111": "Dive", + "210": "Loop Combo", + "211": "Loop Finisher", + "212": "Arvess Hammer", + "213": "Rhapsody", + "300": "(jump) X", + "301": "(jump) X2", + "302": "(jump) X3", + "303": "(jump) X4", + "400": "Launch", + "410": "Aerial Barrage", + "1000": "Infinite Wonders", + "1100": "Rain of Fury", + "1200": "Spear of Arvess", + "1400": "Wingclipper", + "1610": "Thousand Flames", + "1702": "Realm's Majesty 1", + "1703": "Realm's Majesty 2" + }, + "7b5934ad": { + "_comment": "Io", + "100": "X", + "110": "(X) X", + "120": "(XX) X", + "210": "Stargaze", + "211": "Stargaze II", + "212": "Stargaze III", + "213": "Stargaze IV", + "214": "Stargaze V", + "300": "(jump) X", + "301": "(jump) X2", + "302": "(jump) X3", + "400": "Launch", + "410": "Aerial Barrage", + "2000": "Freeze", + "3000": "Fire", + "4000": "Flowery Seven", + "7200": "Gravity Well w/ 0 orbs", + "7201": "Gravity Well w/ 1 orb", + "7202": "Gravity Well w/ 2 orbs", + "7203": "Gravity Well w/ 3 orbs", + "8200": "Lightning w/ 0 orbs", + "8201": "Lightning w/ 1 orb", + "8202": "Lightning w/ 2 orbs", + "8203": "Lightning w/ 3 orbs" + }, + "601aa977": { + "_comment": "Narmaya", + "1": "Kyokasuigetsu", + "2": "Setsuna", + "3": "Apex of Nothingness", + "4": "Crescent Moon", + "5": "(Freeflutter) Transient", + "10": "(Apex of Nothingness) Counter1", + "11": "(Apex of Nothingness) Counter2", + "100": "(Freeflutter) X1", + "101": "(Freeflutter) X2", + "102": "(Freeflutter) X3", + "110": "(Freeflutter) X4", + "111": "(Freeflutter) X5", + "112": "(Freeflutter) X6", + "113": "(Freeflutter) X7", + "114": "(Freeflutter) X8", + "120": "(Freeflutter) Finisher", + "200": "(Freeflutter) Y", + "300": "(Freeflutter Jump) X1", + "310": "(Freeflutter Jump) X2", + "320": "(Freeflutter Jump) X3", + "400": "(Freeflutter) Launch", + "410": "(Freeflutter Jump) Y", + "411": "(Freeflutter Jump) Finisher", + "1000": "(Freeflutter) Dawnfly Finisher", + "1100": "(Dawnfly) X1", + "1103": "(Dawnfly) X2", + "1005": "(Dawnfly) Transient", + "1106": "(Dawnfly) X3", + "1108": "(Dawnfly) X4", + "1150": "(Dawnfly) Charge", + "1109": "(Dawnfly) Finisher", + "1200": "(Dawnfly) Y", + "1300": "(Dawnfly Jump) X1", + "1310": "(Dawnfly Jump) X2", + "1320": "(Dawnfly Jump) X3", + "1400": "(Dawnfly) Launch", + "1410": "(Dawnfly Jump) Y", + "1411": "(Dawnfly Jump) Finisher", + "2000": "(Dawnfly) Freeflutter Finisher" + }, + "443d46bb": { + "_comment": "Eugen", + "100": "X", + "105": "(aim) X", + "110": "(melee) X1", + "111": "(melee) X2", + "112": "(melee) X3", + "210": "Y", + "300": "(jump) X1", + "301": "(jump) X2", + "302": "(jump) X3", + "400": "Launch", + "410": "(jump) Y", + "0": "Grenade Attach", + "1": "Sumrak", + "2": "Detonator", + "3": "Intercept", + "4": "Armor-Piercing Round", + "5": "Venom Grenade", + "6": "Paralyzing Bullet", + "8": "Disruptor", + "4294967295": "GrenadeOverkill", + "215": "GrenadeOverkill2" + }, + "2b4aa114": { + "_comment": "Charlotta", + "100": "X", + "101": "(X) X", + "102": "(XX) X", + "103": "(XXX) X", + "104": "Noble Stance X", + "105": "Noble Stance (X) X", + "106": "Noble Stance (XX) X", + "107": "Noble Stance (XXX) X", + "110": "Combo Finisher", + "120": "Holy Ladder Power Finisher", + "130": "Power Finisher", + "200": "Noble Strategy", + "201": "Power Strike X", + "202": "Power Strike Y", + "300": "(jump) X1", + "301": "(jump) X2", + "302": "(jump) X3", + "1100": "Shining Onslaught", + "1200": "Rising Cut", + "1600": "Sword of Lumiel", + "1610": "Sword of Lumiel Finisher", + "1700": "Holy Ladder" + }, + "f8d73d33": { + "_comment": "Rackam", + "100": "X", + "105": "X (perfect)", + "200": "Bull's Eye Blast", + "205": "Bull's Eye Blast V", + "300": "(jump) X", + "301": "(jump) X2", + "302": "(jump) X3", + "400": "Launch", + "410": "Aerial Barrage", + "1": "Spitfire", + "2": "Bullet Hail", + "5": "Coffinmaker", + "7": "Slag Shot", + "8": "Collateral Damage" + } + }, "stats": { "target": "target", "action": "Action" diff --git a/packages/renderer/src/locales/zh_CN.json b/packages/renderer/src/locales/zh_CN.json index 8f7103e..9e0f37a 100644 --- a/packages/renderer/src/locales/zh_CN.json +++ b/packages/renderer/src/locales/zh_CN.json @@ -106,6 +106,633 @@ "d16cfbde": "巴萨拉卡", "8056abcd": "伊德" }, + "actions": { + "common": { + "-1": "Link", + "-2": "奥义", + "-3": "追击", + "dot": "持续伤害", + "5000": "标准弹", + "5001": "蓄能弹" + }, + "26a4848a": { + "_comment": "古兰", + "100": "X", + "110": "(X)X", + "120": "(XX)X", + "121": "(XY)X", + "130": "(XXX)X", + "131": "(XXY)X", + "200": "Y", + "201": "收招Y", + "210": "(X)Y", + "211": "(XY)Y", + "220": "(XX)Y", + "221": "(XXY)Y", + "230": "(XXX)Y", + "240": "(XXXX)Y", + "300": "空中连击1", + "310": "空中连击2", + "320": "空中连击3", + "330": "空中连击4", + "400": "击飞攻击", + "410": "落下攻击", + "1001": "(一阶)过载爆发", + "1002": "(二阶)过载爆发", + "1003": "(三阶)过载爆发", + "1004": "(四阶)过载爆发", + "1201": "(一阶)无尽连斩", + "1202": "(二阶)无尽连斩", + "1203": "(三阶)无尽连斩", + "1204": "(四阶)无尽连斩", + "1301": "(一阶)箭雨", + "1302": "(二阶)箭雨", + "1303": "(三阶)箭雨", + "1304": "(四阶)箭雨", + "1501": "(一阶)护甲破坏", + "1502": "(二阶)护甲破坏", + "1503": "(三阶)护甲破坏", + "1504": "(四阶)护甲破坏", + "1601": "惨雾", + "2001": "(一阶)圣迹", + "2002": "(二阶)圣迹", + "2003": "(三阶)圣迹", + "2004": "(四阶)圣迹", + "2101": "缓沼", + "2410": "驱散" + }, + "9498420d": { + "_comment": "姬塔", + "100": "X", + "110": "(X)X", + "120": "(XX)X", + "121": "(XY)X", + "130": "(XXX)X", + "131": "(XXY)X", + "200": "Y", + "201": "收招Y", + "210": "(X)Y", + "211": "(XY)Y", + "220": "(XX)Y", + "221": "(XXY)Y", + "230": "(XXX)Y", + "240": "(XXXX)Y", + "300": "空中连击1", + "310": "空中连击2", + "320": "空中连击3", + "330": "空中连击4", + "400": "上挑攻击", + "410": "下落攻击", + "1001": "(一阶)过载爆发", + "1002": "(二阶)过载爆发", + "1003": "(三阶)过载爆发", + "1004": "(四阶)过载爆发", + "1201": "(一阶)无尽连斩", + "1202": "(二阶)无尽连斩", + "1203": "(三阶)无尽连斩", + "1204": "(四阶)无尽连斩", + "1301": "(一阶)箭雨", + "1302": "(二阶)箭雨", + "1303": "(三阶)箭雨", + "1304": "(四阶)箭雨", + "1501": "(一阶)护甲破坏", + "1502": "(二阶)护甲破坏", + "1503": "(三阶)护甲破坏", + "1504": "(四阶)护甲破坏", + "1601": "惨雾", + "2001": "(一阶)圣迹", + "2002": "(二阶)圣迹", + "2003": "(三阶)圣迹", + "2004": "(四阶)圣迹", + "2101": "缓沼", + "2410": "驱散" + }, + "a9d6569e": { + "_comment": "萝赛塔", + "2": "群花之主", + "4": "螺旋玫瑰", + "6": "落花无情", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "X4", + "200": "玫瑰攻击/上挑攻击", + "210": "(X1)Y 防御UP", + "220": "(X2)Y 回复", + "230": "(X3)Y 攻击UP", + "240": "(X4)Y 追击", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "410": "下落攻击" + }, + "443d46bb": { + "_comment": "欧根", + "100": "X", + "105": "(瞄准)X", + "_comment_105": "秒放和蓄力使用相同动作ID", + "110": "(近身)X1", + "111": "(近身)X2", + "112": "(近身)X3", + "210": "Y 手榴弹(+)", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击(手榴弹)", + "0": "“流弹”", + "_comment_0": "瞄准开枪,手榴弹,爆裂射击一蓄二蓄三蓄都会附加一个0伤害的0", + "1": "暮光", + "2": "爆裂射击", + "3": "战术拦截", + "4": "穿甲弹", + "5": "剧毒榴弹", + "6": "麻痹弹", + "8": "驱散射击", + "4294967295": "手雷过量伤害#1", + "_comment_4294967295": "爆裂射击二蓄三蓄也有此ID", + "215": "手雷过量伤害#2" + }, + "f8d73d33": { + "_comment": "拉卡姆", + "1": "烈火射击", + "2": "枪林弹雨", + "5": "送葬火舌", + "7": "霰弹扫射", + "8": "战地余波", + "100": "X", + "105": "X(精准)", + "200": "Y(非满蓄)", + "205": "Y(满蓄)", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击" + }, + "7b5934ad": { + "_comment": "伊欧", + "100": "X1", + "110": "X2", + "120": "X3", + "210": "Y", + "211": "一蓄", + "212": "二蓄", + "213": "三蓄", + "214": "四蓄", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击", + "2000": "寒冰", + "3000": "火焰", + "4000": "花耀七闪", + "7200": "魔洞(0旋涡)", + "7201": "魔洞(1旋涡)", + "7202": "魔洞(2旋涡)", + "7203": "魔洞(3旋涡)", + "8200": "雷霆(0旋涡)", + "8201": "雷霆(1旋涡)", + "8202": "雷霆(2旋涡)", + "8203": "雷霆(3旋涡)" + }, + "2b4aa114": { + "_comment": "夏洛特", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "X4", + "104": "循环X#104", + "105": "循环X#105", + "106": "循环X#106", + "107": "循环X#107", + "110": "收招Y", + "120": "收招YX", + "130": "收招YY", + "200": "Y", + "201": "YX", + "202": "YY", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击", + "1100": "耀眼猛攻", + "1200": "跳跃反击", + "1600": "卢米埃之剑(连斩)", + "1610": "卢米埃之剑(收招)", + "1700": "神圣阶梯" + }, + "63a7c3f0": { + "_comment": "兰斯洛特", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "X4", + "104": "循环X#104", + "105": "循环X#105", + "106": "循环X#106", + "107": "循环X#107", + "108": "循环X#108", + "109": "循环X#109", + "150": "收招Y", + "200": "Y", + "300": "空中连击1", + "301": "空中连击1", + "302": "空中连击1", + "400": "上挑攻击", + "410": "下落攻击", + "1000": "剑刃冲击", + "1100": "寒冰魔爪", + "1200": "冰雪飞刃", + "1400": "乱气流", + "1500": "南十字星" + }, + "f96a90c2": { + "_comment": "巴恩", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "(X3)Y", + "104": "收招Y", + "110": "(X)Y", + "111": "(XY)Y", + "120": "(XX)Y", + "121": "(XXY)Y", + "200": "Y1", + "201": "Y2", + "202": "Y3", + "203": "Y4", + "204": "Y5", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击", + "1100": "裂空连斩", + "1300": "巨力重击", + "1400": "英勇打击", + "1600": "活力灭击" + }, + "28ac1108": { + "_comment": "珀西瓦尔", + "1": "烈火突袭", + "3": "未知之魂", + "4": "撕裂", + "6": "力量", + "7": "王之威势", + "8": "赤焰漩涡", + "100": "X1", + "110": "X2", + "120": "X3", + "130": "X4", + "200": "Y", + "201": "(X)Y", + "300": "空中连击1", + "310": "空中连击2", + "320": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击" + }, + "601aa977": { + "_comment": "娜露梅", + "1": "镜花水月", + "2": "刹那", + "3": "至人无己(未受攻击)", + "4": "纤月", + "5": "蓝刀 泡沫梦幻", + "10": "至人无己(反击一段)", + "11": "至人无己(反击二段)", + "100": "蓝刀 X1", + "101": "蓝刀 X2", + "102": "蓝刀 X3", + "110": "蓝刀 X4", + "111": "蓝刀 X5", + "112": "蓝刀 X6", + "113": "蓝刀 X7", + "114": "蓝刀 X8", + "120": "蓝刀 X最终段", + "200": "蓝刀 Y切刀", + "300": "蓝刀 空中连击1", + "310": "蓝刀 空中连击2", + "320": "蓝刀 空中连击3", + "400": "蓝刀 上挑攻击", + "410": "蓝刀 下落攻击", + "411": "蓝刀 空中收招", + "1000": "蓝刀 收招切红刀", + "1100": "红刀 X1", + "1103": "红刀 X2", + "1005": "红刀 泡沫梦幻", + "1106": "红刀 X3", + "1108": "红刀 X4", + "1150": "红刀 X蓄力", + "1109": "红刀 X最终段", + "1200": "红刀 Y切刀", + "1300": "红刀 空中连击1", + "1310": "红刀 空中连击2", + "1320": "红刀 空中连击3", + "1400": "红刀 上挑攻击", + "1410": "红刀 下落攻击", + "1411": "红刀 空中收招", + "2000": "红刀 收招切蓝刀" + }, + "6fdd6932": { + "_comment": "卡莉奥丝特罗", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "X4", + "110": "刺(X)Y", + "111": "刺(XY)Y", + "120": "剪(X2)Y", + "121": "剪(X2Y)Y", + "130": "锯(X3)Y", + "131": "锯(X3Y)Y", + "104": "锤(X4)Y", + "105": "锤(X4Y)Y", + "200": "Y岩塌", + "210": "(X)Y3", + "220": "LINK衔接Y", + "230": "技能衔接Y", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击", + "1000": "拟态人偶", + "1110": "盘蛇之阵", + "1410": "毁散", + "1700": "起源之城", + "1800": "蛇形列车" + }, + "94e2514e": { + "_comment": "齐格飞", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "X4", + "104": "X5", + "111": "(X)精准X", + "112": "(X 精准X)精准X", + "113": "(X 精准X x2)精准X", + "122": "(X 精准X)X", + "123": "(X 精准X x2)X", + "124": "(X 精准X x3)X", + "150": "(X 精准X x3)精准X", + "162": "(XX)精准X", + "163": "(XXX)精准X", + "164": "(XXXX)精准X", + "170": "精准复合技 登龙斩", + "200": "Y", + "201": "(X 精准X)Y", + "202": "(X 精准X x2)Y", + "203": "(X 精准X x3)Y", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "311": "空中精准X1", + "312": "空中精准X2", + "400": "上挑攻击", + "410": "下落攻击", + "1000": "无畏之刃", + "1100": "昨日之影", + "_comment_1100": "未受攻击和反击使用相同动作ID", + "1300": "蹑龙挪步", + "1600": "湮灭斩" + }, + "fba6615d": { + "_comment": "菲莉", + "65": "宠物攻击", + "_comment_65": "未复现,copy繁中内容", + "100": "X", + "101": "蓄力X", + "_comment_101": "蓄力X和收招使用相同动作ID", + "102": "(XX~X) X", + "_comment_102": "第三次蓄力X後接X 同時爾後寵物也共用本詞條", + "110": "(X)X", + "111": "(X) 蓄力X", + "112": "(~X) X", + "_comment_112": "第一次蓄力X後接X 同時爾後寵物也共用本詞條", + "120": "(XX)X", + "121": "(XX) 蓄力X", + "_comment_121": "第二次蓄力X", + "122": "(X~X) X", + "_comment_122": "第二次蓄力X後接X 同時爾後寵物也共用本詞條", + "200": "Y", + "_comment_200": "(有无宠物,秒放、按住ID皆相同)", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击", + "1000": "幻灵之鞭", + "1100": "蓝灵束缚", + "1210": "吉吉,拖住对手!", + "1400": "幽影幻步", + "1500": "幻灵惩戒", + "1700": "幻灵守护", + "4294967295": "幻灵惩戒闪避取消后摇 接幻灵之鞭闪避取消后摇 随后宝宝造成的伤害" + }, + "8056abcd": { + "_comment": "伊德", + "0": "末日形态", + "1": "圣迹再临", + "2": "无缚之斩", + "3": "赎罪", + "4": "神威一体", + "5": "天谴", + "6": "神愿之力", + "7": "永无止境", + "8": "乐园之噬", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "X4", + "104": "龙人 X5", + "105": "龙人 X6", + "106": "龙人 X7", + "107": "龙人 X8", + "108": "龙人 X9", + "109": "龙人 X10", + "110": "Y收招", + "120": "龙人 X收招/神威 Y2", + "200": "Y", + "_comment_200": "蓄力,秒放,龙人化使用相同动作ID", + "204": "X4后Y连斩", + "220": "龙人 Y收招", + "225": "龙人化二段伤害", + "_comment_225": "未确认,陨石砸不到木桩", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击", + "503": "神威 Y3", + "505": "神威 Y7", + "506": "神威 Y4/Y10", + "507": "神威 Y5", + "508": "神威 Y6", + "509": "神威 Y8", + "510": "神威 Y收招", + "900": "龙人化伤害", + "_comment_900": "技能变身无此伤害", + "1000": "龙人 左能力", + "1100": "龙人 上能力", + "1200": "龙人 右能力", + "1300": "龙人 下能力" + }, + "c3155079": { + "_comment": "塞达", + "100": "X1", + "101": "X2", + "102": "X3", + "110": "X4", + "111": "跃空 下戳", + "210": "跃空 回弹", + "211": "跃空 收招", + "212": "跃空 阿尔贝斯螺旋枪", + "213": "Y 狂想曲", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "303": "空中连击4", + "400": "上挑攻击", + "410": "下落攻击", + "1000": "无尽奇观", + "1100": "愤怒之雨", + "1200": "阿尔贝斯之枪", + "1400": "长枪回旋", + "1610": "千炎", + "1700": "威光领域(未受攻击)", + "1702": "威光领域(反击一段)", + "1703": "威光领域(反击二段)" + }, + "bcc238de": { + "_comment": "冈达葛萨", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "X4", + "104": "X5", + "111": "精准X2", + "112": "精准X3", + "113": "精准X4", + "114": "精准X5", + "200": "Y", + "_comment_200": "所有直冲拳使用相同动作ID", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "310": "空中精准X1", + "311": "空中精准X2", + "400": "上挑攻击", + "410": "下落攻击", + "1000": "罗汉天降击", + "1100": "印可掌", + "_comment_1100": "未受攻击和反击使用相同动作ID", + "1200": "激震铁山靠", + "1500": "力足舞" + }, + "c97f3365": { + "_comment": "尤达拉哈", + "1": "十起", + "2": "空空漠漠", + "5": "以牙还牙", + "7": "闪空", + "8": "惊天动地", + "100": "X1", + "110": "X2", + "111": "(一循)X2", + "_comment_111": "此循环指剑戟残心层数,非幕数", + "120": "X3", + "121": "(二循)X3", + "130": "X4", + "131": "(三循)X4", + "140": "X5", + "141": "(四循)X5", + "150": "Y收招", + "151": "(一循)Y收招", + "152": "(二循)Y收招", + "153": "(三循)Y收招", + "154": "(四循)Y收招", + "201": "Y", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "303": "空中连击4", + "400": "上挑攻击", + "410": "下落攻击" + }, + "34d4fd8f": { + "_comment": "卡塔莉娜", + "1": "附魔剑击", + "2": "寒冬冰雨", + "4": "神圣凛风", + "5": "苍天之剑", + "7": "非凡旅程", + "100": "X1", + "101": "X2", + "102": "X3", + "103": "(X3)X~X连刺", + "104": "(X3 X~X)X", + "_comment_104": "连刺后第一刀", + "110": "(X1)Y", + "120": "(X2)Y", + "130": "(X3)Y", + "140": "(X4)Y", + "200": "Y1", + "201": "Y2", + "202": "Y3", + "242": "(阿瑞斯) Y1#1", + "_comment_242": "连刺召唤的阿瑞斯第一刀", + "243": "(阿瑞斯) Y1#2", + "_comment_243": "技能召唤的阿瑞斯第一刀", + "244": "(阿瑞斯) Y1#3", + "250": "(阿瑞斯) Y2", + "252": "(阿瑞斯) Y3", + "253": "(阿瑞斯) Y4", + "254": "(阿瑞斯) Y5", + "255": "(阿瑞斯) Y6", + "259": "(阿瑞斯) Y7", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "303": "空中收招", + "400": "上挑攻击", + "410": "下落攻击" + }, + "d16cfbde": { + "_comment": "巴萨拉卡", + "100": "X", + "110": "(X)X", + "112": "(X)Y(蓄力)", + "113": "(X)Y", + "114": "(XY)X", + "120": "(XX)X", + "121": "(XX)Y", + "122": "(XXY)X", + "130": "(XXX)Y", + "200": "Y", + "251": "(XXY)Y", + "252": "(XXXY)Y", + "280": "(XY)Y(蓄力)", + "281": "(XY)Y", + "300": "空中连击1", + "301": "空中连击2", + "302": "空中连击3", + "400": "上挑攻击", + "410": "下落攻击", + "1000": "恐怖军势", + "260": "(恐怖军势)Y", + "1100": "暴虐暗影", + "1200": "巨镰古洛诺斯", + "270": "(巨镰古洛诺斯)Y", + "1500": "灭顶一击", + "1600": "暗蚀", + "1700": "地狱之怒" + } + }, "stats": { "target": "目标", "action": "技能" diff --git a/packages/renderer/src/utils/enums.ts b/packages/renderer/src/utils/enums.ts index 1b9daab..a1d57a6 100644 --- a/packages/renderer/src/utils/enums.ts +++ b/packages/renderer/src/utils/enums.ts @@ -1,10 +1,27 @@ import i18n from '@/locales'; import en_US from '@/locales/en_US.json'; +export type ActorKey = keyof typeof en_US.actors; + +export const actors = Object.keys(en_US.actors) as ActorKey[]; + +export type CommonActionKeys = keyof typeof en_US.actions.common; + +export const commonActionKeys = Object.keys(en_US.actions.common) as CommonActionKeys[]; + export const getActorName = (id: number) => { return i18n.global.t('actors.' + id.toString(16)); }; -export type ActorKey = keyof typeof en_US.actors; - -export const actors = Object.keys(en_US.actors) as ActorKey[]; +export const getActionName = (playerId: number, actionId: number) => { + if (commonActionKeys.includes(actionId.toString() as CommonActionKeys)) { + return i18n.global.t(`actions.common.${actionId}`); + } else { + const key = `actions.${playerId.toString(16)}.${actionId}`; + if (i18n.global.te(key)) { + return i18n.global.t(key); + } else { + return actionId.toString(); + } + } +}; diff --git a/packages/renderer/src/views/stats/StatsDetailActionTable.vue b/packages/renderer/src/views/stats/StatsDetailActionTable.vue index 7fceabe..a3af7c9 100644 --- a/packages/renderer/src/views/stats/StatsDetailActionTable.vue +++ b/packages/renderer/src/views/stats/StatsDetailActionTable.vue @@ -4,6 +4,7 @@