Apollys / PoEDynamicLootFilter

Tool to Modify your Loot Filter seamlessly while playing Path of Exile
55 stars 9 forks source link

Don't remove comments from custom rules #30

Closed Apollys closed 2 years ago

Apollys commented 2 years ago

A rule like:

# Highlight Humility up through T5 maps
Show # $type->divination $tier->t1
    Class "Divination"
    BaseType == "Humility"
    AreaLevel <= 72
    SetFontSize 45
    SetTextColor 0 255 255 255
    SetBorderColor 0 255 255 255
    SetBackgroundColor 0 0 118 255
    PlayEffect Cyan
    MinimapIcon 0 Cyan Star
    PlayAlertSound 1 300

once added to the filter, just becomes:

Show # $type->divination $tier->t1
Class "Divination"
BaseType == "Humility"
AreaLevel <= 72
SetFontSize 45
SetTextColor 0 255 255 255
SetBorderColor 0 255 255 255
SetBackgroundColor 0 0 118 255
PlayEffect Cyan
MinimapIcon 0 Cyan Star
PlayAlertSound 1 300

The comment should be retained, as long as there is no blank line between it and the rule text block.

Apollys commented 2 years ago

Fixed in dev branch.