Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR受影响的平台
所有平台
PR描述
乔公、吴国太姓名适配;
shaRelated标签重置;
更改【灵怒】【百鸣】写法;
为没有【】的杀的技能描述补充【杀】
扩展适配
1、姓名适配
(1)对于去掉前缀后的武将名翻译,如果他是单姓+名,如“贾诩”、“张春华”,无需作额外改动;
(2)如果您的武将包使用的lib.character[i]仍然是旧写法(数组形式),请在lib.character[i][4]中添加字符串"name:姓氏|名字",没有姓氏/名字的地方置null。如夏侯氏"name:夏侯|null"、貂蝉"name:null|null"。此外多头武将也需要额外补充,每个人名用"-"分隔。如卫温诸葛直"name:卫|温-诸葛|直",黄巾雷使"name:null|null-null|null",以此类推。
(3)如果您使用的是lib.character[i]={sex:"male",group:"qun",hp:3,skills:["jiang"]}这种新写法,只需要额外加一个names:"姓氏|名字",即可,规则同上(不需要"name:"了)。
2、shaRelated标签
默认将技能描述中含“【杀】”的技能视为与杀相关的技能,您可以在技能中添加shaRelated:false标签取消之;
同样地,对于技能描述中没有“【杀】”的技能但您认为此技能与【杀】相关,您可以在技能中添加shaRelated:true标签加入之;
技能描述中只含“杀”的不算,如“杀死”;
当然这是便于大家直接获取此类技能的一个便捷标签,出于各种原因您也可以不加
检查清单
character/rank.js
中添加对应的武将强度评级/在lib.translate
中加入语音文件的文字台词PR描述
中写入详细文档扩展适配
中写入详细文档诱因和背景
中明确链接到该issue.editorconfig
、eslint.config.mjs
和prettier.config.mjs
所规定的代码样式,并且已经通过prettier
格式化过代码