blish-hud / Community-Module-Pack

MIT License
5 stars 25 forks source link

Added extended filter behaviors. #55

Closed dlamkins closed 4 years ago

dlamkins commented 4 years ago

Added support for new filter behaviors:

festival="\<festivalname>"

Will hide the pathable unless the specified festival is active.

The list of festival names that this checks against are located in the FestivalContext. Festivals currently supported are:

mount="\<mountid>"

Will hide the pathable unless the player is riding the specified mount.

The source list of mounts can be found in the Gw2Sharp library under MountType which we reference for this information. The list starts at 0 (None) and goes up as you go down the list (Jackal = 1, Griffon = 2, etc.).

If none (0) is specified, then the pathables will only show if the player is not using a mount.

race="\<raceid>"

Will hide the pathable unless the current character is a member of the specified race.

The source list of races can be found in the Gw2Sharp library under RaceType which we reference for this information.

profession="\<professionid>"

Will hide the pathable unless the current character is of the specified profession.

The source list of professions can be found in the Gw2Sharp library under ProfessionType which we reference for this information.

specialization=\"<specializationid>"

Will hide the pathable unless the current character is of the specified specialization.

The API that we pull the specialization from is real-time, but has a few quirks to be mindful of.

(Source for these details)

The IDs will match what is found under the /v2/specializations endpoint. For instance, 40 would match for Chronomancer.

You are not limited to just matching elite specializations as we'll report the ID of any specialization listed in the third trait row.