mirror of
https://github.com/waynebian01/Shigure.git
synced 2026-09-03 07:15:24 +08:00
更新模块解析逻辑,添加推荐天赋字段,调整职业文件命名为英文,优化配置文件读取,删除无用的配置文件,修复光环识别相关问题。
This commit is contained in:
@@ -7,10 +7,10 @@ public static class ClassNames
|
||||
[1] = "战士",
|
||||
[2] = "圣骑士",
|
||||
[3] = "猎人",
|
||||
[4] = "盗贼",
|
||||
[4] = "潜行者",
|
||||
[5] = "牧师",
|
||||
[6] = "死亡骑士",
|
||||
[7] = "萨满",
|
||||
[7] = "萨满祭司",
|
||||
[8] = "法师",
|
||||
[9] = "术士",
|
||||
[10] = "武僧",
|
||||
@@ -19,6 +19,24 @@ public static class ClassNames
|
||||
[13] = "唤魔师"
|
||||
};
|
||||
|
||||
/// <summary>config/ 职业文件名(不含扩展名),PascalCase 英文名。</summary>
|
||||
private static readonly Dictionary<int, string> ConfigFileNames = new()
|
||||
{
|
||||
[1] = "Warrior",
|
||||
[2] = "Paladin",
|
||||
[3] = "Hunter",
|
||||
[4] = "Rogue",
|
||||
[5] = "Priest",
|
||||
[6] = "DeathKnight",
|
||||
[7] = "Shaman",
|
||||
[8] = "Mage",
|
||||
[9] = "Warlock",
|
||||
[10] = "Monk",
|
||||
[11] = "Druid",
|
||||
[12] = "DemonHunter",
|
||||
[13] = "Evoker"
|
||||
};
|
||||
|
||||
private static readonly Dictionary<(int ClassId, int SpecId), string> Specs = new()
|
||||
{
|
||||
[(1, 1)] = "武器",
|
||||
@@ -27,26 +45,26 @@ public static class ClassNames
|
||||
[(2, 1)] = "神圣",
|
||||
[(2, 2)] = "防护",
|
||||
[(2, 3)] = "惩戒",
|
||||
[(3, 1)] = "兽王",
|
||||
[(3, 1)] = "野兽控制",
|
||||
[(3, 2)] = "射击",
|
||||
[(3, 3)] = "生存",
|
||||
[(4, 1)] = "刺杀",
|
||||
[(4, 1)] = "奇袭",
|
||||
[(4, 2)] = "狂徒",
|
||||
[(4, 3)] = "敏锐",
|
||||
[(5, 1)] = "戒律",
|
||||
[(5, 2)] = "神牧",
|
||||
[(5, 2)] = "神圣",
|
||||
[(5, 3)] = "暗影",
|
||||
[(6, 1)] = "鲜血",
|
||||
[(6, 2)] = "冰霜",
|
||||
[(6, 3)] = "邪恶",
|
||||
[(7, 1)] = "元素",
|
||||
[(7, 2)] = "增强",
|
||||
[(7, 3)] = "奶萨",
|
||||
[(7, 3)] = "恢复",
|
||||
[(8, 1)] = "奥术",
|
||||
[(8, 2)] = "火焰",
|
||||
[(8, 3)] = "冰霜",
|
||||
[(9, 1)] = "痛苦",
|
||||
[(9, 2)] = "恶魔",
|
||||
[(9, 2)] = "恶魔学识",
|
||||
[(9, 3)] = "毁灭",
|
||||
[(10, 1)] = "酒仙",
|
||||
[(10, 2)] = "织雾",
|
||||
@@ -54,7 +72,7 @@ public static class ClassNames
|
||||
[(11, 1)] = "平衡",
|
||||
[(11, 2)] = "野性",
|
||||
[(11, 3)] = "守护",
|
||||
[(11, 4)] = "奶德",
|
||||
[(11, 4)] = "恢复",
|
||||
[(12, 1)] = "浩劫",
|
||||
[(12, 2)] = "复仇",
|
||||
[(12, 3)] = "噬灭",
|
||||
@@ -176,6 +194,9 @@ public static class ClassNames
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public static string GetConfigFileName(int classId)
|
||||
=> ConfigFileNames.GetValueOrDefault(classId, classId.ToString());
|
||||
|
||||
public static IReadOnlyList<(int Id, string Name)> GetSpecs(int classId)
|
||||
{
|
||||
return Specs
|
||||
|
||||
@@ -11,6 +11,7 @@ public sealed class ModuleDefinition
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = "新模块";
|
||||
public string Author { get; set; } = string.Empty;
|
||||
public string RecommendedTalent { get; set; } = string.Empty;
|
||||
// 保存时写入当时的 Shigure 版本(AppInfo.Version)。
|
||||
public string Version { get; set; } = string.Empty;
|
||||
public bool Enabled { get; set; } = true;
|
||||
@@ -30,6 +31,7 @@ public sealed class ModuleDefinition
|
||||
Id = Id,
|
||||
Name = Name,
|
||||
Author = Author,
|
||||
RecommendedTalent = RecommendedTalent,
|
||||
Version = Version,
|
||||
Enabled = Enabled,
|
||||
FilePath = FilePath,
|
||||
|
||||
Reference in New Issue
Block a user