feat: add empyreum

This commit is contained in:
Anna 2022-07-24 23:56:14 -04:00
parent 1e56e30216
commit 8f7534891c
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ namespace RoleplayersToolbox.Tools.Housing {
LavenderBeds = 340,
Goblet = 341,
Shirogane = 641,
Empyreum = 979,
}
internal static class HousingAreaExtensions {
@ -16,6 +17,7 @@ namespace RoleplayersToolbox.Tools.Housing {
HousingArea.LavenderBeds => "Lavender Beds",
HousingArea.Goblet => "Goblet",
HousingArea.Shirogane => "Shirogane",
HousingArea.Empyreum => "Empyreum",
_ => throw new ArgumentOutOfRangeException(nameof(area), area, null),
};
@ -24,6 +26,7 @@ namespace RoleplayersToolbox.Tools.Housing {
HousingArea.LavenderBeds => 132,
HousingArea.Goblet => 130,
HousingArea.Shirogane => 628,
HousingArea.Empyreum => 418,
_ => throw new ArgumentOutOfRangeException(nameof(area), area, null),
};

View File

@ -27,6 +27,11 @@ namespace RoleplayersToolbox.Tools.Housing {
new Regex(@"\bshirogane\b", RegexOptions.Compiled | RegexOptions.IgnoreCase),
new Regex(@"\bshiro\b", RegexOptions.Compiled | RegexOptions.IgnoreCase),
},
[HousingArea.Empyreum] = new[] {
new Regex(@"\bemp[ye]r[ie]um\b", RegexOptions.Compiled | RegexOptions.IgnoreCase),
new Regex(@"\bempy\b", RegexOptions.Compiled | RegexOptions.IgnoreCase),
new Regex(@"\bemp\b", RegexOptions.Compiled | RegexOptions.IgnoreCase),
},
};
private static readonly JaroWinkler JaroWinkler = new();