Add requested changes & minor bug fixes

This commit is contained in:
azakhi
2018-08-22 11:41:02 +03:00
parent c0e9c534de
commit 0974579684
9 changed files with 92 additions and 46 deletions

View File

@@ -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;
}

View File

@@ -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)