Add auto-generated list of special node types to editor documentation

- Click one to jump directly to the description of that node.
- Back/forward buttons work thanks to history API.
- List is sorted alphabetically.
- This was also done for the page describing item abilities.
This commit is contained in:
2015-07-08 12:32:05 -04:00
parent f435be2125
commit 66a5302515
5 changed files with 70 additions and 16 deletions

View File

@@ -3,6 +3,7 @@
<head>
<title>Item Abilities - BoE Scenario Editor Guide</title>
<link rel="stylesheet" type="text/css" href="../style.css">
<script src='nav.js' type='application/javascript'></script>
</head>
<body>
<div class="navbar">
@@ -72,7 +73,7 @@ and different affects (the first field is usually Ability Strength), and their v
modify the affects of the item abilities in different ways. What each ability does and how
the extra data fields and Magic Item Adjust affect it are described below.</p>
<dl>
<dl class='autolink'>
<dt>Ability 0 - No ability</dt>
<dd>The item has no special ability.</dd>
</dl>
@@ -83,7 +84,7 @@ the extra data fields and Magic Item Adjust affect it are described below.</p>
represents the strength of the ability (0 is weakest, 10 is most powerful). The Magic Item
Adjust field is ignored.</p><!-- TODO: Double-check the expected ranges -->
<dl>
<dl class='autolink'>
<dt>Ability 1 - Damaging Weapon</dt>
<dd>The weapon does extra damage of the type specified in the second extra data field. The
Ability Strength is the number of d6's of extra damage done.</dt>
@@ -145,7 +146,7 @@ Strength. (So, an ability strength of 1 has no effect.)</dd>
from 0 to 10, which represents the strength of the ability (0 is weakest, 10 is most
powerful). The Magic Item Adjust field is ignored.</p>
<dl>
<dl class='autolink'>
<dt>Ability 30 - Protection</dt>
<dd>This partially blocks damage the wielder takes. The type of damage blocked is
specified in the second extra data field. The Ability Strength determines how much damage
@@ -275,7 +276,7 @@ cured of Dumbfounding.</p>
5, and Magic Item Adjust to 3. When someone uses the item, the entire party gets 5 levels
of acid (which means the acid lasts about 5 turns).</p>
<dl>
<dl class='autolink'>
<dt>Ability 70 - Poison Weapon</dt>
<dd>This item is a weapon poison that can be applied to the user's weapon. The Magic Use
Type is ignored, and the Ability Strength is the strength of the poison. When used, the
@@ -376,7 +377,7 @@ Magic Item Adjust and Ability Strength fields are not used (except for Lockpicks
that ability can substitute for. For example, a gem with the ability Smoky Crystal can be
used to cast Mindduel.</p>
<dl>
<dl class='autolink'>
<dt>Ability 150 - Holly/Toadstool</dt>
<dd>Used for Weak Curing, Weak Poison, Clarity</dd>
<dt>Ability 151 - Comfrey Root</dt>