Skip to content

What is the intended way to read/parse item effects? #62

Description

@TwoWaffles

Hi, I have been working with the item data for a project. I wanted to display item data as they show it in game in a human readable way, but I have no idea how to understand the way the effects are written. I see that they are taken from the lolwiki and stuff like {{pp|<>}} are templates from the wiki as shown here: https://leagueoflegends.fandom.com/wiki/Doran%27s_Shield?action=edit.

For example, this is one of Doran's Shields effect:
"After taking damage from a [[champion]] or large [[monster]], gain [[health regeneration]] equal to {{pp|0 to 40 for 11|type='''current missing''' health|color=health|key1=%|0 to 75|formula=0.53 health regen for every 1% missing health}} health over 8 seconds. Reduced to{{ft|66% effectiveness|{{pp|0 to 26.4 for 11|type='''current missing''' health|color=health|key1=%|0 to 75|formula=0.35 health regen for every 1% missing health}}}} on {{tip|ranged}} champions or when triggered by [[area of effect]], [[damage over time]], or [[damage|proc]]."

For stuff inside of [[ ]] I can quite easily remove these, but for the {{pp }} or {{ft }} I am unsure what a smart/efficient way is to remove these for all the effect descriptions or if it is even possible.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions