Staffmods
Staffmods are the class skill bonuses (+1 to +3 to single skills) that staves, wands and scepters roll on their own, separately from their affixes. This is how the game picks them, from Eywa's notes on the game code, shared on the d2jsp forums.
How many · Which tier · Which skill · How many levels · Example
1. How many staffmods
The game rolls a random number from 0 to 99:
| Roll | Chance | Staffmods |
|---|---|---|
| 90-99 | 10% | 3 |
| 70-89 | 20% | 2 |
| 30-69 | 40% | 1 |
| 0-29 | 30% | 0 |
2. Which tier
A skill's tier is its row in the skill tree: tier 1 skills need level 1, tier 2 level 6, tier 3 level 12, tier 4 level 18, tier 5 level 24 and tier 6 level 30. The item level sets a starting tier for the whole item:
| Item level | Starting tier |
|---|---|
| 1-11 | 1 |
| 12-18 | 2 |
| 19-24 | 3 |
| 25-36 | 4 |
| 37+ | 5 |
Each staffmod then rolls its own tier from that starting point: 20% chance of one tier higher, 50% the same, 20% one lower and 10% two lower. So every staffmod on an item falls within a block of four adjacent tiers: starting tier 1 gives tiers 1-2, starting tier 2 gives 1-3, 3 gives 1-4, 4 gives 2-5 and 5 gives 3-6. Only items of item level 37 or more can roll level 30 (tier 6) skills. On a low-quality item, the tier is capped at 4.
3. Which skill
Each class's skills are numbered in tiers of five in the game data. The game picks one of the five skills in the chosen tier at random:
skill id = class base id + 5 × (tier − 1) + random(0-4)
For the Necromancer, the base id is 66:
| Tier | Skill level | Ids | Skills |
|---|---|---|---|
| 1 | 1 | 66-70 | Amplify Damage, Teeth, Bone Armor, Skeleton Mastery, Raise Skeleton |
| 2 | 6 | 71-75 | Dim Vision, Weaken, Poison Dagger, Corpse Explosion, Clay Golem |
| 3 | 12 | 76-80 | Iron Maiden, Terror, Bone Wall, Golem Mastery, Raise Skeletal Mage |
| 4 | 18 | 81-85 | Confuse, Life Tap, Poison Explosion, Bone Spear, Blood Golem |
| 5 | 24 | 86-90 | Attract, Decrepify, Bone Prison, Summon Resist, Iron Golem |
| 6 | 30 | 91-95 | Lower Resist, Poison Nova, Bone Spirit, Fire Golem, Revive |
4. How many levels
Each staffmod rolls its bonus separately, again from 0 to 99:
| Roll | Chance | Bonus |
|---|---|---|
| 90-99 | 10% | +3 |
| 60-89 | 30% | +2 |
| 0-59 | 60% | +1 |
Example: a summoning wand
Say you want a 2-socket wand with Skeleton Mastery, Raise Skeleton and Raise Skeletal Mage. Skeleton Mastery and Raise Skeleton are tier 1, and Raise Skeletal Mage is tier 3, so all three can only appear together from a starting tier of 2 or 3: item level 12 to 24. Two of the three rolls must land on tier 1 and one on tier 3.
For two sockets with an item level under 25, the only choice is the Bone Wand (quality level 18). Either find one with item level under 25 that has the staffmods you want, or shop for one in Acts II to V of Normal with a level 13 to 19 character.
Source: Eywa, quoted in this d2jsp thread.