Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion MainCore/Parsers/BuildingLayoutParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ public static async Task<List<QueueBuildingDto>> GetQueueBuilding(IPage page)

foreach (var raw in rawQueueData)
{
string cleanedType = (raw.TypeName ?? "").Replace(" ", "");
// "Hero's Mansion" -> "HerosMansion" to match BuildingEnums
string cleanedType = (raw.TypeName ?? "").Replace(" ", "").Replace("'", "").Replace("’", "");

var levelMatch = LevelExtractor().Match(raw.LevelText ?? "");
int level = levelMatch.Success && int.TryParse(levelMatch.Value, out var l) ? l : 0;
Expand Down