Add requested changes & minor bug fixes
This commit is contained in:
@@ -299,7 +299,7 @@ namespace Filtration.Parser.Services
|
||||
}
|
||||
case "Icon":
|
||||
{
|
||||
// Only ever use the last PlayAlertSound item encountered as multiples aren't valid.
|
||||
// Only ever use the last Icon item encountered as multiples aren't valid.
|
||||
RemoveExistingBlockItemsOfType<IconBlockItem>(block);
|
||||
|
||||
var match = Regex.Match(trimmedLine, @"\S+\s+(\S+)");
|
||||
@@ -593,10 +593,11 @@ namespace Filtration.Parser.Services
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: Disabled for the time being. A better solution is needed.
|
||||
// Replace 'Maelström' to prevent encoding problems in other editors
|
||||
outputString.Replace("Maelström Staff", "Maelstr");
|
||||
outputString.Replace("Maelström of Chaos", "Maelstr");
|
||||
outputString.Replace("Maelström", "Maelstr");
|
||||
//outputString.Replace("Maelström Staff", "Maelstr");
|
||||
//outputString.Replace("Maelström of Chaos", "Maelstr");
|
||||
//outputString.Replace("Maelström", "Maelstr");
|
||||
|
||||
return outputString;
|
||||
}
|
||||
|
||||
@@ -245,6 +245,12 @@ namespace Filtration.Parser.Services
|
||||
// ReSharper disable once LoopCanBeConvertedToQuery
|
||||
foreach (var block in script.ItemFilterBlocks)
|
||||
{
|
||||
// Do not save temporary block until the new feature is fully implemented
|
||||
if(block is ObjectModel.BlockItemTypes.IconBlockItem)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
outputString += _blockTranslator.TranslateItemFilterBlockBaseToString(block) + Environment.NewLine;
|
||||
|
||||
if (Settings.Default.ExtraLineBetweenBlocks)
|
||||
|
||||
Reference in New Issue
Block a user