The smallest table in the data corpus — 2 columns, 9 rows — and one of the most-referenced. Every table that needs to identify "this is for the Amazon" uses the 3-letter codes defined here, not the display names.
Locbones coverage
playerclass is not documented in locbones D2R Data Guide beyond a passing mention. The two columns (Player Class display name + Code 3-letter key) are unambiguous from the data.
The full mapping
| Player Class | Code |
|---|---|
| Amazon | ama |
| Sorceress | sor |
| Necromancer | nec |
| Paladin | pal |
| Barbarian | bar |
| Druid | dru |
| Assassin | ass |
| Warlock | war |
The 9th row is a sentinel Expansion (with blank Code) that separates the 5 Classic-game classes from the 3 Expansion classes (Druid, Assassin, Warlock). It's marker data, not a real class — filter with WHERE "Code" != '' to exclude it.
Where the codes are used
- skills
charclass— every class-specific skill carries one of these codes.charclass=sormeans a Sorceress skill. - itemtypes
Class— class-restriction.itype=orbhasClass=sor⇒ orbs are Sorceress-only. - itemtypes
StaffMods— staffmod-bearing itypes.itype=knifhasStaffMods=war⇒ knives roll Warlock staffmods. magicprefix/magicsuffixclass— class-specific affixes (e.g. the various class skiller suffixes).automagicclass— class-specific auto-rolled mods.magicprefix/magicsuffixclassspecific— flag column that flips on when the affix is class-locked; theclasscolumn carries which class.
Naming notes
- The codes are always lowercase. Cross-table references match exactly.
- The
[Class]Onlystrings in charstatsStrClassOnly(AmaOnly,SorOnly, …) are a separate string-key system used for tooltip rendering — they are not the same as these codes. - The Warlock class (added in D2R) follows the same
war3-letter pattern as the original 7 classes.