Project-Path-of-Exile-Wiki / PyPoE

Collection of Python Tools for Path of Exile
GNU General Public License v3.0
24 stars 21 forks source link

Plague Bearer stat description contains unnecessary line break #131

Open blvcksvn opened 1 year ago

blvcksvn commented 1 year ago

Plague Bearer stat description contains an unnecessary line break between "40% of the Expected Poison" & "Damage to Plague Value"

+(0-0.3) metres to radius<br>20% less Damage with Poison while Incubating and not at Maximum Plague Value<br>When you inflict Poison while Incubating, adds 40% of the Expected Poison<br>Damage to Plague Value<br>While Infecting, deals Chaos Damage per second equal to 12% of the Plague Value when Infecting began, and loses Plague Value at the same rate

lvlvllvlvllvlvl commented 1 year ago

There doesn't seem to be a good way to fix this without negatively affecting other gems' stat text display. For example, this is what the source data looks like for the affected stat:

description plague_bearer_stored_poison_percent
    1 corrosive_shroud_gains_%_of_damage_from_inflicted_poisons
    1
        # "When you inflict Poison while Incubating, adds {0}% of the Expected Poison\nDamage to Plague Value" reminderstring ReminderTextExpectedPoisonDamage

while the source data for Alchemist's Mark looks like the following:

description alchemists_mark_ground_damage
    2 alchemists_mark_igniter_creates_burning_ground_%_ignite_damage alchemists_mark_poisoner_creates_caustic_ground_%_poison_damage
    1
        1|# 1|# "Burning Ground deals {0}% of the Fire Damage per Second of strongest Ignite on Enemy\nCaustic Ground deals {1}% of the Chaos Damage per Second of strongest Poison on Enemy\nCan create each Ground effect no more than once each second"

l don't know how to distiguish between the \n's that we would want to keep as line breaks and the ones we would want to ignore.