The savage polearm has a lvl of 50, just like some other recipes have a lvl of 30. In addition, it generates a random polearm. The lvl means that the output has an ilvl of 50 and that the polearm is selected from those with a qlvl of at most 50.
The affix calculation thing is really mixing two things together. The first part is the calculation of the ilvl of the new item. The relevant part is this:
IOW, ilvl equals 50 for savage polearm recipe, or ilvl equals 30 for magic socketed recipe.
The second part of the page is for the calculation of the alvl. The part you quoted temporarily sets the ilvl to at least the qlvl. This is only for purposes of alvl calculation and doesn't actually change the ilvl.
With the battle scythe example, you will indeed get alvl 20 if you use one of the magic socketed recipes to set the ilvl to 30. When it comes fresh out of the savage polearm recipe, though, it has ilvl 50 and thus alvl 30.
I hope I'm not just restating what you already understood.
The affix calculation thing is really mixing two things together. The first part is the calculation of the ilvl of the new item. The relevant part is this:
Quote:If (lvl>0)
{
inputilvl = lvl
}
IOW, ilvl equals 50 for savage polearm recipe, or ilvl equals 30 for magic socketed recipe.
The second part of the page is for the calculation of the alvl. The part you quoted temporarily sets the ilvl to at least the qlvl. This is only for purposes of alvl calculation and doesn't actually change the ilvl.
With the battle scythe example, you will indeed get alvl 20 if you use one of the magic socketed recipes to set the ilvl to 30. When it comes fresh out of the savage polearm recipe, though, it has ilvl 50 and thus alvl 30.
I hope I'm not just restating what you already understood.