Module:AbilityTable/Lists/doc: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
write documentation for Module:AbilityTable/Lists (with help from vergir-bot LLM)
Vergir (talk | contribs)
m better doc
Line 13: Line 13:
=== Example: adding a missing ability to the healreduce list ===
=== Example: adding a missing ability to the healreduce list ===


Say {{AbilityIcon|Affliction}} is missing from the [[Heal Amp|heal reduction]] table. First, check the comment above <code>["healreduce"]</code> in the module — it says "Abilities that reduce healing on their targets", so Affliction belongs there.
Say {{AbilityIcon|Affliction}} is missing from the heal reduction table. First, check the comment above <code>["healreduce"]</code> in the module — it says "Abilities that reduce healing on their targets", so Affliction belongs there.


Open [[Data:AbilityData.json]] and search for <code>citadel_ability_affliction</code>. Looking through its properties, you find <code>"DisableHealing": 1</code> — that looks like exactly what we need.
Open [[Data:AbilityData.json]] and search for <code>affliction</code>. Looking through its properties, you find <code>"DisableHealing": 1</code> — that looks like exactly what we need.


Check if <code>DisableHealing</code> is already in the <code>["healreduce"]</code> list. It isn't, so add it (keeping alphabetical order):
Check if <code>DisableHealing</code> is already in the <code>["healreduce"]</code> list. It isn't, so add it:


<pre>
<pre>