| name | description |
|---|---|
| wiki_verify_artifacts | Instructions for comparing artifacts in GnollHackWiki with the GnollHack C code data structures (artifact) to spot mistakes in the documentation. |
When verifying artifacts on the GnollHackWiki against the GnollHack C code, compare the artifact's documentation with struct artifact defined in include/artifact.h and the data in src/artilist.c.
Important Rules
- NEVER compare item weights. Do not check or update weight on the wiki.
- Pay attention to which kind of data is present in
struct artifact.
What to Compare
1. Base Properties
-
Base Item: Check the
otypto ensure the artifact is based on the correct item (e.g.,LONG_SWORD). -
Cost: Compare the listed artifact price with the
costfield. -
Alignment: Check the
alignmentfield (e.g.,A_LAWFUL,A_NEUTRAL,A_CHAOTIC,A_NONE). -
Material: Compare with the
materialfield.
2. Combat Bonuses
-
To-Hit Bonus: Compare with
tohit_dice,tohit_diesize, andtohit_plus. -
Extra Damage: Check the
attkstruct (attk.damn,attk.damd, etc.) for any extra damage dice added when the artifact hits the right target. -
Special Attacks: Look at
aflags(e.g.,AF_BEHEAD,AF_BISECT,AF_DRLI) andaflags2for extra combat effects.
3. Special Effects
-
Wielded/Worn Effects: Compare
spfx(e.g.,SPFX_ESP,SPFX_REGEN,SPFX_STLTH,SPFX_HSPDAM). -
Carried Effects: Compare
cspfx(effects conferred just by carrying). -
Invoked Powers: Compare
inv_propfor powers activated by invoking the artifact (e.g.,ARTINVOKE_HEALING). Checkinv_duration_diceandrepower_time(cooldown).
How to Verify
- Locate the artifact in
src/artilist.c. - Map the fields to the
struct artifactdefinition. - Check the wiki page for discrepancies based on the list above.