User:Dr ishmael/API traits-beta fact summary

From Guild Wars 2 Wiki
Jump to navigationJump to search

The "type" of a skill/trait fact determines which display template is used for that fact in the tooltip.

{{#switch:{{{type|}}}

| Percent = {icon|default} {text}: {percent}%

Default icon is Miscellaneous effect.png. Most Percent facts have a defined "icon".

| AttributeAdjust = {icon|default} {text}: {value}

Default icon unknown. All AttributeAdjust facts have "icon" defined.

  • Note: Healing facts, life siphon facts, and "add damage to non-damaging condition" facts (Terror, Deathly Chill) also fall under this type, reason unknown.
    • Actual attribute facts use Attribute bonus.png.
    • Healing facts use Healing.png.
    • Life siphon and condition add-damage facts use Damage.png.
  • Healing facts (including life siphon heals) should be identified by "target":"Healing", whereas "target":"HealingPower" is the attribute (currently not being parsed correctly).
  • Life siphon damage facts currently show "target":"Power".
  • Condition add-damage facts currently show "target":"ConditionDamage".
| Range = {icon|default} {text}: {value}

Default icon is Range.png. No Range facts have an "icon" defined.

| Damage = {icon|default} {text} (x{hit_count}): {???}

Default icon unknown. All Damage facts have "icon" defined as Damage.png.

(x{hit_count}) is only shown if "hit_count" is present and greater than 1.

| Buff = {icon|default}{apply_count} {status} ({duration}s): {description}

| PrefixedBuff = {prefix.icon}{icon|default} {status} ({duration}s): {description}

Default icon is Miscellaneous effect.png. Only 1 Buff fact does not have "icon" defined (Health Insurance). All PrefixedBuff facts have an "icon" defined.

({duration}s) is only shown if "duration" is present and greater than 0.

Actually, it seems like both Buff and PrefixedBuff types aren't presented accurately in the API. When "status" is a boon or condition, it definitely calls a specialized template for that specific effect. But even for non-boon/condition buffs, like on Health Insurance, the {description} part of the fact does not match what's in the API.

| BuffConversion = {icon|default} Gain {target} Based on a Percentage of {source}: {percent}%

Default icon unknown. All BuffConversion facts have "icon" defined as Miscellaneous effect.png.

| NoData = {icon|default} {text}

Default icon unknown. All NoData facts have "icon" defined.

  • "Breaks Stun" facts have "icon" defined as Breaks stun.png.
  • All other NoData facts have "icon" defined as Miscellaneous effect.png.
| Recharge = [[File:Recharge.png]]{recharge}

Displayed at the top-right of the tooltip, not as a standard fact.

| Number = {icon|default} {text}: {value}

Default icon is Miscellaneous effect.png. Most Number facts have "icon" defined as that anyway, but some use a different icon ("Adrenaline" facts use Attribute bonus.png).

| Radius = {icon|default} {text}: {distance}

Default icon unknown. Only 2 Radius facts in the traits-beta API (on a linked skill) and they both have "icon" defined as Radius.png.

| Distance = {icon|default} {text}: {distance}

Default icon unknown. All Distance facts have "icon" defined.

  • Most are radius facts and use Radius.png.
  • Some are knockback facts and use Knockback.png.
  • Some are launch facts and use Launch.png.
| ComboField = [[File:Combo.png]] {text}: {field_type}

| ComboFinisher = [[File:Combo.png]] {text}: {finisher_type} ({percent}% chance)

({percent}% chance) is only displayed if "percent" is present and not equal to 100.

| Time = {icon|default} {text}: {duration} seconds

Default icon unknown. All Time facts have "icon" defined.

  • Slightly less than half use Radius.png.
  • Slightly less than half use Duration.png.
| Unblockable = [[File:Miscellaneous effect.png]] Unblockable