Gez wrote:The random number generators of the form "pr_whatever()" return a value between 0 and 255.
OK, that's what I was missing. I'll update the wiki page with it, since I think it's relevant enough.
(Note: The Fighter's Incant effect sucks
. A piddly AC is nowhere near worth a possible full heal or a huge chunk of ammo. I don't know why Raven overrated the quality of Hexen's armor so much. Hiding them around like rare and powerful treasures, when one piece can barely last a handful of scuffles.)
Incidentally, I always wondered why they used internal methods for the Incant and Icon, but not the Flechette. Thanks to ZDoom's invdrop, it's actually possible to have one class pick up flechettes and distribute them amongst the party with their own effect.